Possible to Shrink and Partition Old ZFS drive

Moderators: jhartley, MSR734, nola

Possible to Shrink and Partition Old ZFS drive

Post by wassupdoc » Mon Nov 04, 2013 10:31 pm

I have been playing around with ZFS(zevo CE) on a USB drive(I know its not recommended for USB) but this was non-critical data and I wanted to see how zfs worked. Anyway I do have my music collection stored on the ZFS drive taking up approx. 1gb out of the total 3 gb drive. I was wondering if there was a way to shrink the zfs down to just 1 gb, repartition the rest of the drive to HFS+? I need to convert my computer to Mavericks and want to move all the files over to the new partition and then delete the ZFS partition eventually. I know I can do this with another hard drive, but I was hoping not to have to go buy an extra hard drive just to move files over. thanks!
wassupdoc Offline


 
Posts: 1
Joined: Wed Oct 24, 2012 4:39 am

Re: Possible to Shrink and Partition Old ZFS drive

Post by ilovezfs » Mon Nov 04, 2013 11:35 pm

I assume you mean 1TB and 3TB, not 1GB and 3GB.

It is impossible to shrink a given vdev without starting from scratch. However, with sparse files (non OS X) or OS X's sparseimages or sparsebundles, you could convert your vdev to a mirror vdev, and have a sparse second half of the mirror, only taking up 1TB instead of 3TB. However, that would still require 1TB of free space somewhere else, in which case you could have copied the data off of the pool anyway, without bothering with ZFS stuff like mirrors.

Another choice would be to "zfs send" the datasets to a ZFS send-receive stream, received into a file, or a new dataset. But that too would require 1TB of free space on another drive to complete the transition.
ilovezfs Online


 
Posts: 249
Joined: Sun Feb 10, 2013 9:02 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 0 guests

cron