[zfs-discuss] First zone creation - getting ZFS error

2011-12-06 Thread Mark Creamer
I'm running OI 151a. I'm trying to create a zone for the first time, and am
getting an error about zfs. I'm logged in as me, then su - to root before
running these commands.

I have a pool called datastore, mounted at /datastore

Per the wiki document http://wiki.openindiana.org/oi/Building+in+zones, I
first created the zfs file system (note that the command syntax in the
document appears to be wrong, so I did the options I wanted separately):

zfs create datastore/zones
zfs set compression=on datastore/zones
zfs set mountpoint=/zones datastore/zones

zfs list shows:

NAME USED  AVAIL  REFER  MOUNTPOINT
datastore   28.5M  7.13T  57.9K  /datastore
datastore/dbdata28.1M  7.13T  28.1M  /datastore/dbdata
datastore/zones 55.9K  7.13T  55.9K  /zones
rpool   27.6G   201G45K  /rpool
rpool/ROOT  2.89G   201G31K  legacy
rpool/ROOT/openindiana  2.89G   201G  2.86G  /
rpool/dump  12.0G   201G  12.0G  -
rpool/export5.53M   201G32K  /export
rpool/export/home   5.50M   201G32K  /export/home
rpool/export/home/mcreamer  5.47M   201G  5.47M  /export/home/mcreamer
rpool/swap  12.8G   213G   137M  -

Then I went about creating the zone:

zonecfg -z zonemaster
create
set autoboot=true
set zonepath=/zones/zonemaster
set ip-type=exclusive
add net
set physical=vnic0
end
exit

That all goes fine, then...

zoneadm -z zonemaster install

which returns...

ERROR: the zonepath must be a ZFS dataset.
The parent directory of the zonepath must be a ZFS dataset so that the
zonepath ZFS dataset can be created properly.

Since the zfs dataset datastore/zones is created, I don't understand what
the error is trying to get me to do. Do I have to do:

zfs create datastore/zones/zonemaster

before I can create a zone in that path? That's not in the documentation,
so I didn't want to do anything until someone can point out my error for
me. Thanks for your help!

-- 
Mark
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] ZFS and Virtual Disks

2011-02-14 Thread Mark Creamer
Hi I wanted to get some expert advice on this. I have an ordinary hardware
SAN from Promise Tech that presents the LUNs via iSCSI. I would like to use
that if possible with my VMware environment where I run several Solaris /
OpenSolaris virtual machines. My question is regarding the virtual disks.

1. Should I create individual iSCSI LUNs and present those to the VMware
ESXi host as iSCSI storage, and then create virtual disks from there on each
Solaris VM?

 - or -

2. Should I (assuming this is possible), let the Solaris VM mount the iSCSI
LUNs directly (that is, NOT show them as VMware storage but let the VM
connect to the iSCSI across the network.) ?

Part of the issue is I have no idea if having a hardware RAID 5 or 6 disk
set will create a problem if I then create a bunch of virtual disks and then
use ZFS to create RAIDZ for the VM to use. Seems like that might be asking
for trouble.

This environment is completely available to mess with (no data at risk), so
I'm willing to try any option you guys would recommend.

Thanks!

-- 
Mark
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss