Operating System - HP-UX
1833780 Members
2414 Online
110063 Solutions
New Discussion

extend /var on HP-UX 10.20

 
Lars Hesdorf
New Member

extend /var on HP-UX 10.20

I seem to run into the "contiguous" problem when trying to extend to /var but do /var really need to be contiguous, and if not how to get around it.

Info:
I only have 2 disks that mirror each other, and there is plenty of space left in VG00


/Lars
lh@banctec.dk
8 REPLIES 8
CHRIS_ANORUO
Honored Contributor

Re: extend /var on HP-UX 10.20

You can remove the contiguous policy through SAM, then backup your /var, run bdf to get filesystem record, reboot to single user mode and do:
lvextend -L NNN /dev/vg00/lvoln
extendfs -F vxfs /dev/vg00/rlvoln
Reboot
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Rick Garland
Honored Contributor

Re: extend /var on HP-UX 10.20

Lots of previous replies and very good info exist in previous posts.
Do SEARCH on /var for the forums.
James R. Ferguson
Acclaimed Contributor

Re: extend /var on HP-UX 10.20

Hi:

Normally /var is not (nor need not be) specified as contiguous. If it was set contiguous during the lvcreate, then you don't have the flexability you might want. See the man pages for lvcreate.

...JRF...
Rita C Workman
Honored Contributor

Re: extend /var on HP-UX 10.20

It is only / that must remain contiguous. You can safely extend /var. From what I understand of your question, you are not adding any disk...just doing an increase to var. Just drop to single user mode and enter:
Do a bdf to ensure /var is not mounted.

lvextend -l _ _ _ /dev/vgoo/lvol_
extendfs /dev/vg00/rlvol_ /var

I then prefer to do a shutdown -ry 0....but whatever you prefer is ok..
Regards,
John Palmer
Honored Contributor

Re: extend /var on HP-UX 10.20

/var doesn't need to be contiguous and isn't by default.

Check with 'lvdisplay /dev/vg00/lvol?'

If contiguous is set then Allocation will be 'strict/contiguous' (if 'strict' is set of course which it should be if mirrored).

As it is mirrored, are you sur ethat you have enough space on both disks for the extension?
Pete Conneely
Advisor

Re: extend /var on HP-UX 10.20

Lars,

If you click the SEARCH button on the left side menu and do a community search for 'extend and contiguous' there are many excellent examples of earlier answers to this type of problem.

Hope this helps.
Cheryl Griffin
Honored Contributor

Re: extend /var on HP-UX 10.20

/, /stand, and primary swap need to be contiguous.

With OnlineJFS or AdvJFS you can extend /var without booting into single user mode.

Without OnlineJFS, you will need to use fuser to quiet the filesytem or boot into single user mode and extend with lvextend and extendfs.
"Downtime is a Crime."
Denver Osborn
Honored Contributor

Re: extend /var on HP-UX 10.20

Lars,

You said you have VG00 Mirrored and get an error when extending var. I aggree with John on this one. Make sure you have enough free PE on both sides of the mirror to extend var.

# pvdisplay /dev/dsk/c?t?d?
Check that number of lvols are same, also for free PE on each disk in vg00.

If lvdisplay shows strict/contiguous and you have enough free PE on all disks in vg00 to extend var then it could be the space isnt contiguous.

To turn off contigous allocation:
# lvchange -C n /dev/vg00/lvol_var

As long as strict allocation policy is turned on for the mirrored lvol you are ok.

Hope this helps!