Operating System - HP-UX
1851979 Members
3026 Online
104063 Solutions
New Discussion

Re: extend mirrored /var /usr mount points

 
Vaish Raj
Advisor

extend mirrored /var /usr mount points

Hi,

I have a mirrored (2) disks for vg00. i want to extend size of /var and /usr.

Is it straight vgextend and extendfs. I am not using online JFS.

Does the mirrored disks also extended automatically ?

Thanks
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: extend mirrored /var /usr mount points

Vgextend adds disks. The mirroring is done at the LVOL level and yes, the mirrors are extended automatically.

The steps you need to follow are (after booting in single-user mode):

lvextend -L xxxx /dev/vg00/lvol7
extendfs -F vxfs /dev/vg00/rlvol7

Man lvextend, extendfs_vxfs for details.
If it ain't broke, I can fix that.
John Dvorchak
Honored Contributor

Re: extend mirrored /var /usr mount points

Also note that since this is vg00 and you don't have Online JFS you will have to shut it down to LVM maintence mode.

Shut the system down and interrupt the reboot. Tell it to boot from the primary as normal but answer yes to "Interact with ISL" at the ISL prompt enter: hpux -lm (that is hpux -ell m or lower case L and M )
If it has wheels or a skirt, you can't afford it.
Hoang Chi Cong_1
Honored Contributor

Re: extend mirrored /var /usr mount points

Hi Vaish Rai

If you don have Online-JFS, you must do it in single mode!
First, check for the vg00 : How many free disk size? If there is enough space to extend, you can extend these system mount point. Do not warry any more when extend.
But if you insert more disk in vg00 and these system mount point are mirrored, you have to take care.
It depend on the LV's policy.
If the lv's Allocation is "Strict": Error happen (on this case, you must have 2 pv to extend...) the other side you can extend.....

Anyway, if you have enough free space in vg00, you can extend (but in single user mode with lvextend, extendfs commands)

Goodluck to you
Regard,
HoangChiCong
Looking for a special chance.......
Ravi_8
Honored Contributor

Re: extend mirrored /var /usr mount points

Hi,

If the disks are mirrored, and if you extend the lvol, mirrored disks also extend automatically

#lvextend -L /dev/vgxx/lvolx
#extendfs -F vxfs /dev/vgxx/rlvolxx
never give up
bhavin asokan
Honored Contributor

Re: extend mirrored /var /usr mount points

hi,
see jimkerry's answer.i think almost the /usr and /var will be having strict allocation policy.if free space is not there move some lvols to another disk and try.

you have to reboot in single user mode. since /usr has also to be extended you have to give full path of command

/sbin/lvextend /dev/vg00/lvolXX
/sbin/extendfs /dev/vg00/lvolXX

if enough space is there on both disks(provided strict allocation) mirror also will get extended automatically.

regds,
Hoang Chi Cong_1
Honored Contributor

Re: extend mirrored /var /usr mount points

Hi all
Thanks bhavin asokan to confirm my answer :)

Vaish Raj:
You have to be careful: the command is lvextend...NOT vgextend as you said.....

Normally, usually /dev/vg00/lvol8 mount on /var
and /dev/vg00/lvol7 mount on /usr

Goodluck to you
Regard,
HoangChiCong

Looking for a special chance.......