remount lofs filesystem in zone (rw)

  • Follow


Dear c.u.s,

I'm attempting to install MailScanner in a non-global zone which has a
hard-coded install path of /opt/MailScanner. /opt is lofs mounted
read-only in my zone.

Apparently moving it afterwards is no problem.

How can I temporarily remount /opt to /zones/<mailserver>/root/opt with
read-write to perform this installation.

Thanks all,

Rob

0
Reply rgshepherd (7) 8/10/2006 10:01:22 AM

> How can I temporarily remount /opt to /zones/<mailserver>/root/opt with
> read-write to perform this installation.

zoneadm -z myzone halt

zonezfg -z myzone
zonecfg:myzone> select fs dir="/opt/MailScanner"
zonecfg:myzone:fs> set options=rw
zonecfg:myzone:fs> end
zonecfg:myzone> commit
zonecfg:myzone> exit

zoneadm -z myzone boot

0
Reply Phil 8/10/2006 5:03:40 PM


If  you don't want to reboot the zone do this:

mount -f lofs -o rw /opt /pathtozoneroot/opt

-Jeff


Rob Shepherd wrote:
> Dear c.u.s,
>
> I'm attempting to install MailScanner in a non-global zone which has a
> hard-coded install path of /opt/MailScanner. /opt is lofs mounted
> read-only in my zone.
>
> Apparently moving it afterwards is no problem.
>
> How can I temporarily remount /opt to /zones/<mailserver>/root/opt with
> read-write to perform this installation.
> 
> Thanks all,
> 
> Rob

0
Reply jeffhigham 8/10/2006 6:14:20 PM

jeffhigham@gmail.com wrote:
> If  you don't want to reboot the zone do this:
>
> mount -f lofs -o rw /opt /pathtozoneroot/opt
>

Yep, tried all manner of mount variations - no joy.

mount: /opt: device busy

Although /opt isn't the mountpoint in the global zone, it's the lofs
device, so I can't quite work out why it is reported busy.

Nevertheless,  I'll just give Phil Cordier's solution a go.

I was wondering if there was anything in between zonecfg+rebooting.
I'll need to reboot again afterwards to go back to ro.

Cheers

Rob

0
Reply Rob 8/10/2006 7:33:29 PM

3 Replies
821 Views

(page loaded in 0.08 seconds)

Similiar Articles:







7/21/2012 4:18:02 AM


Reply: