I've been receiving pm's for some more zfs commands from people who have read my previous posts regarding zfs, namely Solaris ZFS CBT Notes, ACLs for serving websites from a ZFS filesystem (Sol) and Deleting ZFS slices from a disk.
So here's some more commands:
# Some reminders on command syntax
root@server:# zpool create stuff c0d0s0
root@server:# zpool create stuff mirror c0d0s3 c1d0s0
root@server:# zfs create stuff/www
root@server:# zfs set mountpoint=/var/www stuff/www
root@server:# zfs create stuff/home
root@server:# zfs set mountpoint=/export/home stuff/home
root@server:# zfs create stuff/home/peter
root@server:# zfs create stuff/home/paul
root@server:# zfs create stuff/home/mary
root@server:# zfs set compression=on stuff/home
root@server:# zfs set quota=5g stuff/home/paul
root@server:# zfs set reservation=10g stuff/home/mary
root@server:# zfs set sharenfs=rw stuff/home
root@server:# zpool scrub stuff
root@server:# zpool add stuff mirror c3d0s4 c4d1s2
# to set the filesystem block size to 8k
root@server:# zfs set recordsize=8k stuff/home
Monday, May 18, 2009
ZFS again
Labels:
UNIX
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment