1836355 Members
1951 Online
110100 Solutions
New Discussion

fsck on /usr file system

 
HutchAdmin
Occasional Advisor

fsck on /usr file system

Can anyone tell me the process of running fsck on /usr filesystem
8 REPLIES 8
G. Vrijhoeven
Honored Contributor

Re: fsck on /usr file system

Hi,

To run fsck the filesystem needs to be umounted.

So
#fsck -F vxfs -o full /dev/vg00/rlvol

Gideon
G. Vrijhoeven
Honored Contributor

Re: fsck on /usr file system

Hi,

tough fsck is in /usr/sbin/ it is linked to /sbin/fs_wrapper so available if /usr is not mounted.

Gideon
Sunil Sharma_1
Honored Contributor

Re: fsck on /usr file system

Hi,

You can umount /usr and run fsck command but best way is the boot system in single user mode and run

fsck is available in /sbin too

#/sbin/fsck -F vxfs -o full /dev/vg00/lvolnn

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
HutchAdmin
Occasional Advisor

Re: fsck on /usr file system

Thanks for the reply.

Have u ever tried running fsck throug /sbin/fs_wrapper. If yes, pls share me the results.

Thanks
NV Pathak

G. Vrijhoeven
Honored Contributor

Re: fsck on /usr file system

Hi,

You do just give the command fsck. /sbin/fsck is also linked to /sbin/fs_wrapper. I never had problems with it.

Gideon
HutchAdmin
Occasional Advisor

Re: fsck on /usr file system

Thanks Gideon ...


Pathak
Sunil Sharma_1
Honored Contributor

Re: fsck on /usr file system

Hi,

I naver used fs_wrapper command directly.

You can see man pages for details

#man fs_wrapper

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Kenneth Platz
Esteemed Contributor

Re: fsck on /usr file system

Either umount /usr (if possible, probably not), or boot to single-user mode (most likely required), and just

# fsck [options] /dev/vg00/lvol7 (or whichever lvol /usr happens to live on).

If your /usr filesystem is in really bad shape, you may need to do a:

# fsck -y -o full /dev/vg00/lvol7

Share & Enjoy.
I think, therefore I am... I think!