[zfs-discuss] convert LVM to ZFS

Outback Dingo outbackdingo at gmail.com
Thu Jul 28 20:58:09 EDT 2011

On Thu, Jul 28, 2011 at 8:44 PM, Christ Schlacta <aarcane at aarcane.org>wrote:

> On 7/28/2011 15:38, Dingo wrote:
>> ive installed zfs on a Oneric 11.10 kubuntu desktop, it currently uses
>> lvm with 2 drives being 1 500GB drives and 1 750GB drive creating a
>> root / of 1.2T
>> df -h
>> /dev/mapper/G53SW-root 1.2T   74G 1007G   7% /
>> its currently under LVM / ext4.... how would i convert it to be ZFS
>> for the same result.... and could it be encrypted?
> You would have to shrink the LV to exist on only one of those drives, then
> remove the other drive from the VG.  the command you want to do this is
> vgreduce.  Once the drive is removed, you create a zpool on that drive, then
> you migrate your data (tar, cp, rsync, etc.) then you destroy your volume
> group and add the remaining device to the new zpool.  zpool only works on
> mirror, not on stripe, so you'll end up with a volume of 500GB with raid1
> reliability.

Darn i was going for size..... Guess i could create two pools, one for
OS/Applications/home the other for development stuff, though, even if i did
mirror, wouldnt i be wasting 250GB as the first disk is only 500Gb
and anyway to encrypt this such as you can with FreeBSD Geli..... ? Anything
comparable in linux ?

> to do the migration, you should follow the zfsroot install guides, but
> substitute debootstrap with rsync/cp/tar and everything else should just
> about work.  you don't need the livecd, you should be able to do the work
> from your existing OS (but using the livecd might make the process a bit
> easier if you're inexperienced with linux)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20110728/06c9fffe/attachment.html>

More information about the zfs-discuss mailing list