Discussion:
[Veritas-vx] Can I increse /opt partition under veritas
milind phanse
2010-04-03 08:20:46 UTC
Permalink
Hi,

Can I increse /opt partition under veritas

***@backup02 # vxprint opt
Disk group: rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  opt          fsgen        ENABLED  8395200  -        ACTIVE   -       -
pl opt-01       opt          ENABLED  8395200  -        ACTIVE   -       -
sd rootdisk-03  opt-01       ENABLED  8395200  0        -        -       -
pl opt-02       opt          ENABLED  8395200  -        ACTIVE   -       -
sd rootmirror-05 opt-02      ENABLED  8395200  0        -        -       -
***@backup02 # vxassist -g rootdg maxsize
Maximum volume size: 38952960 (19020Mb)

***@backup02 # vxassist -g rootdg maxgrow opt
Volume opt can be extended by 19476480 to: 27871680 (13609Mb+448 sectors)

/opt is mounted on s5 of rootdsik & rootmirror.
Hudes, Dana
2010-04-04 01:15:01 UTC
Permalink
having /opt as a separate filesystem isn't supported by Solaris. You can have stuff under /opt (e.g. /opt/coolstack) as a separate filesystem but putting /opt separate will cause problems.
This isn't theoretical. I tried the same thing and it worked for awhile then it didn't and the system was in single user mode for agonizing time while I frantically remounted /opt as /a and moved it's contents back to the root filesystem.

/var as a separate filesystem is well-supported. There was a bug for awhile but it's fixed.


________________________________
From: veritas-vx-***@mailman.eng.auburn.edu [mailto:veritas-vx-***@mailman.eng.auburn.edu] On Behalf Of milind phanse
Sent: Saturday, April 03, 2010 4:21 AM
To: VeritasUsers
Subject: [Veritas-vx] Can I increse /opt partition under veritas

Hi,

Can I increse /opt partition under veritas

***@backup02<mailto:***@backup02> # vxprint opt
Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v opt fsgen ENABLED 8395200 - ACTIVE - -
pl opt-01 opt ENABLED 8395200 - ACTIVE - -
sd rootdisk-03 opt-01 ENABLED 8395200 0 - - -
pl opt-02 opt ENABLED 8395200 - ACTIVE - -
sd rootmirror-05 opt-02 ENABLED 8395200 0 - - -
***@backup02<mailto:***@backup02> # vxassist -g rootdg maxsize
Maximum volume size: 38952960 (19020Mb)

***@backup02<mailto:***@backup02> # vxassist -g rootdg maxgrow opt
Volume opt can be extended by 19476480 to: 27871680 (13609Mb+448 sectors)

/opt is mounted on s5 of rootdsik & rootmirror.
Doug Hughes
2010-04-04 01:20:51 UTC
Permalink
Hudes, Dana wrote:
> having /opt as a separate filesystem isn't supported by Solaris. You
> can have stuff under /opt (e.g. /opt/coolstack) as a separate
> filesystem but putting /opt separate will cause problems.
> This isn't theoretical. I tried the same thing and it worked for
> awhile then it didn't and the system was in single user mode for
> agonizing time while I frantically remounted /opt as /a and moved it's
> contents back to the root filesystem.
>
> /var as a separate filesystem is well-supported. There was a bug for
> awhile but it's fixed.
>
I had a trick that fixed this a long while ago.. I did have /opt as a
vxvm partition, but to avoid the catch-22, I mirrored all the /opt/VRTS
stuff to the root partition underneath it. It's hackish, but it worked.
Hudes, Dana
2010-04-04 01:47:29 UTC
Permalink
> -----Original Message-----
> From: veritas-vx-***@mailman.eng.auburn.edu
> [mailto:veritas-vx-***@mailman.eng.auburn.edu] On Behalf
> Of Doug Hughes
> Sent: Saturday, April 03, 2010 9:21 PM
> To: Veritas Mailing List
> Subject: Re: [Veritas-vx] Can I increse /opt partition under veritas
>
> Hudes, Dana wrote:
> > having /opt as a separate filesystem isn't supported by
> Solaris.
> Doug Hughes wrote:
> I had a trick that fixed this a long while ago.. I did have
> /opt as a vxvm partition, but to avoid the catch-22, I
> mirrored all the /opt/VRTS stuff to the root partition
> underneath it. It's hackish, but it worked.
>
This is still not a supported configuration. All you've done is let VRTS find it's drivers. You still have all sorts of stuff that the OS wants but which is not on the root. Having e.g. /opt/SUNWexplo/output on a separate volume is fine and probably a good idea if you're crunched for space on root since Explorer will make a gigabyte of junk if things go awry. But the the /opt/SUNWexplo belongs to a package in the package database. The OS will have conniptions. At a minimum, Live Upgrade won't work right. Under certain kernels, it won't boot.
William Havey
2010-04-04 14:43:10 UTC
Permalink
Was the issue with /opt being an inherited directory in a Zone? That is
documented in the Install Guide for SF 5.0 MP3

On Sat, Apr 3, 2010 at 9:15 PM, Hudes, Dana <***@hra.nyc.gov> wrote:

> having /opt as a separate filesystem isn't supported by Solaris. You can
> have stuff under /opt (e.g. /opt/coolstack) as a separate filesystem but
> putting /opt separate will cause problems.
> This isn't theoretical. I tried the same thing and it worked for awhile
> then it didn't and the system was in single user mode for agonizing time
> while I frantically remounted /opt as /a and moved it's contents back to the
> root filesystem.
>
> /var as a separate filesystem is well-supported. There was a bug for awhile
> but it's fixed.
>
>
> ------------------------------
> *From:* veritas-vx-***@mailman.eng.auburn.edu [mailto:
> veritas-vx-***@mailman.eng.auburn.edu] *On Behalf Of *milind phanse
> *Sent:* Saturday, April 03, 2010 4:21 AM
> *To:* VeritasUsers
> *Subject:* [Veritas-vx] Can I increse /opt partition under veritas
>
> Hi,
>
> Can I increse /opt partition under veritas
>
> ***@backup02 # vxprint opt
> Disk group: rootdg
> TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0
> PUTIL0
> v opt fsgen ENABLED 8395200 - ACTIVE - -
> pl opt-01 opt ENABLED 8395200 - ACTIVE - -
> sd rootdisk-03 opt-01 ENABLED 8395200 0 - - -
> pl opt-02 opt ENABLED 8395200 - ACTIVE - -
> sd rootmirror-05 opt-02 ENABLED 8395200 0 - - -
> ***@backup02 # vxassist -g rootdg maxsize
> Maximum volume size: 38952960 (19020Mb)
>
> ***@backup02 # vxassist -g rootdg maxgrow opt
> Volume opt can be extended by 19476480 to: 27871680 (13609Mb+448 sectors)
>
> /opt is mounted on s5 of rootdsik & rootmirror.
>
>
>
> _______________________________________________
> Veritas-vx maillist - Veritas-***@mailman.eng.auburn.edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx
>
>
Hudes, Dana
2010-04-07 15:17:56 UTC
Permalink
yes, the boot failure was for a zone which inherited pieces of /opt (/opt/csw, /opt/netbeans...). don't inherit-pkg-dir /opt though, then you can't ever add your own directories to /opt in the zone.
Nonetheless as I said /opt on a separate filesystem is not supported by Sun. It will make lucreate fail among other things.


________________________________
From: William Havey [mailto:***@gmail.com]
Sent: Sunday, April 04, 2010 10:43 AM
To: Hudes, Dana
Cc: milind phanse; VeritasUsers
Subject: Re: [Veritas-vx] Can I increse /opt partition under veritas

Was the issue with /opt being an inherited directory in a Zone? That is documented in the Install Guide for SF 5.0 MP3

On Sat, Apr 3, 2010 at 9:15 PM, Hudes, Dana <***@hra.nyc.gov<mailto:***@hra.nyc.gov>> wrote:
having /opt as a separate filesystem isn't supported by Solaris. You can have stuff under /opt (e.g. /opt/coolstack) as a separate filesystem but putting /opt separate will cause problems.
This isn't theoretical. I tried the same thing and it worked for awhile then it didn't and the system was in single user mode for agonizing time while I frantically remounted /opt as /a and moved it's contents back to the root filesystem.

/var as a separate filesystem is well-supported. There was a bug for awhile but it's fixed.


________________________________
From: veritas-vx-***@mailman.eng.auburn.edu<mailto:veritas-vx-***@mailman.eng.auburn.edu> [mailto:veritas-vx-***@mailman.eng.auburn.edu<mailto:veritas-vx-***@mailman.eng.auburn.edu>] On Behalf Of milind phanse
Sent: Saturday, April 03, 2010 4:21 AM
To: VeritasUsers
Subject: [Veritas-vx] Can I increse /opt partition under veritas

Hi,

Can I increse /opt partition under veritas

***@backup02<mailto:***@backup02> # vxprint opt
Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v opt fsgen ENABLED 8395200 - ACTIVE - -
pl opt-01 opt ENABLED 8395200 - ACTIVE - -
sd rootdisk-03 opt-01 ENABLED 8395200 0 - - -
pl opt-02 opt ENABLED 8395200 - ACTIVE - -
sd rootmirror-05 opt-02 ENABLED 8395200 0 - - -
***@backup02<mailto:***@backup02> # vxassist -g rootdg maxsize
Maximum volume size: 38952960 (19020Mb)

***@backup02<mailto:***@backup02> # vxassist -g rootdg maxgrow opt
Volume opt can be extended by 19476480 to: 27871680 (13609Mb+448 sectors)

/opt is mounted on s5 of rootdsik & rootmirror.



_______________________________________________
Veritas-vx maillist - Veritas-***@mailman.eng.auburn.edu<mailto:Veritas-***@mailman.eng.auburn.edu>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx
robertinoau
2010-04-05 13:02:10 UTC
Permalink
Can you do it ? Yes

Should you do it ? No

VM will let you grow any volume BUT since your /opt on slice 5 it WILL NOT resize the underlying partition.

So if you need to un-encapsulate you will end up with /opt being the size of s5, NOT what you resized it to under VM.





________________________________
From: milind phanse <***@yahoo.com>
To: VeritasUsers <veritas-***@mailman.eng.auburn.edu>
Sent: Sat, 3 April, 2010 7:20:46 PM
Subject: [Veritas-vx] Can I increse /opt partition under veritas


Hi,

Can I increse /opt partition under veritas

***@backup02 # vxprint opt
Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v opt fsgen ENABLED 8395200 - ACTIVE - -
pl opt-01 opt ENABLED 8395200 - ACTIVE - -
sd rootdisk-03 opt-01 ENABLED 8395200 0 - - -
pl opt-02 opt ENABLED 8395200 - ACTIVE - -
sd rootmirror-05 opt-02 ENABLED 8395200 0 - - -
***@backup02 # vxassist -g rootdg maxsize
Maximum volume size: 38952960 (19020Mb)

***@backup02 # vxassist -g rootdg maxgrow opt
Volume opt can be extended by 19476480 to: 27871680 (13609Mb+448 sectors)

/opt is mounted on s5 of rootdsik & rootmirror.
Loading...