1827286 Members
1618 Online
109717 Solutions
New Discussion

fsck usage

 
SOLVED
Go to solution
KCS_1
Respected Contributor

fsck usage

Hello, all

I wonder how to check root( / ) file system by FSCK command on prompt.

If you have some tips or procedures, please let me know what they are.


Easy going at all.
6 REPLIES 6
Sunil Sharma_1
Honored Contributor

Re: fsck usage

Hi,

You can fsck in single user mode by booting system in single user mode and if you are not able to boot in single user mode due to corruption of / file system you can boot from recovery CD and perform fsck.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Robert-Jan Goossens
Honored Contributor

Re: fsck usage

Hi,

check this doc.

Document description: After extending / filesystem, system panics on reboot
Document id: ULVMKBRC00012111

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000067229891

Regards,
Robert-Jan
G. Vrijhoeven
Honored Contributor
Solution

Re: fsck usage

Hi,

To do a fsck you need to umount the filesystem. Since you are not able to umount the / filesystem with the server running the only way to perform a fsck of root is a reboot.
An option can be booting off a recovery cdrom, or booting in lvm maintanence mode ( hpux -lm )and do fsck on the lvol.

Regards,

Gideon

Muthukumar_5
Honored Contributor

Re: fsck usage

Get the filesystem mounted on root using bdf as,

bdf /

Find the way How to use fsck as,

fsck -V

Use the specific on that.

# fsck -F vxfs -m /dev/vg00/lvol3
vxfs fsck: sanity check: root file system OK (mounted read/write)

--> -m - sanity check
--> -p - mount informations
--> n/N or y/Y -- to use no or yes for f/s check

see more on fsck_vxfs if your / of vxfs
else corresponding fsck_fs

Regards
Muthu

Easy to suggest when don't know about the problem!
Franky_1
Respected Contributor

Re: fsck usage

Hi,

it is best to check in single user mode using

fsck -F vxfs -o full -y /dev/vg00/lvol3

Regards

Franky
Don't worry be happy
Franky_1
Respected Contributor

Re: fsck usage

Hi,

i forgot to mention that at the command prompt you can use

fsck -F vxfs -m /dev/vg00/lvol3

(sanity check only)

Regards

Franky
Don't worry be happy