Hi John,

directly you are not allowed to do what you want to:

Virtual devices cannot be nested, so a mirror or raidz virtual device 
can only contain files or disks. Mirrors of mirrors (or other 
combinations) are not allowed. (from zpool manpage)

 > bigger ones. The drives are: 1x750, 2x500, 2x400, 2x320, 2x250. Is it
 > possible to accomplish the following with those drives:

But, there is a "plain" zfs solution if needed ;-)

750     drive1
500     drive2,drive3
400     drive4,drive5
320     drive6,drive7
250     drive8,drive9

Just another way would be to create a set of mirrors and inside them 
volumes:

bash-3.00# zpool create p1 /scratch/drive2 /scratch/drive8
bash-3.00# zpool create p2 /scratch/drive3 /scratch/drive9
bash-3.00# zpool create p3 /scratch/drive4 /scratch/drive6
bash-3.00# zpool create p4 /scratch/drive5 /scratch/drive7
bash-3.00# zpool create p5 /scratch/drive2

Now create one volume inside each:

bash-3.00# zfs create -V 703m p1/vol
bash-3.00# zfs create -V 703m p2/vol
bash-3.00# zfs create -V 675m p3/vol
bash-3.00# zfs create -V 675m p4/vol
bash-3.00# zfs create -V 711m p5/vol

Put those into a single raidz:

back-3.00# zpool create -f z1 raidz /dev/zvol/dsk/p1/vol 
/dev/zvol/dsk/p2/vol  /dev/zvol/dsk/p3/vol /dev/zvol/dsk/p4/vol 
/dev/zvol/dsk/p5/vol

But be warned - I gave this a try on some created files with your sizes 
in MB instead of GB, anything expect building the raidz was quite fast - 
the last step is terribly slow. I'm wondering how it will perform when 
it's finished.

Cheers,
Jan

Reply via email to