LVM and VxVM

cannot mount /usr from rebuilding mirror drive

 
SOLVED
Go to solution
Rob O'Connor
Advisor

cannot mount /usr from rebuilding mirror drive

Our hp root drive just failed.
Replace the drive and trying to rebuild it.
boot to alternate drive.
Went into single user hpux -is lq
vgcfgrestore -n /dev/vg00 /dev/dsk/c2t2d0
vgchange -a y /dev/vg00
vgsync /dev/vg00
mount /usr
I cannot mount /usr. The system just freezes. Any suggestions?
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: cannot mount /usr from rebuilding mirror drive


If these were hot-plug drives, you should have never shutdown but I suppose the next task would be an fsck. (It would almost certainly be required anyway).

Check for the correct device but and filesystem type but something close to this:

fsck -F vxfs /dev/vg00/rvol7
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: cannot mount /usr from rebuilding mirror drive

Hi,

Does your /sbin/lvdisplay -v /dev/vg00/lvolx
display both the mirrors as current and there are no stale entries still?. If you find anything stale on the original mirror, then you don't have a good /usr.

I would try 'fsck' on the logical volume of usr. But that would be my last option as you may get your data wiped if there is any inconsistency.



-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: cannot mount /usr from rebuilding mirror drive

Actually, fsck will do not harm UNLESS you answer "y" (or use the -y option). If you really want to be safe set the "-n" option to answer "no" to everything.


If it ain't broke, I can fix that.
Tim Adamson_1
Honored Contributor

Re: cannot mount /usr from rebuilding mirror drive

Check that /usr is mirrored and there are no stale extents.

fsck the lvol.

Can you see if there is any activity on the physical disks (either the primary or alternate or both) to determine if something is actually happening? You would obviously need to eyeball the disks.


Tim.
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Rob O'Connor
Advisor

Re: cannot mount /usr from rebuilding mirror drive

Well, fsck ran with inode errors.
Guess what I spend last night doing.
Rebuilding server.
Forunately, I had Ignite.
I always took Ignite for granted. Not anymore.
Need sleep.
Thanks everyone.