> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
> boun...@opensolaris.org] On Behalf Of Erik Trimble
>
> Step 1:    Break the mirror of A & B inside Windows 7
> Step 2:    Purchase the new C hard drive, and install it in the case.
> Step 3:    Boot to OpenSolaris
> Step 4:    Make sure you've gone out and installed the NTFS driver   (
> http://sun.drydog.com/faq/9.html  )
> Step 5:    mount drive A:        mount -F ntfs /dev/dsk/c0t0d0p0 /mnt
> Step 6:    create a "dummy" drive as a sparse file:        mkfile -n
> 1500G /foo
> Step 7:    create the new RaidZ array, using the dummy drive:
> zpool create tank raidz c0t1d0 c0t2d0 /foo
> Step 8:    remove the dummy drive:    zpool offline tank /foo
> Step 9:    copy all the data from the NTFS drive to the new drive:
>      cd /mnt;  cp -rp . /tank
> Step 10:    kill the NTFS partition info:   run "format" and delete
> everything
> Step 11:    add the erased NTFS drive to the new raidZ:        zpool
> replace -f tank /foo c0t0d0
> Step 12:    delete the dummy file:    rm /foo

Very clever!  I was just about to say "you can't do it; you need 3 devices"
but by faking out the raidz with a sparse file, degrading the filesystem,
and resilvering ... I just tested that on my system and it worked.  Nice
job.

The only thing I would add here is:  Instead of mkfile -n 1500G, I would
suggest making sure your sparse file is larger than your actual disk drives.
Since you said your disk drives are 1.5T, I'd make the sparse file something
like 1700G just to be sure the size of your raidz volume is only limited by
the size of your disk drives, and not accidentally limited by the size of
your sparse file.

Although, I'm not 100% sure that would matter anyway.

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to