Operating System - HP-UX
1834803 Members
2517 Online
110070 Solutions
New Discussion

Re: question on fsck and / being hfs

 
Matt Walker_1
Occasional Contributor

question on fsck and / being hfs

Someone please resolve my brain fart....

I have a corrupt inode on a file located right off of /, thus I need to run fsck. Oh by
the way, did I mention that / is a hfs file system on a 10.20 system?

Can I run fsck on it up in multi-user mode? I think I need to bring it down to single user mode (hpux -is) or worse yet logical maintenance mode (hpux -lm)... Please help,
it has been a long time since I touched hfs on 10.20.....
5 REPLIES 5
Martin Johnson
Honored Contributor

Re: question on fsck and / being hfs

It is safest to bring it down in maintenance mode.

HTH
Marty
S.K. Chan
Honored Contributor

Re: question on fsck and / being hfs

If it's root (/) you have got to bring it down to LVM maintenance mode, activate vg00 manually (vgchange -a y vg00) and then run fsck on the root LV. The syntax for your fsck would be like so ..
# /sbin/fsck -F hfs -y -o full /dev/vg00/
Mount the filesystem afterwards. If good proceed with rebooting the susyem to bring it up to multiuser mode.
erics_1
Honored Contributor

Re: question on fsck and / being hfs

Matt,

I don't believe the -o full option works for HFS...only VXFS filesystems. Just omit that option when executing the fsck command.

Regards,
Eric
S.K. Chan
Honored Contributor

Re: question on fsck and / being hfs

Indeed, drop the "-o full". Thanks Eric !
# man fsck_hfs
for details.
A. Clay Stephenson
Acclaimed Contributor

Re: question on fsck and / being hfs

One more important point is that you want to run fsck -F hfs against the RAW LVOL; you want to deliberately avoid the buffer cache.

e.g. fsck -F hfs /dev/vg00/rlvol3

iff rlvol3 is /.

If it ain't broke, I can fix that.