This discussion is archived
4 Replies Latest reply: Apr 5, 2012 1:22 AM by 928499 RSS

Solaris 11 x86 unable to create zone with zfs ( ERROR: no active dataset.)

928499 Newbie
Currently Being Moderated
Hello,
got an intressting behavior when i try to create a new zone on solaris 11 x86

Config:+
SunOS ussol01 5.11 11.0 i86pc i386 i86pc
Using a local repository
--
root@ussol01:/rpool/zonepool/zt1# cat /etc/zones/zonetest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
DO NOT EDIT THIS FILE. Use zonecfg(1M) instead.
-->
<zone name="zonetest1" zonepath="/rpool/zonepool/zt1" autoboot="false" brand="solaris" ip-type="exclusive">
<automatic-network lower-link="auto" linkname="net0" link-protection="mac-nospoof" mac-address="random"/>
</zone>
--
root@ussol01:/etc/zones# zoneadm -z zonetest1 install
Progress being logged to /var/log/zones/zoneadm.20120404T134957Z.zonetest1.install
Image: Preparing at /rpool/zonepool/zt1/root.

Install Log: /system/volatile/install.19545/install_log
AI Manifest: /tmp/manifest.xml.PvayjM
SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Zonename: zonetest1
Installation: Starting ...

Creating IPS image
Installing packages from:
solaris
origin: http://localhost:1008/solaris/f020eabcb67dff4e28f50d0d5147a9795516317c/
DOWNLOAD PKGS FILES XFER (MB)
Completed 167/167 32062/32062 175.8/175.8

PHASE ACTIONS
Install Phase 44313/44313

PHASE ITEMS
Package State Update Phase 167/167
Image State Update Phase 2/2
Installation: Succeeded

Note: Man pages can be obtained by installing pkg:/system/manual

done.

ERROR: no active dataset.
ERROR: Unable to mount zone root dataset.

----
those zfs datasets where created during the installation process:

rpool/zonepool/zt1 669M 221G 31K /rpool/zonepool/zt1
rpool/zonepool/zt1/rpool 669M 221G 31K /rpool
rpool/zonepool/zt1/rpool/ROOT 669M 221G 31K legacy
rpool/zonepool/zt1/rpool/ROOT/solaris 334M 221G 310M /
rpool/zonepool/zt1/rpool/ROOT/solaris-1 334M 221G 310M /
rpool/zonepool/zt1/rpool/ROOT/solaris-1/var 24.1M 221G 23.2M /var
rpool/zonepool/zt1/rpool/ROOT/solaris/var 24.1M 221G 23.2M /var
rpool/zonepool/zt1/rpool/export 62K 221G 31K /export
rpool/zonepool/zt1/rpool/export/home 31K 221G 31K /export/home

---

any ideas ?
bg Martin
  • 1. Re: Solaris 11 x86 unable to create zone with zfs ( ERROR: no active dataset.)
    mgerdts - oracle Explorer
    Currently Being Moderated
    user10100495 wrote:
    Hello,
    got an intressting behavior when i try to create a new zone on solaris 11 x86
    Just so that I know specifically what you are running, can you give the output of "pkg list entire"?
    ERROR: no active dataset.
    ERROR: Unable to mount zone root dataset.

    ----
    those zfs datasets where created during the installation process:

    rpool/zonepool/zt1 669M 221G 31K /rpool/zonepool/zt1
    rpool/zonepool/zt1/rpool 669M 221G 31K /rpool
    rpool/zonepool/zt1/rpool/ROOT 669M 221G 31K legacy
    rpool/zonepool/zt1/rpool/ROOT/solaris 334M 221G 310M /
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 334M 221G 310M /
    rpool/zonepool/zt1/rpool/ROOT/solaris-1/var 24.1M 221G 23.2M /var
    rpool/zonepool/zt1/rpool/ROOT/solaris/var 24.1M 221G 23.2M /var
    rpool/zonepool/zt1/rpool/export 62K 221G 31K /export
    rpool/zonepool/zt1/rpool/export/home 31K 221G 31K /export/home
    Please provide the output of:

    zfs get -rs local,received all rpool/zonepool/zt1/rpool/ROOT
    beadm list -H

    There may be something useful in /var/log/zones/zoneadm.20120404T134957Z.zonetest1.install as well.
  • 2. Re: Solaris 11 x86 unable to create zone with zfs ( ERROR: no active dataset.)
    928499 Newbie
    Currently Being Moderated
    root@ussol01:/rpool/zonepool/zt1# pkg list entire
    NAME (PUBLISHER) VERSION IFO
    entire 0.5.11-0.175.0.0.0.2.0 i--

    --
    root@ussol01:/rpool/zonepool/zt1# zfs get -rs local,received all rpool/zonepool/zt1/rpool/ROOT
    NAME PROPERTY VALUE SOURCE
    rpool/zonepool/zt1/rpool/ROOT mountpoint legacy local
    rpool/zonepool/zt1/rpool/ROOT canmount off local
    rpool/zonepool/zt1/rpool/ROOT/solaris mountpoint / local
    rpool/zonepool/zt1/rpool/ROOT/solaris compression on local
    rpool/zonepool/zt1/rpool/ROOT/solaris canmount noauto local
    rpool/zonepool/zt1/rpool/ROOT/solaris org.opensolaris.libbe:parentbe 361bd80b-945a-e78d-8697-b28c44a8b636 local
    rpool/zonepool/zt1/rpool/ROOT/solaris org.opensolaris.libbe:active on local
    rpool/zonepool/zt1/rpool/ROOT/solaris@install org.opensolaris.libbe:policy static local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 mountpoint / local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 compression on local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 canmount noauto local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 org.opensolaris.libbe:parentbe 361bd80b-945a-e78d-8697-b28c44a8b636 local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 org.opensolaris.libbe:active on local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1@install org.opensolaris.libbe:policy static local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1/var canmount noauto local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1/var@install org.opensolaris.libbe:policy static local
    rpool/zonepool/zt1/rpool/ROOT/solaris/var canmount noauto local
    rpool/zonepool/zt1/rpool/ROOT/solaris/var@install org.opensolaris.libbe:policy static local

    --
    root@ussol01:/rpool/zonepool/zt1# beadm list -H
    solaris;361bd80b-945a-e78d-8697-b28c44a8b636;NR;/;4310482432;static;1333463780
    solaris;f126befe-4ca7-4dff-bef4-b63560d22a61;N;;4555443200;static;1316090997
    solarisinst;b06301ae-30c0-e290-8ab4-ce823a3ba063;;;14706176;static;1321456694
    solarisinst-1;2160c3f1-2f19-6985-db15-96f90d8f7528;;;3274536448;static;1321464075
  • 3. Re: Solaris 11 x86 unable to create zone with zfs ( ERROR: no active dataset.)
    mgerdts - oracle Explorer
    Currently Being Moderated
    user10100495 wrote:
    root@ussol01:/rpool/zonepool/zt1# pkg list entire
    NAME (PUBLISHER) VERSION IFO
    entire 0.5.11-0.175.0.0.0.2.0 i--
    That tells me that you are running with no SRUs (support repository updates) applied - that should be fine. One word of caution - it is best that you not cd to the zonepath or below (from the global zone) while doing zone operations. That will cause strange problems that will give rather vague "busy" errors that will likely be impossible to definitively diagnose after the fact.

    >
    --
    root@ussol01:/rpool/zonepool/zt1# zfs get -rs local,received all rpool/zonepool/zt1/rpool/ROOT
    NAME PROPERTY VALUE SOURCE
    [snip]
    rpool/zonepool/zt1/rpool/ROOT/solaris org.opensolaris.libbe:parentbe 361bd80b-945a-e78d-8697-b28c44a8b636 local
    rpool/zonepool/zt1/rpool/ROOT/solaris org.opensolaris.libbe:active on local
    [snip]
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 org.opensolaris.libbe:parentbe 361bd80b-945a-e78d-8697-b28c44a8b636 local
    rpool/zonepool/zt1/rpool/ROOT/solaris-1 org.opensolaris.libbe:active on local
    Those two file systems are the root file systems of two different zone boot environments (ZBEs). They are both associated with the same global zone BE. That global zone BE is the one that is mounted at /, which we can tell by looking at the ...:parentbe property above and the second field of the beadm output below. That's OK too. What the problem seems to be is that both of the ZBEs are active (org.opensolaris.libbe:active=on). This seems to imply that there were two invocations of 'zoneadm install' without a 'zoneadm uninstall' in between. That shouldn't have been allowed.

    Can you explain more about how you got into this situation?
    root@ussol01:/rpool/zonepool/zt1# beadm list -H
    solaris;361bd80b-945a-e78d-8697-b28c44a8b636;NR;/;4310482432;static;1333463780
    solaris;f126befe-4ca7-4dff-bef4-b63560d22a61;N;;4555443200;static;1316090997
    solarisinst;b06301ae-30c0-e290-8ab4-ce823a3ba063;;;14706176;static;1321456694
    solarisinst-1;2160c3f1-2f19-6985-db15-96f90d8f7528;;;3274536448;static;1321464075
    What does 'zoneadm -z zt1 list -v' say?
  • 4. Re: Solaris 11 x86 unable to create zone with zfs ( ERROR: no active dataset.)
    928499 Newbie
    Currently Being Moderated
    Hi,
    Problem solved :)

    Problem was:
    I've had two discs with two different subversions of SOL11.
    .) DiskA: Sol11 older version where i got my local repository installed
    .) installed new Version on DiskB ( and changed the bootprio in BIOS)
    .) then i ( and that seems to be the crux) imported the zfs pool from the older version to use the local repos ( zpool import -f zpoolID rpool2)
    this probably messed up my filesystem, mountpoints and boot environments :-\

    i made a zfs send | receive of my local repository to the new zpool and removed ( by export) the other one (rpool2)
    After a reboot the beadmin is clean again and the zone installation succeeds with no errors


    root@ussol01:~# beadm list
    BE Active Mountpoint Space Policy Created

    solaris NR / 5.63G static 2012-04-03 16:36
    root@ussol01:~# beadm list -H
    solaris;361bd80b-945a-e78d-8697-b28c44a8b636;NR;/;6042415616;static;1333463780

    bg martin

    Edited by: user10100495 on Apr 5, 2012 1:16 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points