Operating System - HP-UX
1753720 Members
5163 Online
108799 Solutions
New Discussion

Re: How to perfom fsck on run level s

 
Yaroki
Super Advisor

How to perfom fsck on run level s

I have an HP machine B2000 (b .10.20).

Recently, it performs independent boots.

When the system brings up it asks to run fsck.

As much as I know it is better to do it on run level s. I tried to do it unsuccessfully.

 

I used:

 

/sbin/fsck -F vxfs -o full /dev/vg00/lvol??

 

or

 

fsck -yl /dev/vg00/lvol??

Can someone tells me what is the correct command or how to do it right?

 

BR,

 

Yali

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: How to perfom fsck on run level s

You will first need to activate the VG

 

vgchange -a y /dev/vg00

 

Then run the fsck

 

fsck -y -o full /dev/vg00/lvol?

Yaroki
Super Advisor

Re: How to perfom fsck on run level s

When I run the command

vgchange -a y /dev/vg00 it says

 

volume group /dev/vg00 does not exist in /etc/lvmtab.

 

cat /etc/lvmtab shows:

h/dev/vg00w!9HJ/dev/dsk/c2t6do#

Yaroki
Super Advisor

Re: How to perfom fsck on run level s

Hello,

 

Please, if you have any suggestion I will be more than glad to hear.

 

BR

Tom Maloy
Respected Contributor

Re: How to perfom fsck on run level s

To get info from /etc/lvmtab, since it's binary, use:

 

strings  /etc/lvmtab

 

While vg00 is the normal root VG, you can see all of your (activated) VG names with:

 

vgdisplay  |  grep  Name

 

fsck should work fine on an unmounted file system. Single user or LVM maintenance modes might be needed if the LV is needed by the OS.

Carpe diem!