Operating System - HP-UX
1847700 Members
6977 Online
110265 Solutions
New Discussion

Re: Space Reallocation Issue

 
Adrian Sobers2
Super Advisor

Space Reallocation Issue

Here is the situation:

VG00 LVM 10696 of 34720 MB available 1 Physical volume 10 Logical Volumes

VG01 LVM 12 of 104172 MB available 3 Physical volumes 2 Logical volumes


Is it possible to re-allocate some of the space from VG00 to one of the logical volumes on VG01?

We do not have Online JFS, so if it can be done it will have to be after-hours since it's a production database server.

Any help would be greatly appreciated, thanks.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Space Reallocation Issue

Adrian,

Since you only have one physical volume in VG00, you won't be able to re-allocate any space to VG01 - it would have to be done at the PV level.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Space Reallocation Issue

Hi Adrian:

That depends on how you mean the question.

vg00 has only one physical volume. You can create new logical volumes on vg01 and copy(with 'fbackup', 'cpio', 'tar' or 'cp') files from vg00 to vg01. Then, when done, you could 'lvremove' the copied logical volumes from vg00. To do this, you will need to quiesce all access to the filesystems that you want to copy.

Regards!

...JRF...
Chan 007
Honored Contributor

Re: Space Reallocation Issue

It is not possible even you have online JFS mate. You have only one PV.

Better upgrate your VG03 - PVs or add one more disk to it.

Chan
MarkSyder
Honored Contributor

Re: Space Reallocation Issue

If you're talking about allocating space to one of the two existing lvols, no. If you're talking about setting up a new lvol on vg00 for application use, yes, but I'd be surprised if there's a single person on this forum who would recommend it.

You should keep vg00 for operating system. If vg01 is short of space speak to the man with the cheque book.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Adrian Sobers2
Super Advisor

Re: Space Reallocation Issue

Thanks all, I found the "culprit".

Before the Oracle install, we had copied all the source oracle install CDs to disk as that made installing easier than from the actual media.

I just removed all the oracle install source directories and have reclaimed a huge chunk of space.

We went from 97% used to 88% with that removal.

Plus once we factor in compressing the Oracle backups, we will be fine.

Thanks for all the help.
Bill Hassell
Honored Contributor

Re: Space Reallocation Issue

In LVM, a volume is composed of one or more disks and that is the smallest unit within the volume. So you could remove (reduce) a disk from one volume and add that disk to another volume. However, in your example, VG00 is just one disk so you cannot remove a disk from VG00.

Note that VG00 has only one disk so it is not mirrored. This puts your system at risk if there is a disk failure. Recommendation is to purchase an extra disk and the Mirror/UX software.


Bill Hassell, sysadmin
Victor BERRIDGE
Honored Contributor

Re: Space Reallocation Issue

Hi Adrian!

So hpux guru now then?

There is not other solution but to add a new disk to VG01...
But perhaps to solve your issue temporarily, you could try to move some data from vg01 to a new file system on vg00 and link, for this look if you could find a candidate directory in vg01 (do a du -sk . to see the size(in KB)) try to find something like 1-2 GB, create a lvol on vg00 and a filesystem, mount it somewhere on vg00 then go to your directory in vg01, be sure no one is changing the data (if oracle close the instances) then, once in the source directory do a find . -print| cpio -pduml /
then you can remove the source directory and link (ln -s) source-directory-name
Since you are going to erase, play safe and backup before...
As I said this is - if possible a temporary work around, I will have to get that extra disk one day...


All the best
Victor