Operating System - HP-UX
1833867 Members
1969 Online
110063 Solutions
New Discussion

Re: Reallocating Disk Space

 
Son Le
Frequent Advisor

Reallocating Disk Space

Hi...I was wondering how you would reallocate disk space in HP-UX 11.0. Here is what i get when I type in bdf:

Filesystem: /dev/vg00/lvol3
kbytes: 204800
used: 114479
avail: 84776
used: 57%
mounted on: /

FS: /dev/vg00/lvol1
kbytes: 299157
used: 36760
avail: 232481
used: 14%
mounted on: /stand

FS: /dev/vg00/lvol8
kbytes: 3657728
used: 304125
avail: 3144715
used: 9%
mounted on: /var

FS: /dev/vg00/lvol7
kbytes: 1130496
used: 613547
avail: 484652
used: 56%
mounted on: usr

FS: /dev/vg00/lvol4
kbytes: 204800
used: 11325
avail: 181448
used: 6%
mounted on: /tmp

FS: /dev/vg00/lvol6
kbytes: 679936
used: 314984
avail: 342178
used: 48%
mounted on: /opt

FS: /dev/vg00/lvol5
kbytes: 20480
used: 2017
avail: 17346
used: 10%
mounted on: /home

FS: /dev/vg01/company
kbytes: 53329920
used: 44190602
avail: 8571618
used: 84%
mounted on: /company

I would like to reallocate some space from /var to /company seeing that on /company it is 84% used up, i would like to move about 2000000 kbytes from /var to /company. How would i do that. Thanks for any help.
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Reallocating Disk Space

Well, they're in separate volume groups which makes it a little difficult. The only way would be to make them both part of vg00, shrink /var and increase /company.

It's normally recommended to keep your data separate from the root vg, which is the way you have it now. I would look into buying another drive and using it to expand vg01.

Pete

Pete
Patrick Wallek
Honored Contributor

Re: Reallocating Disk Space

You can't transfer / reallocate disk space between VGs. A physical disk can be a member of 1 and only 1 VG. A VG can be made up of multiple physical disks though.

The easiest way to add more disk space to your /company LV would be to add another disk to the system, vgextend the vg01 VG to include that disk and then lvexten the /dev/vg01/company LV.
Son Le
Frequent Advisor

Re: Reallocating Disk Space

thanks for the quick response guys...much appreciated. I didn't even look at the disk...silly me overlooked that. But you're correct, you can't allocated from a different disk. Thanks for the info.