2009/10/15 Darren J Moffat <darr...@opensolaris.org>

> Julio wrote:
>
>> Thanks to all for the replies.
>>
>> I got a lot of stuff configured and running fine, so I am not willing to
>> reinstall for now :-).
>> I also thought in Partition Magic but it seems not to manage ZFS. So, I
>> think I will try to format the NTFS partition to ZFS and then add it to the
>> pool.
>>
>
> If this is your root pool you can't make anything other than a mirror.
>
> If the free space at the start of the disk before the existing ZFS fdisk
> partition is the same size or larger than the ZFS one you should able to get
> the following to work:
>

I'm newbie, but doesn't provided output from fdisk (see below) show that the
NTFS partition is smaller (26% vs 74%)? In the worst case... isn't there
another option? Something like - create new pool, "zfs send R...|zfs recv.."
old root pool to new pool then "installgrub" and "bootadm update-archive
-R". See the link below...

http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#ZFS_Root_Pool_Recovery


> 1. Add the current NFS partition as a mirror of the existing ZFS one:
>        eg      zpool attach rpool c0d0s0 c0d0p1
> 1.1 Add a boot block with installgrub to the old NTFS side of the mirror
> 1.2 For good measure run bootadm update-archive (shouldn't be needed but
> worth doing just to be sure)
>
> 2. Wait until 'zpool status' tells you that the resilver is complete.
>
> 3. Now detach the original ZFS fdisk partition leaving the one that
>   was the old NTFS partition
>        eg      zpool deatch rpool c0d0s0
>
> 4. Now boot from LiveCD and repartition (just fdisk alone should be enough)
> to delete the old ZFS partition and make the old NTFS one the size of the
> old NTFS one and the ZFS one together.  Making very sure it starts in
> exactly the same place the old NTFS one did.  Making sure it is tagged
> Solaris2 not NTFS.
>
> 5. Reboot the system and the ZFS pool should have expanded to the size of
> the original two partitions.
>
> If it hasn't run 'zpool autoexpand=on rpool'
>
> Note that this will only work if the original NTFS partition that is before
> the ZFS partition in the fdisk layout is at least the same size as the
> current ZFS fdisk partition for rpool.  If it is smaller then this won't
> work and shouldn't be attempted (though step 1 will fail).
>
> --
> Darren J Moffat
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to