Skip to content

Instantly share code, notes, and snippets.

@InAnimaTe
Created March 16, 2017 02:32
Show Gist options
  • Save InAnimaTe/fedda5555e63bc58df2b761eb82890f9 to your computer and use it in GitHub Desktop.
Save InAnimaTe/fedda5555e63bc58df2b761eb82890f9 to your computer and use it in GitHub Desktop.
zpool with single z3 vdev
root@test-zfs:~# fallocate -l 1G 1
root@test-zfs:~# fallocate -l 1G 2
root@test-zfs:~# fallocate -l 1G 3
root@test-zfs:~# fallocate -l 1G 4
root@test-zfs:~# l
1 2 3 4
root@test-zfs:~# ls -lah
total 4.1G
drwx------ 4 root root 4.0K Mar 16 02:16 .
drwxr-xr-x 23 root root 4.0K Mar 16 02:05 ..
-rw-r--r-- 1 root root 1.0G Mar 16 02:16 1
-rw-r--r-- 1 root root 1.0G Mar 16 02:16 2
-rw-r--r-- 1 root root 1.0G Mar 16 02:16 3
-rw-r--r-- 1 root root 1.0G Mar 16 02:16 4
root@test-zfs:~# zpool create test raidz3 ~/1 ~/2 ~/3 ~/4
root@test-zfs:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
test 55K 984M 19K /test
root@test-zfs:~# zpool status
pool: test
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
test ONLINE 0 0 0
raidz3-0 ONLINE 0 0 0
/root/1 ONLINE 0 0 0
/root/2 ONLINE 0 0 0
/root/3 ONLINE 0 0 0
/root/4 ONLINE 0 0 0
errors: No known data errors
root@test-zfs:~# zpool list test
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
test 3.97G 256K 3.97G - 0% 0% 1.00x ONLINE -
root@test-zfs:~# zpool history -i test
History for 'test':
2017-03-16.02:18:59 [txg:5] create pool version 5000; software version 5000/5; uts test-zfs 4.8.0-41-generic #44-Ubuntu SMP Fri Mar 3 15:27:17 UTC 2017 x86_64
2017-03-16.02:18:59 zpool create test raidz3 /root/1 /root/2 /root/3 /root/4
root@test-zfs:~# zpool get all test
NAME PROPERTY VALUE SOURCE
test size 3.97G -
test capacity 0% -
test altroot - default
test health ONLINE -
test guid 13866027544141343344 default
test version - default
test bootfs - default
test delegation on default
test autoreplace off default
test cachefile - default
test failmode wait default
test listsnapshots off default
test autoexpand off default
test dedupditto 0 default
test dedupratio 1.00x -
test free 3.97G -
test allocated 256K -
test readonly off -
test ashift 0 default
test comment - default
test expandsize - -
test freeing 0 default
test fragmentation 0% -
test leaked 0 default
test feature@async_destroy enabled local
test feature@empty_bpobj enabled local
test feature@lz4_compress active local
test feature@spacemap_histogram active local
test feature@enabled_txg active local
test feature@hole_birth active local
test feature@extensible_dataset enabled local
test feature@embedded_data active local
test feature@bookmarks enabled local
test feature@filesystem_limits enabled local
test feature@large_blocks enabled local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment