Does anyone know why my zpool iostat looks like this? http://pastebin.com/gpApGknB
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
capacity operations bandwidth
pool alloc free read write read write
---------- ----- ----- ----- ----- ----- -----
tank 88.0G 19.9T 0 1.20K 987 27.5M
raidz1 62.5G 14.4T 0 1.08K 61 17.0M
sda - - 0 110 643 6.42M
sdb - - 0 103 443 6.42M
sdd - - 0 78 445 6.42M
sde - - 0 80 466 6.42M
sdc 8.68G 2.71T 0 60 463 3.56M
sdf 16.8G 2.70T 0 64 462 6.90M
---------- ----- ----- ----- ----- ----- -----
[~]$ sudo zpool history -- INSERT --
History for 'tank':
2013-09-01.15:23:48 zpool create tank raidz /dev/sda /dev/sdb /dev/sdd /dev/sde
2013-09-01.15:23:53 zfs set compression=lzjb tank
2013-09-01.15:23:57 zfs set checksum=off tank
2013-09-01.15:24:02 zfs set atime=off tank
2013-09-01.15:24:05 zfs set primarycache=metadata tank
2013-09-01.15:24:10 zfs set recordsize=16k tank
2013-09-01.15:47:56 zfs set compression=off tank
2013-09-01.15:48:16 zfs set compression=lzjb tank
2013-09-01.16:36:14 zpool add -f tank /dev/sdc /dev/sdf
here is the history
Code:[~]$ sudo zpool history -- INSERT -- History for 'tank': 2013-09-01.15:23:48 zpool create tank raidz /dev/sda /dev/sdb /dev/sdd /dev/sde 2013-09-01.15:23:53 zfs set compression=lzjb tank 2013-09-01.15:23:57 zfs set checksum=off tank 2013-09-01.15:24:02 zfs set atime=off tank 2013-09-01.15:24:05 zfs set primarycache=metadata tank 2013-09-01.15:24:10 zfs set recordsize=16k tank 2013-09-01.15:47:56 zfs set compression=off tank 2013-09-01.15:48:16 zfs set compression=lzjb tank 2013-09-01.16:36:14 zpool add -f tank /dev/sdc /dev/sdf
thanks for the help guys its really appreciated
ok so my 4tb drives are sda,sdb,sdd,sde
and my 3tb drives are sdc,sdf
so i have to destroy the tank and make it with the 4tb drives first like this
zpool create tank raidz /dev/sda /dev/sdb /dev/sdd /dev/sde
then add the 3tb drives on another vdev like this
zpool add tank raidz /dev/sdc /dev/sdf
correct?
will it still be one big pool? i dont want to have 2 separate pools
so i need to get a 3rd drive for the 2nd vdev to make this work? i have a extra 4tb drive that i was going to add as a spare... should i add it in with the 3tb drives or not because of the size difference?
[/tank]$ sudo zpool iostat -v -- INSERT --
capacity operations bandwidth
pool alloc free read write read write
---------- ----- ----- ----- ----- ----- -----
tank 1.70M 19.9T 0 11 911 14.2K
raidz1 1.28M 14.5T 0 7 590 8.73K
sda - - 0 3 9.08K 15.9K
sdb - - 0 3 6.86K 15.9K
sdd - - 0 3 6.50K 15.6K
sde - - 0 3 6.81K 15.6K
raidz1 424K 5.44T 0 4 321 5.46K
sdc - - 0 3 6.83K 20.0K
sdf - - 0 3 7.00K 20.0K
---------- ----- ----- ----- ----- ----- -----
[/tank]$ sudo zpool status -- INSERT --
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
sda ONLINE 0 0 0
sdb ONLINE 0 0 0
sdd ONLINE 0 0 0
sde ONLINE 0 0 0
raidz1-1 ONLINE 0 0 0
sdc ONLINE 0 0 0
sdf ONLINE 0 0 0
errors: No known data errors
[/tank]$ sudo zpool list -- INSERT --
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
tank 19.9T 1.70M 19.9T 0% 1.00x ONLINE -
[/tank]$ df -h -- INSERT --
Filesystem Size Used Avail Use% Mounted on
/dev/sdg1 286G 14G 258G 5% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 787M 1.2M 786M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 80K 3.9G 1% /run/shm
none 100M 12K 100M 1% /run/user
tank 14T 176K 14T 1% /tank
[/tank]$ sudo zpool history -- INSERT --
History for 'tank':
2013-09-01.20:43:22 zpool create tank raidz /dev/sda /dev/sdb /dev/sdd /dev/sde
2013-09-01.20:45:16 zpool add tank raidz -f /dev/sdc /dev/sdf
2013-09-01.20:46:11 zfs set compression=lzjb tank
2013-09-01.20:46:20 zfs set checksum=off tank
2013-09-01.20:46:30 zfs set atime=off tank
2013-09-01.20:46:38 zfs set primarycache=metadata tank
2013-09-01.20:46:45 zfs set recordsize=16k tank
ok so i just created the pool again and added the 2 3tb drives correctly and now i dont have access to all my space....
Code:[/tank]$ sudo zpool iostat -v -- INSERT -- capacity operations bandwidth pool alloc free read write read write ---------- ----- ----- ----- ----- ----- ----- tank 1.70M 19.9T 0 11 911 14.2K raidz1 1.28M 14.5T 0 7 590 8.73K sda - - 0 3 9.08K 15.9K sdb - - 0 3 6.86K 15.9K sdd - - 0 3 6.50K 15.6K sde - - 0 3 6.81K 15.6K raidz1 424K 5.44T 0 4 321 5.46K sdc - - 0 3 6.83K 20.0K sdf - - 0 3 7.00K 20.0K ---------- ----- ----- ----- ----- ----- ----- [/tank]$ sudo zpool status -- INSERT -- pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sda ONLINE 0 0 0 sdb ONLINE 0 0 0 sdd ONLINE 0 0 0 sde ONLINE 0 0 0 raidz1-1 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors [/tank]$ sudo zpool list -- INSERT -- NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT tank 19.9T 1.70M 19.9T 0% 1.00x ONLINE - [/tank]$ df -h -- INSERT -- Filesystem Size Used Avail Use% Mounted on /dev/sdg1 286G 14G 258G 5% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 3.9G 4.0K 3.9G 1% /dev tmpfs 787M 1.2M 786M 1% /run none 5.0M 0 5.0M 0% /run/lock none 3.9G 80K 3.9G 1% /run/shm none 100M 12K 100M 1% /run/user tank 14T 176K 14T 1% /tank [/tank]$ sudo zpool history -- INSERT -- History for 'tank': 2013-09-01.20:43:22 zpool create tank raidz /dev/sda /dev/sdb /dev/sdd /dev/sde 2013-09-01.20:45:16 zpool add tank raidz -f /dev/sdc /dev/sdf 2013-09-01.20:46:11 zfs set compression=lzjb tank 2013-09-01.20:46:20 zfs set checksum=off tank 2013-09-01.20:46:30 zfs set atime=off tank 2013-09-01.20:46:38 zfs set primarycache=metadata tank 2013-09-01.20:46:45 zfs set recordsize=16k tank
root@quantum:~# zpool list storage
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
storage 30T 17.6T 12.4T 58% 1.00x ONLINE -
root@quantum:~# zfs list storage
NAME USED AVAIL REFER MOUNTPOINT
storage 11.7T 7.98T 725K none
Ideal performance is not important for a home server. I know lot of people (me included) that use non ideal configurations without any problems.Remember that for ideal performance you want your data disks (N) to be in powers of two, so N+1 for raidz, N+2 for raidz-2 and N+3 for raidz-3
Consider as well a 6x4TB raidz-2, that would equate to four data disks and two parity with a raw total of 16TB storage before formatting, overhead, and marketing losses. Add a seventh 4TB disk to that as a hostpare and you have your seven disk capacity, nice and neat, and requires no intervention from you if a disk should fail.