List Info

Thread: Re: Solaris as an applicance - Read-only FS &




Re: Solaris as an applicance - Read-only FS &
country flaguser name
United States
2008-03-06 14:53:09
I am new to Solaris and am trying to replicate this setup. 
To test, I have:

1.  commented out the root remount in fs-usr
2.  included "ps::sysinit:/lib/svc/bin/pre_smf
>/dev/msglog 2<>/dev/msglog" in /etc/inittab
as indicated
3.  created a simple /lib/svc/bin/pre_smf:
          
          mount -F tmpfs swap /tmp
          mkdir -m 0777 /tmp/root
          cd /
          find sbin -depth -print | cpio -pdm /tmp/root
          mount -m -F lofs /tmp/root/sbin /sbin
          find devices dev -depth -print | cpio -pdm /tmp
          mount -m -F lofs /tmp/devices /devices
          mount -m -F lofs /tmp/dev /dev

(Yes it is insufficient, but if this bit does not work,
then...)

The files are copied properly, but the output from the mount
commands is:

mount: /tmp/root/sbin: Device busy
mount: /tmp/devices: Device busy
mount: /tmp/dev: Device busy

So, I have missed something.

Any advice would be appreciated.
 
 
This message posted from opensolaris.org
_______________________________________________
appliances-discuss mailing list
appliances-discussopensolaris.org
http://mail.opensolaris.org/mailman/listinfo/appl
iances-discuss

Re: Solaris as an applicance - Read-only FS &
country flaguser name
United States
2008-03-11 16:19:35
Stephen Quintero wrote:

>I am new to Solaris and am trying to replicate this
setup.  To test, I have:
>
>1.  commented out the root remount in fs-usr
>2.  included "ps::sysinit:/lib/svc/bin/pre_smf
>/dev/msglog 2<>/dev/msglog" in /etc/inittab
as indicated
>3.  created a simple /lib/svc/bin/pre_smf:
>          
>          mount -F tmpfs swap /tmp
>          mkdir -m 0777 /tmp/root
>          cd /
>          find sbin -depth -print | cpio -pdm /tmp/root
>          mount -m -F lofs /tmp/root/sbin /sbin
>          find devices dev -depth -print | cpio -pdm
/tmp
>          mount -m -F lofs /tmp/devices /devices
>          mount -m -F lofs /tmp/dev /dev
>
>(Yes it is insufficient, but if this bit does not work,
then...)
>
>The files are copied properly, but the output from the
mount commands is:
>
>mount: /tmp/root/sbin: Device busy
>mount: /tmp/devices: Device busy
>mount: /tmp/dev: Device busy
>
>So, I have missed something.
>
>Any advice would be appreciated.
>  
>

Can you replicate this problem on a normal system and use
dtrace to find out where the error comes from?

Darren

_______________________________________________
appliances-discuss mailing list
appliances-discussopensolaris.org
http://mail.opensolaris.org/mailman/listinfo/appl
iances-discuss

Re: Solaris as an applicance - Read-only FS &
country flaguser name
United States
2008-03-11 18:46:07
I think I needed to change a few of the fs-XXXXX scripts
under /lib/svc/method, not to mention, disable a lot of
services.

I was thinking of going up a separate route for this.

I was at Sun Training the other day and we got given an
opensolaris live dvd.  So this boots the O/S up off the DVD
and looks to mount / as r/w from the ramdisk device. 
Perhaps trying to go up this old "route" on how we
used to get read-only going using Solaris 2.6, 7, 8, 9 is no
longer the way we should do it.
 
 
This message posted from opensolaris.org
_______________________________________________
appliances-discuss mailing list
appliances-discussopensolaris.org
http://mail.opensolaris.org/mailman/listinfo/appl
iances-discuss

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )