Operating System - HP-UX
1834462 Members
2658 Online
110067 Solutions
New Discussion

Re: Extended /var on root vg

 
SOLVED
Go to solution
Delete This Account
Occasional Contributor

Extended /var on root vg

I need to increase the size of the /var logical volume on the root vg. I have a disk that I can add to vg00, but I am not sure if there are additional steps required to increase the size of a LV on the root VG.

Thanks,
Aaron
3 REPLIES 3
Denver Osborn
Honored Contributor
Solution

Re: Extended /var on root vg

I've searched the forums and found an existing post that should provide you with what you need to extend /var.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x05bb854994d9d4118fef0090279cd0f9,00.html

Hope this helps!
-denver
Andre Machado
New Member

Re: Extended /var on root vg

Hello Aaron,

These steps solve your problem:

1. Verify the free PE's and PE Size in VG00:
# vgdisplay vg00 | grep PE
Max PE per PV 4350
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4320
Free PE 20

(Free PE * PE Size) = 80 MB Free

2. Verify what is the lvol for /var
# bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 1536000 1378627 150030 90% /var

lvol= /dev/vg00/lvol8

3. Verifify the size of lvol:
# lvdisplay /dev/vg00/lvol9 | grep Mbytes
LV Size (Mbytes) 4000

4. Now, define what is the new size of lvol

5. Increasing the lvol:
The lvextend commad is allow to execute with the lvol is monted, but if you haven't the OnLine JFS you doesn't able to extend the file system.

# lvextend -L 4080 /dev/vg00/lvol9
-L options is the new size of lvol

If you have the online JFS and File system of /var is vxfs.
# fsadm -F vxfs -b 41477920 /var

If you not sure of the type of the file system:
# fstyp /dev/vg00/lvol9
vxfs or hfs

The OnLine JFS only work with vxfs.

If you haven't the OnLine JFS:
# shutdown 0 -> Single User Mode
# fuser -cku /var; umount /var -> Force to umount /var

# extendfs -F vxfs /dev/vg00/rlvol9
Here is rlvol why you need's to use the character device and the lvol9 is a block device.

# mount /var
# bdf /var
Confirm if /var is a new value.

To init system:
# init 3

Regards,

Andre Machado


Mike Williams_3
Advisor

Re: Extended /var on root vg

FYI - you can use sam in single user mode.
Boot in single user, then mkdir /var/sam and
/var/sam/log. With TERM=hp you can run sam
and extend /var.

Don't forget to rm -rf /var/sam after extending - but before rebooting.

Regards