Operating System - HP-UX
1833016 Members
2988 Online
110048 Solutions
New Discussion

Re: Reclaiming space in a partition

 
SOLVED
Go to solution
Marty Metras
Super Advisor

Reclaiming space in a partition

I have extra space in /opt and need some more in /usr. Both are in vg00. I know if I just take space away from /opt I could lose stuff.
Am I right to think I might just copy /opt to some free space on an another drive. Then drop /opt and make is smaller. Then copy back /opt. Then just extend the size of /usr.
And do this on off hours so I could shutdown the Apps that run from here.
Or is there another way to do this?
Marty
The only thing that always remain the same are the changes.
6 REPLIES 6
Devender Khatana
Honored Contributor
Solution

Re: Reclaiming space in a partition

Hi,

It can be done online on the fly if you have a product called Online-JFS installed. With the help of this product you can reduce a file system online safely. Once /opt is reduced there should not be any problems in extending /usr.
To find if you have the product installed or not do

MY201:/>>swlist -l product |grep -i online
OnlineJFS B.11.11 Online features of the VxFS File System

If you do not have the product but have free or unallocated space in vg00, then also you could achive this.

Another option will be to do it temporarily by creating file system in the VG with free space and then mount it somewhere in /usr i.e. /usr/oracle.

HTH,
Devender
Impossible itself mentions "I m possible"
Pete Randall
Outstanding Contributor

Re: Reclaiming space in a partition

Marty,

Yes, your approach is sound. The other way to do this would be to make an Ignite make_tape_recovery backup and use it to re-create your root volume group, resizing the logical volumes in the process:

http://www.docs.hp.com/en/IUX/

In either case it is going to require downtime. With your approach I would suggest going to single user mode in order to get the file systems unmounted so you can work on them.


Pete

Pete
Marty Metras
Super Advisor

Re: Reclaiming space in a partition

Well, it looks like I have the patches.
# swlist -l product |grep -i online
PHKL_22393 1.0 VxFS 31 OnlineJFS cumulative patch
PHKL_24745 1.0 VxFS 31 OnlineJFS cumulative patch

And vg00 is all consumed. That why the question.

It might be time to do like Pete says and use the Ignite tape. If I do this I can install bigger System drives (18GB to 36GB) and add some more memory. I have been just waiting for a reason to do all of this any way.
Can you point me to some good Ignite documention the would step me through the process? I understand the concept. I have not done a recover with Ignite.

Marty

The only thing that always remain the same are the changes.
Devender Khatana
Honored Contributor

Re: Reclaiming space in a partition

Hi,

You have the patched but not the product. The product should be there to achive this. The ignite documentation is available here.

http://www.docs.hp.com/en/IUX/faq.html#set7

HTH,
Devender
Impossible itself mentions "I m possible"
Alessandro Pilati
Esteemed Contributor

Re: Reclaiming space in a partition

Marty,
here you can find some useful links for you:

http://www.docs.hp.com/en/oshpux11iv2.html#Ignite-UX

Regards,
Alex
if you don't try, you'll never know if you are able to
Pete Randall
Outstanding Contributor

Re: Reclaiming space in a partition

Marty,

Here's the link for the Administration Guide:

http://www.docs.hp.com/en/B2355-90872/index.html


Pete

Pete