Zfs: Difference between revisions

From Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 26: Line 26:
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 ==
NOTE: These steps do not seem to be necessary to create a basic pool and mount it.
<pre>
<pre>
zfs create mypool/myfs  (creates and automatically mounts)
zfs create mypool/myfs  (creates and automatically mounts)
zfs list
zfs list
zfs get all mypool/myfs (show filesystem properties)
</pre>
== Regular Maintenance ==
<pre>
zpool scrub mypool
zpool status mypool
zpool scrub -s mypool (to stop scrub)
</pre>
</pre>

Latest revision as of 18:51, 5 December 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 list
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

NOTE: These steps do not seem to be necessary to create a basic pool and mount it.

zfs create mypool/myfs  (creates and automatically mounts)
zfs list
zfs get all mypool/myfs (show filesystem properties)

Regular Maintenance

zpool scrub mypool
zpool status mypool
zpool scrub -s mypool (to stop scrub)