Operating System - HP-UX
1821410 Members
3080 Online
109633 Solutions
New Discussion юеВ

Extending /usr on mirrored vg00.

 
SOLVED
Go to solution
John Tyler
Advisor

Extending /usr on mirrored vg00.

Hi!
We are forced to extend /usr filesystem. (No jfs/vxfs.. plain old hfs on hp/ux 10.20).
Vg00 is mirrored.( Disk 0 is mirrored to disk 1)

I know that i need to take the system down to single user mode to do lvextend and extendfs /usr.

Do i need to break the vg00 mirror before going to single user mode to extend the lv.

Or will the lvextend process take care of extending on both PVs in single user mode
(Yes, there is same number of free LEs on both disks..)
TIA
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: Extending /usr on mirrored vg00.

provided you do not split the mirrors, the mirroring software will take casre of ensuring that the levextend will be done correctly.
You can check using lvdisplays before and after doing the changes, and no, you do not need to split the mirrors before booting into single user mode.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: Extending /usr on mirrored vg00.

Hi:

You don't need to do anything special (break the mirror or otherwise). Just do your maintenance. I'd certainly consider licensing Online JFS ;-)

...JRF...
John Waller
Esteemed Contributor

Re: Extending /usr on mirrored vg00.

I normally never break the mirrors in this case. One thing I sometimes do is archive /var and /home depending on the lvols ) to a tape the lvremove these lvols so when I extend /usr it is contiguous on the disk to help maintain performance. I then recreate the other lvols and restore the removed data from the tape.
Ravi_8
Honored Contributor

Re: Extending /usr on mirrored vg00.

hi,
if you able to login thru CDE then it is no need to bring the m/c to single user mode. you can increase the sizes of any file system(except /) using sam (in CDE mode). same time it will change in mirrored disk too
never give up
Vincenzo Restuccia
Honored Contributor
Solution

Re: Extending /usr on mirrored vg00.

#cp -p /usr/sbin/lvextend /tmp
#cp -p /usr/sbin/extendfs /tmp
boot in single user mode
#mount /dev/vgoo/lvol4 /tmp
#cd /tmp
#lvextend -L xxx /dev/vgoo/lvol7
#extendfs -F hfs /dev/vgoo/rlvol7

Re: Extending /usr on mirrored vg00.

dude,

just boot the system in lvm maintanence mode
isl>hpux -lm
then
vgextend ( if you need to add disk to vg00)
lvextend ( the logical vol of /usr)
/sbin/extendfs ( raw logical vol of /usr)
fsck the vol
reboot the system
Strive for perfection