1754379 Members
4449 Online
108813 Solutions
New Discussion юеВ

extending /opt with sam

 
Jason_309
Regular Advisor

extending /opt with sam

Is it possible to extend /opt with sam?
10 REPLIES 10
Florian Heigl (new acc)
Honored Contributor

Re: extending /opt with sam

I never tried this with SAM, but it seems not possible.

I looked both on a system with LVM and VxVM, and both do not appear have such an option in SAM disk&filesystems -> filesystems.
(required OnlineJFS is installed on both hosts.)

If the 'shell way' is ok for You, please ask :)

florian

yesterday I stood at the edge. Today I'm one step ahead.
Jeff Schussele
Honored Contributor

Re: extending /opt with sam

Hi Jason,

Yes - but only if you have the OnLineJFS product installed.
swlist | grep -i online
to see if you do or not.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
HGN
Honored Contributor

Re: extending /opt with sam

Jeff Schussele
Honored Contributor

Re: extending /opt with sam

And I should add that all you need to do in SAM is extend the filesystem. It will do all the work in the background like extending LV and such.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
HGN
Honored Contributor

Re: extending /opt with sam

Hi

Can eb extended but not using SAM

Rdgs

HGN
Jason_309
Regular Advisor

Re: extending /opt with sam

When i checked for jfs i get OnlineDiag.
Pete Randall
Outstanding Contributor

Re: extending /opt with sam

It may still be possible to do it with SAM but you will most likely need to go to single user mode to get it unmounted. That means you'll be using the TUI version of SAM or the command line. It's really not that difficult to do from the command line but, without OnlineJFS, you'll have to unmount the file system, hence single user mode.

Take a look at the EXAMPLES section of the lvextend man page. The third or fourth example shows the full set of steps.


Pete

Pete
Tim Nelson
Honored Contributor

Re: extending /opt with sam

years of experience say "Never use SAM for anything" :)

If enough free extents in vg00
shutdown to single user (may have to un mount /opt or just reboot into single user)

lvextend /dev/vg00/lvolx (which ever opt is)
extendfs /dev/vg00/lvolx
reboot

Roland Piette
Regular Advisor

Re: extending /opt with sam

Hi Jason,

The links proposed by HGN are relevant.

May I give some additional informations ?

Most of the time /opt lays on the primary Volume group (VG00), so if the is no more space available on it you can add a Physical Volume in this VG (except HWD restriction).

With this manner you will gain space not only for /opt but also for the other FS in this VG except all with contigous block allocation.

Good Luck
Roland