Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-06-01 Thread Jerry Jelinek

On 05/30/10 16:45, Ian Collins wrote:

I've tracked down the cause.  It was my backup copy of the zone ZFS tree
on another pool:

backup/zoneRoot 1.64G 89.3G 26K /backup/zoneRoot
backup/zoneRoot/svn 439M 89.3G 24K /backup/zoneRoot/svn
backup/zoneRoot/svn/ROOT 439M 89.3G 21K legacy
backup/zoneRoot/svn/ROOT/zbe 439M 89.3G 437M legacy

Even though the mountpoints and ZFS names differ, their presence appears
to have been causing confusion. When I export the backup pool, all boots
and creates work.

So my problem is solved, but there appears to be an issue with keeping
backup copies on the same machine.


Can you file a bug on this at defect.opensolaris.org
under product: pkg, component: zones.

Thanks,
Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-30 Thread Ian Collins

On 05/29/10 10:16 AM, Ian Collins wrote:

All the zones fail to bot with the same error

r...@i7:~# zoneadm -z ldap boot
zone 'ldap': ERROR: no active dataset.
zone 'ldap':
zoneadm: zone 'ldap': call to zoneadmd failed


Another data point:

I just tried creating another zone, with the following config:

r...@i7:~# zonecfg -z test export
create -b
set zonepath=/zoneRoot/test
set brand=ipkg
set autoboot=true
set ip-type=shared
add net
set address=192.168.42.44
set physical=rge0
set defrouter=192.168.42.3
end

The install failed:

r...@i7:~# zoneadm -z test install
A ZFS file system has been created for this zone.
ERROR: Unable to create the zone's ZFS dataset.

It was partly added:

r...@i7:~# zfs list -r rpool/zoneRoot/test
NAME   USED  AVAIL  REFER  MOUNTPOINT
rpool/zoneRoot/test 42K   542G21K  /zoneRoot/test
rpool/zoneRoot/test/ROOT21K   542G21K  legacy

A manual create worked:

r...@i7:~# zfs create -o mountpoint=legacy rpool/zoneRoot/test/ROOT/zbe
r...@i7:~# zfs list -r rpool/zoneRoot/test
NAME   USED  AVAIL  REFER  MOUNTPOINT
rpool/zoneRoot/test 63K   542G21K  /zoneRoot/test
rpool/zoneRoot/test/ROOT42K   542G21K  legacy
rpool/zoneRoot/test/ROOT/zbe21K   542G21K  legacy

I see in the truss output from the create:

4101:   write(2,  t o o   m a n y   a r g.., 19)  = 19
4101:   write(2,  u s a g e :\n, 7)   = 7
4101:   write(2, \t c r e a t e   [ - p ].., 122) = 122
4101:   write(2, \n F o r   t h e   p r o.., 29)  = 29
4101:   write(2,  z f s   s e t | g e t, 11)  = 11
4101:   write(2, \n, 1)   = 1
4101:   write(2, \n F o r   t h e   d e l.., 41)  = 41
4101:   write(2,  z f s   a l l o w | u n.., 17)  = 17
4101:   write(2, \n, 1)   = 1
4101:   _exit(2)

I have the full output if it helps.

--
Ian.

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-30 Thread Ian Collins
I've tracked down the cause.  It was my backup copy of the zone ZFS tree 
on another pool:


backup/zoneRoot 1.64G  89.3G26K  /backup/zoneRoot
backup/zoneRoot/svn  439M  89.3G24K  
/backup/zoneRoot/svn

backup/zoneRoot/svn/ROOT 439M  89.3G21K  legacy
backup/zoneRoot/svn/ROOT/zbe 439M  89.3G   437M  legacy

Even though the mountpoints and ZFS names differ, their presence appears 
to have been causing confusion.  When I export the backup pool, all 
boots and creates work.


So my problem is solved, but there appears to be an issue with keeping 
backup copies on the same machine.


--
Ian.

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-28 Thread Jerry Jelinek

On 05/26/10 17:14, Ian Collins wrote:

I have just restarted a b133 host with several zones and no none of them
will boot. They all report:

# zoneadm -z svn boot
zone 'svn': ERROR: no active dataset.
zone 'svn':
zoneadm: zone 'svn': call to zoneadmd failed

I've seen this mentioned as an issue after an upgrade, but this system
only has one BE (the active one) and all I have done is a restart.

Is there any way to get them back?


You haven't provided any information to enable anyone
to help you.

Are the datasets still there?  What does 'zfs list' show?
What is the zonepath of one of the zones which won't
boot?  Did you do anything with your BE's on this system
since you installed the zone?

Thanks,
Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-28 Thread Ian Collins

On 05/29/10 12:25 AM, Jerry Jelinek wrote:

On 05/26/10 17:14, Ian Collins wrote:

I have just restarted a b133 host with several zones and no none of them
will boot. They all report:

# zoneadm -z svn boot
zone 'svn': ERROR: no active dataset.
zone 'svn':
zoneadm: zone 'svn': call to zoneadmd failed

I've seen this mentioned as an issue after an upgrade, but this system
only has one BE (the active one) and all I have done is a restart.

Is there any way to get them back?


You haven't provided any information to enable anyone
to help you.


I thought I had, all I did was a reboot.

Are the datasets still there? 


Yes.


What does 'zfs list' show?


rpool   46.3G   542G  81.5K  /rpool
rpool/ROOT  5.98G   542G21K  legacy
rpool/ROOT/opensolaris  5.98G   542G  5.93G  /
rpool/build  438M   542G   424M  /build
rpool/depot   42K   542G24K  /depot
rpool/dump  3.00G   542G  3.00G  -
rpool/export16.0M   542G23K  /export
rpool/export/home   16.0M   542G23K  /export/home
rpool/export/home/admin 15.9M   542G  15.9M  /export/home/admin
rpool/on 545M   542G   545M  /rpool/on
rpool/play  17.0G   542G27K  /rpool/play
rpool/play/test 6.68G   542G  6.68G  /rpool/play/test
rpool/play/vol10G   10.3G   552G  21.5M  -
rpool/swap  3.28G   545G  52.3M  -
rpool/vdi   14.2G   542G  13.9G  /vdi
rpool/zoneRoot  1.28G   542G26K  /zoneRoot
rpool/zoneRoot/svn   439M   542G24K  /zoneRoot/svn
rpool/zoneRoot/ftp  472M   542G24K  /zoneRoot/ftp
rpool/zoneRoot/ftp/ROOT 472M   542G21K  legacy
rpool/zoneRoot/ftp/ROOT/zbe 472M   542G   470M  legacy
rpool/zoneRoot/ldap32.9M   542G25K  /zoneRoot/ldap
rpool/zoneRoot/ldap/ROOT   32.9M   542G21K  legacy
rpool/zoneRoot/ldap/ROOT/zbe   32.8M   542G   369M  legacy
rpool/zoneRoot/pdc  369M   542G24K  /zoneRoot/pdc
rpool/zoneRoot/pdc/ROOT 369M   542G21K  legacy
rpool/zoneRoot/pdc/ROOT/zbe 369M   542G   366M  legacy


None of the zones boot.


What is the zonepath of one of the zones which won't
boot?  Did you do anything with your BE's on this system
since you installed the zone?


zonepath=/zoneRoot/svn

ls /zoneRoot/svn/
dev  root

There is only one BE. the system was installed with b133.

--
Ian.

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-28 Thread Jerry Jelinek

On 05/28/10 15:16, Ian Collins wrote:

On 05/29/10 12:25 AM, Jerry Jelinek wrote:

On 05/26/10 17:14, Ian Collins wrote:

I have just restarted a b133 host with several zones and no none of them
will boot. They all report:

# zoneadm -z svn boot
zone 'svn': ERROR: no active dataset.
zone 'svn':
zoneadm: zone 'svn': call to zoneadmd failed

I've seen this mentioned as an issue after an upgrade, but this system
only has one BE (the active one) and all I have done is a restart.

Is there any way to get them back?


You haven't provided any information to enable anyone
to help you.


I thought I had, all I did was a reboot.


Are the datasets still there?


Yes.


What does 'zfs list' show?


rpool 46.3G 542G 81.5K /rpool
rpool/ROOT 5.98G 542G 21K legacy
rpool/ROOT/opensolaris 5.98G 542G 5.93G /
rpool/build 438M 542G 424M /build
rpool/depot 42K 542G 24K /depot
rpool/dump 3.00G 542G 3.00G -
rpool/export 16.0M 542G 23K /export
rpool/export/home 16.0M 542G 23K /export/home
rpool/export/home/admin 15.9M 542G 15.9M /export/home/admin
rpool/on 545M 542G 545M /rpool/on
rpool/play 17.0G 542G 27K /rpool/play
rpool/play/test 6.68G 542G 6.68G /rpool/play/test
rpool/play/vol10G 10.3G 552G 21.5M -
rpool/swap 3.28G 545G 52.3M -
rpool/vdi 14.2G 542G 13.9G /vdi
rpool/zoneRoot 1.28G 542G 26K /zoneRoot
rpool/zoneRoot/svn 439M 542G 24K /zoneRoot/svn
rpool/zoneRoot/ftp 472M 542G 24K /zoneRoot/ftp
rpool/zoneRoot/ftp/ROOT 472M 542G 21K legacy
rpool/zoneRoot/ftp/ROOT/zbe 472M 542G 470M legacy
rpool/zoneRoot/ldap 32.9M 542G 25K /zoneRoot/ldap
rpool/zoneRoot/ldap/ROOT 32.9M 542G 21K legacy
rpool/zoneRoot/ldap/ROOT/zbe 32.8M 542G 369M legacy
rpool/zoneRoot/pdc 369M 542G 24K /zoneRoot/pdc
rpool/zoneRoot/pdc/ROOT 369M 542G 21K legacy
rpool/zoneRoot/pdc/ROOT/zbe 369M 542G 366M legacy


None of the zones boot.


What is the zonepath of one of the zones which won't
boot? Did you do anything with your BE's on this system
since you installed the zone?


zonepath=/zoneRoot/svn

ls /zoneRoot/svn/
dev root

There is only one BE. the system was installed with b133.


The svn zone won't boot because there is no zfs dataset for
the zonepath root.  There should be two datasets named
rpool/zoneRoot/svn/ROOT and rpool/zoneRoot/svn/ROOT/zbe.

You might be able to determine some information about what
happened using the 'zpool history' command.  That would show
you if the dataset was created and then later destroyed.  That
might give you a clue when that happened and you could
try to narrow down what happened from there.

It looks like you have datasets for other zones with zonepaths
of /zoneRoot/ftp, /zoneRoot/ldap and /zoneRoot/pdc.
What is the error you get when you try to boot one of those
zones?

Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-28 Thread Ian Collins

On 05/29/10 09:51 AM, Jerry Jelinek wrote:

On 05/28/10 15:16, Ian Collins wrote:

What does 'zfs list' show?


rpool 46.3G 542G 81.5K /rpool
rpool/ROOT 5.98G 542G 21K legacy
rpool/ROOT/opensolaris 5.98G 542G 5.93G /
rpool/build 438M 542G 424M /build
rpool/depot 42K 542G 24K /depot
rpool/dump 3.00G 542G 3.00G -
rpool/export 16.0M 542G 23K /export
rpool/export/home 16.0M 542G 23K /export/home
rpool/export/home/admin 15.9M 542G 15.9M /export/home/admin
rpool/on 545M 542G 545M /rpool/on
rpool/play 17.0G 542G 27K /rpool/play
rpool/play/test 6.68G 542G 6.68G /rpool/play/test
rpool/play/vol10G 10.3G 552G 21.5M -
rpool/swap 3.28G 545G 52.3M -
rpool/vdi 14.2G 542G 13.9G /vdi
rpool/zoneRoot 1.28G 542G 26K /zoneRoot
rpool/zoneRoot/svn 439M 542G 24K /zoneRoot/svn
rpool/zoneRoot/ftp 472M 542G 24K /zoneRoot/ftp
rpool/zoneRoot/ftp/ROOT 472M 542G 21K legacy
rpool/zoneRoot/ftp/ROOT/zbe 472M 542G 470M legacy
rpool/zoneRoot/ldap 32.9M 542G 25K /zoneRoot/ldap
rpool/zoneRoot/ldap/ROOT 32.9M 542G 21K legacy
rpool/zoneRoot/ldap/ROOT/zbe 32.8M 542G 369M legacy
rpool/zoneRoot/pdc 369M 542G 24K /zoneRoot/pdc
rpool/zoneRoot/pdc/ROOT 369M 542G 21K legacy
rpool/zoneRoot/pdc/ROOT/zbe 369M 542G 366M legacy


None of the zones boot.


What is the zonepath of one of the zones which won't
boot? Did you do anything with your BE's on this system
since you installed the zone?


zonepath=/zoneRoot/svn

ls /zoneRoot/svn/
dev root

There is only one BE. the system was installed with b133.


The svn zone won't boot because there is no zfs dataset for
the zonepath root.  There should be two datasets named
rpool/zoneRoot/svn/ROOT and rpool/zoneRoot/svn/ROOT/zbe.


I'm sorry, that was a slip of the past buffer, the datasets are there:

rpool/zoneRoot  1.28G   542G26K  /zoneRoot
rpool/zoneRoot/svn   439M   542G24K  /zoneRoot/svn
rpool/zoneRoot/svn/ROOT  439M   542G21K  legacy
rpool/zoneRoot/svn/ROOT/zbe  439M   542G   437M  legacy


It looks like you have datasets for other zones with zonepaths
of /zoneRoot/ftp, /zoneRoot/ldap and /zoneRoot/pdc.
What is the error you get when you try to boot one of those
zones?


All the zones fail to bot with the same error

r...@i7:~# zoneadm -z ldap boot
zone 'ldap': ERROR: no active dataset.
zone 'ldap':
zoneadm: zone 'ldap': call to zoneadmd failed

--
Ian.

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-27 Thread Ian Collins

On 05/27/10 11:14 AM, Ian Collins wrote:
I have just restarted a b133 host with several zones and no none of 
them will boot.  They all report:


# zoneadm -z svn boot
zone 'svn': ERROR: no active dataset.
zone 'svn':
zoneadm: zone 'svn': call to zoneadmd failed

I've seen this mentioned as an issue after an upgrade, but this system 
only has one BE (the active one) and all I have done is a restart.


Is there any way to get them back?


Anyone?

I'd really hate to loose these zones and if there is a lurking bug, it 
could catch anyone on a production box.


--
Ian.

___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] booting zone after system restart fails with ERROR: no active dataset

2010-05-26 Thread Ian Collins
I have just restarted a b133 host with several zones and no none of them 
will boot.  They all report:


# zoneadm -z svn boot
zone 'svn': ERROR: no active dataset.
zone 'svn':
zoneadm: zone 'svn': call to zoneadmd failed

I've seen this mentioned as an issue after an upgrade, but this system 
only has one BE (the active one) and all I have done is a restart.


Is there any way to get them back?

--
Ian.

___
zones-discuss mailing list
zones-discuss@opensolaris.org