On Mon, 29 Oct 2007, Krzys wrote:
>
> everything is great but I've made a mistake and I would like to remove 
> emcpower2a from my pool and I cannot do that...
>
> Well the mistake that I made is that I did not format my device 
> correctly so instead of adding 125gig I added 128meg

You can't remove it directly, but you certainly can *replace* it with a 
larger drive.  If this is critical data, then obviously back up first, and 
test these steps on alternate storage.

>
> Part      Tag    Flag     Cylinders         Size            Blocks
>   0       root    wm       0 -    63      128.00MB    (64/0/0)       262144
>   1       swap    wu      64 -   127      128.00MB    (64/0/0)       262144
>   2     backup    wu       0 - 63997      125.00GB    (63998/0/0) 262135808
>   3 unassigned    wm       0                0         (0/0/0)             0
>   4 unassigned    wm       0                0         (0/0/0)             0
>   5 unassigned    wm       0                0         (0/0/0)             0
>   6        usr    wm     128 - 63997      124.75GB    (63870/0/0) 261611520
>   7 unassigned    wm       0                0         (0/0/0)             0

The easiest thing would be to replace s0 with s6.

You'll be 128mb shy of the full disk, but that's a drop in the bucket. 
The command would be:
        zpool replace mypool emcpower2a emcpowerXX
where XX is the name of slice 6.  You should see the new size right away.

Another option would be to use a different drive, formatted to give you 
the entire disk, and then do a replace of emcpower2a with emcpower3a. 
Then you could repartition 2 properly, and repalce 3 with 2.


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

Reply via email to