
Still playing with ZFS pool under Nexenta
Before putting my monster NAS online (pictures will follow soon), I am playing a lot with NEXENTA under VMWARE player.
I’ve found that excellent PDF (THE LAST WORD IN FILE SYSTEMS) which explain why ZFS may be the Saint Graal of file system, while if you want to learn how to administrate pool, I recommend YouThe ZFS admin guide
Here is my first try, with 7 simulated disks (this example use files and not real devices even if I have 7 real disks sitting next to me ;-)), next steps will be to export the pool as NFS share, plug some disks out, activate encryption, crontab snapshots and remote ssh backup of some vital data.
# mkdir /vault | create a directory for storing all virtual disks |
# mkfile 64m /vault/disk1 # mkfile 64m /vault/disk2 # mkfile 64m /vault/disk3 # mkfile 64m /vault/disk4 # mkfile 64m /vault/disk5 # mkfile 64m /vault/disk6 # mkfile 64m /vault/disk7 | I create 7 virtual disk name disk1 to disk7 |
# zpool status no pools available | check if there is any pool already defined…. |
# zpool create nasvault raidz /vault/disk1 /vault/disk2 /vault/disk3 /vault/disk4 /vault/disk5 /vault/disk6 | 6 disks will be in a raidz pool |
# zpool status pool: nasvault state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM | RAIDZ: A replicated RAID-Z configuration can now have |
#df -h /nasvault Filesystem size used avail capacity Mounted on nasvault 384M 16K 384M 1% /nasvault | checking size of the pool |
#zpool add nasvault raidz /vault/disk5 /vault/disk6 | Extending pool on the fly with 2 new disks |
Some noise about the development of a mini opensolaris boot file (miniroot.gz) under 60 Mb and able to boot on a USB disk have pop up on OpenSolaris forums. Exactly at the right scheedule for my NAS project, if it can come out in less than 2 weeks, it would be perfect!