Zfs: Difference between revisions

From Wiki
Jump to navigation Jump to search
Line 16: Line 16:
<pre>
<pre>
zpool create mypool raidz1 sde sdf sdg
zpool create mypool raidz1 sde sdf sdg
zpool create
zpool status mypool
zpool status mypool
zpool destroy mypool (to get rid of it)
zpool destroy mypool (to get rid of it)
Line 26: Line 25:
sudo zpool create -o ashift=12 tank mirror sda sdb
sudo zpool create -o ashift=12 tank mirror sda sdb
</pre>
</pre>


== File systems ==
== File systems ==

Revision as of 22:14, 7 March 2014

http://zfsonlinux.org/faq.html

https://pthree.org/2012/04/17/install-zfs-on-debian-gnulinux/


Install

add-apt-repository ppa:zfs-native/stable
apt-get update
apt-get install ubuntu-zfs


Pools

zpool create mypool raidz1 sde sdf sdg
zpool status mypool
zpool destroy mypool (to get rid of it)

http://zfsonlinux.org/faq.html#HowDoesZFSonLinuxHandlesAdvacedFormatDrives Add the ashift=12 option for modern drives with 4K sector size:

sudo zpool create -o ashift=12 tank mirror sda sdb

File systems

zfs create mypool/myfs  (creates and automatically mounts)
zfs list