zfs setup question

2

2

Currently I have a linux storage box and server with 4x750gb harddrives in raid-5 with ext3. I have ordered 3x1.5tb disks to upgrade this. Here is my planned upgrade:

Backup:

  1. Format the 1.5 tb disks
  2. Copy all data from the raid-5 disks to the 1.5tb disks
  3. Destroy the raid-5 array.

New setup:

  1. Create a VirtualBox system and install Nexenta (OpenSolaris + ubuntu) on it.
  2. Create a zfs pool with zraid1 with the 4 750gb disks.
  3. Copy from 1.5tb disks to the virtualbox zfs pool
  4. Format the 1.5tb disks.
  5. Replace 3 off the 750gb disks with 1.5tb disks.
  6. Reuse the 750gb disks elsewhere.

The reason I wish to use one 750gb disk is since I can't grow the disk count in a raidz array, and this gives me the option off replacing that disk later for an extra 750gb storage.

Would the ZFS performance be good running through virtualbox? Or will the performance overhead be too large? Will I get 1.5tb+1.5tb+750gb storage on the zraid? Or just 750gbx3 until all disks are 1.5tb?

Staale

Posted 2009-10-15T12:26:30.557

Reputation: 133

Answers

0

This seems like a very inconvenient way to do it.

  • Use ZFS on FUSE rather than running it through a virtual machine, the performance will not be good in any case, but I'd definately try not to have the file system inside a virtual machine
  • AFAIK you can actually increase the number of disks in a running raid using zfs
  • Using three 1.5TB disks and one 750GB disk in an array would limit the usable sizes of all disks to the smallest one. There is some research being done on having raid over different disk sizes, but it's not usable now

I would rather create a new raid array of the 1.5TB disks (either md raid or raidz via fuse) in linux, and expand it with single disks as the need arises.

Nils-Anders Nøttseter

Posted 2009-10-15T12:26:30.557

Reputation: 124

This answer shows a fundamental lack of understanding of ZFS and how ZFS-raid works. There currently is NO mechanism for adding single drives to a ZFS pool, except as additional vdevs, creating a stripe between the original raidz and the new single drive. This WOULD NOT increase the drive-count/size of the raidz! – killermist – 2013-06-25T11:05:47.217

1

You can't grow the disc count of a vdev. That is correct. Also, if you have 3x1.5Tb and one 750Gb drive the extra per-drive capacity will be idle, for a total pool size of ~2.25Tb. Your pool capacity will be limited by the smallest drive. Once you replace that last drive, you can expand the pool to take advantage of the increased total capacity, for a total pool size of ~4.5Tb.

I have run ZFS in a virtual machine as well (Solaris & OpenSolaris) but the performance is not good. File IO is often a limiting agent in virtual machines.

Consider that ZFS is very memory hungry. Some features are disabled by default with less than 4Gb ram. ZFS is also optimized for 64-bit systems.

I suggest you install your ZFS-capable OS on actual hardware, and use Virtualbox (or similar) to virtualize your Linux configuration if needed.

Console

Posted 2009-10-15T12:26:30.557

Reputation: 2 552