Hi  Enda / Renaud

Thanks for your comments on this.

I had done initial install with zfs root.   And "/var" is separate data 
set.  Installer is giving this option to create separate dataset for 
"/var" only.  After successful install, reboot the system in failsafe mode.

In fail safe,  "/var" not mounted.   Customer wants "/var" need to be 
mounted by default.  He don't want to run explicit command "zfs mount 
xxxx/var"  in failsafe.

        SunOS Release 5.10 Version Generic_141445-05 32-bit
        Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
        Use is subject to license terms.
        Booting to milestone "milestone/single-user:default".
        Configuring devices.
        Searching for installed OS instances...

        Multiple OS instances were found. To check and mount one of them
        read-write under /a, select it from the following list. To not mount
        any, select 'q'.

          1  /dev/dsk/c0t1d0s0              Solaris Express Community
        Edition snv_117 X86
          2  rpool:15790655211463721210     ROOT/s10x_u8wos_05

        Please select a device to be mounted (q for none) [?,??,q]: 2
        mounting rpool on /a

        Starting shell.

        # svcs -a | grep online
        online         15:01:46 svc:/system/svc/restarter:default  
        <----only one service.
        #

I agree with Renaud saying that "I think that when you're booting in 
failsafe, you're booting off the miniroot which doesn't have all that is 
needed to boot in single-user mode. ".  Thats why when we look for 
online service, only "restarter" service is online.  Rest all 
disabled/offline.  It is not starting any filesystem services.

I feel that "/var" need not be mounted in fail safe.  The purpose of 
failsafe is only to update the boot-archive.  But customer asking us to 
mount ""/var" in case of failsafe zfs root.

Thanks
Sreedhar


Enda O'Connor wrote:
> Hi
> So is this zfs root?
>
> as far as I know /var has to be in the root poool under ROOT if using 
> zfs root.
>
> Enda
>
> On 08/31/09 13:42, Renaud Manus wrote:
>> Hi Narendra,
>>
>> I think that when you're booting in failsafe, you're booting off the 
>> miniroot which doesn't have all that is needed to boot in single-user
>> mode.
>>
>> You're better off booting with milestone = none and then run
>> svcadm enable -rt filesystem/local. I don't recommend using the
>> -s flag in this situation, so you can monitor what the system is
>> doing via the CLI.
>>
>> -- Renaud
>>
>> Narendra Kumar S.S wrote:
>>> Hi,
>>>
>>>      I have a query related to milestone and smf services in 
>>> failsafe mode.
>>>      I have an s10 system and I have booted to failsafe mode.
>>>      When I do 'svcs -a | grep milestone', I see that 
>>> milestone-singleuser is offline and none of the milestones are online.
>>>      The problem I am working on is related to /var filesystem.
>>>      /var is a zfs filesystem and it is on a disk other than root disk.
>>>      Now, in failsafe mode, the /var is not mounted.
>>>      When I try to do 'svcadm enable -rst filesystem/local', this 
>>> never comes out.
>>>      I think, this is waiting for some of its dependent services to 
>>> come up, which might be dependent on the milestone.
>>>
>>>      So, can somebody suggest me how to bring up filesystem/local 
>>> while in failsafe, so that /var gets mounted?
>>>
>>> -- 
>>> Warm Regards,
>>> Narendra
>>>
>>> Visit my blogs at:
>>> http://ssnarendrakumar.blogspot.com/
>>>   ___    ___    __    _
>>>  /  __/  /  __/  /     | / /
>>> _\   \   _ \   \   /   /| |/ /
>>> \___/ \___/   /_/ |__/
>>>
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> _______________________________________________
>>> smf-discuss mailing list
>>> smf-discuss at opensolaris.org
>> _______________________________________________
>> smf-discuss mailing list
>> smf-discuss at opensolaris.org
>

Reply via email to