Skip to contentSkip to conversation

File problem question

DISCUSSION Ruben Rubio 3 participants 6 messages Aug 11, 2006 – Aug 17, 2006

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have a problem with xfs filesystem. I have lost a file. So:

root@rigodon log # pwd
/var/log
root@rigodon log # ls -al lastlog
- -r-------- 1 root root 146292 ago 11 10:44 lastlog root@rigodon log # du -sh * | grep lastlog
7,6G lastlog

I have a file witch size is 7,6 GB. However, if I ls -al is another file. Seems like filesystems is being corrupted.

How can I delete 7,6 G file?
Is this dangerous? Is there any another action that I shoud do?

Thanks in advance
Ruben Rubio Rey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE3ET6Io1XmbAXRboRAjaMAKCysw9xUYamyezyTsiq2PaRlZ7sWQCfaMhb OhuGEystqU3NZZtIaRFJa/M=
=I0Tx
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 2 lines · Ruben Rubio

root@rigodon log # ls -al lastlog
- -r-------- 1 root root 146292 ago 11 10:44 lastlog

---^
is that a typo or is there a space in the permission field?

Quoted 2 lines

I have a file witch size is 7,6 GB. However, if I ls -al is another file. Seems like filesystems is being corrupted.

What does xfs_check say? Which (linux?-)kernel are you using? If you are about to xfs_*, please make sure you have the *latest* xfsprogs[0], which is 2.8.10-1 right now...

Christian.
[0] ftp://oss.sgi.com/projects/xfs/cmd_tars/

Signature · 3 lines
BOFH excuse #68:

only available on a need to know basis
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 5 lines · Christian
Quoted 2 lines · Ruben Rubio

root@rigodon log # ls -al lastlog
- -r-------- 1 root root 146292 ago 11 10:44 lastlog

---^
is that a typo or is there a space in the permission field?

This is an error when I did copy/paste

Quoted 5 lines
Quoted 3 lines

I have a file witch size is 7,6 GB. However, if I ls -al is another file. Seems like filesystems is being corrupted.

What does xfs_check say? Which (linux?-)kernel are you using? If you are

I did't run xfs_check yet. I have to disconnect the server because I have to unmount the filesystem in orden to run the program (I ll do it after holidays if there is not risk).

xfsprogs version: 2.6.13-2
Kernel: 2.6.9-1.667smp
Distro: Fedora Core release 3

Quoted 5 lines

about to xfs_*, please make sure you have the *latest* xfsprogs[0], which is 2.8.10-1 right now...

Christian.
[0] ftp://oss.sgi.com/projects/xfs/cmd_tars/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE5A4lIo1XmbAXRboRAv6zAJ0TUw3nJZEH+1yyJQROwVduFnkoXwCgsRaU kXjPxH4aFKStRAOWvRaGGw4=
=4JFf
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Ruben Rubio
Quoted 6 lines · Ruben Rubio

root@rigodon log # pwd
/var/log
root@rigodon log # ls -al lastlog
- -r-------- 1 root root 146292 ago 11 10:44 lastlog root@rigodon log # du -sh * | grep lastlog
7,6G lastlog

what does "xfs_bmap -vp lastlog" say?

cheers.

Signature · 1 line
Nathan
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Nathan Scott
Quoted 6 lines · Ruben Rubio

root@rigodon log # pwd
/var/log
root@rigodon log # ls -al lastlog
- -r-------- 1 root root 146292 ago 11 10:44 lastlog root@rigodon log # du -sh * | grep lastlog
7,6G lastlog

what does "xfs_bmap -vp lastlog" say?

root@rigodon log # xfs_bmap -vp lastlog
lastlog:

 EXT: FILE-OFFSET      BLOCK-RANGE        AG AG-OFFSET        TOTAL
   0: [0..279]:        hole                                     280
   1: [280..287]:      64537592..64537599 15 (17552..17559)       8
Quoted 3 lines

cheers.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE5A5QIo1XmbAXRboRApuuAKCEaMWm17e2YWJwbD/sL/aq88+S+wCgpHJi yFtYxP3wzm+7WS7H/Ci94tk=
=k8IT
-----END PGP SIGNATURE-----

#5 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think I have found the response.
lastlog is a special "sparse file".

When du -sh command is executed, the space that shows is unreal. ls -al shows the good one disk usage.

Then, all seems is normal.

Thanks anyway!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE5B6NIo1XmbAXRboRAv0SAJ4heBkyh4yavO6Wd4S+H8pAXgR9cQCeJY+0 2W9+TU3/Mf6HQAuwVFNpJ+w=
=d3Cp
-----END PGP SIGNATURE-----