1838648 Members
2888 Online
110128 Solutions
New Discussion

Moving /opt (again...)

 
SOLVED
Go to solution
Per Berger
New Member

Moving /opt (again...)

Hi all!

I'm new to HP-UX, have been running Linux, FreeBSD and some Solaris before. Now I have "inherited" an HP 9000 C100 running HP-UX B10.20 and I am trying to learn as much as possible.
Now, I have seen this question before but as I felt unsure regarding the answers I've seen (e.g. referring to a KB doc that I cannot find), I will ask this again. Bear with me, please...!

My boot/system disk is getting quite full and as I want to install more software under /opt I want to move /opt to a LV with much more space. How do I do this without the risk of anything BAAAD happening?

Regards,
/Per Berger
"I'm not called "Terminator" for nothing! :-)"
6 REPLIES 6
Manju Kampli
Trusted Contributor

Re: Moving /opt (again...)

There are two ways you can do this. If you have a free disk, add the free disk to /dev/vg00 volume group and extend the required file systems on it ( mainly /usr , /opt )

If you do not have a free disk and want to use the existing Volume group ( other than /dev/vg00)where you have space, then create a logical volume of enough space for a file system which you want to move and copy the data from root VG file system to the new file system and mount the new file system in place of root VG filesystem. Obser the system for few days. If everything is file, then delete the OLD root VG file system and the space created by this can be used to extend other root VG file systems.
Hope this helps.
Never stop "LEARNING"
Victor BERRIDGE
Honored Contributor

Re: Moving /opt (again...)

Instead of extending /opt why dont you do like most of us,:filesystems for specific application or software like:
/opt/oracle
/opt/netscape
etc...
and leave in opt what came with the install otherwise you will have hard work in migrating at the next release
James R. Ferguson
Acclaimed Contributor

Re: Moving /opt (again...)

Hi:

I agree with Victor. Subdividing /opt into addition mountpoints is a clean way to remain close to the original architecture. This is what we have done at my site.

A very good discussion can be found at:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd05468c57f64d4118fee0090279cd0f9,00.html

..JRF...
Anthony deRito
Respected Contributor

Re: Moving /opt (again...)

Per,

Divide and conquer! (That is /opt I mean.)

Tony
Kofi ARTHIABAH
Honored Contributor
Solution

Re: Moving /opt (again...)

I addition to the suggestions above, since you are new to HPUX, you might want to check out the HPUX system Administration tasks available at http://docs.hp.com/hpux/pdf/B2355-90672.pdf

specifically, chapter 3 talks about logical volumes and all that good stuff.

Good luck
nothing wrong with me that a few lines of code cannot fix!
Per Berger
New Member

Re: Moving /opt (again...)

Hi all again!

Thanks a lot for all answers! Now I know what to do. The concept of LV:s is no problem for me, my primary job is as System Manager for a bunch of servers running Novell NetWare...

My first encounter with this forum has been a happy one...! I'll be back.

Regards,

/Per Berger
"I'm not called "Terminator" for nothing! :-)"