Krzys wrote:
> hello folks, I am running Solaris 10 U3 and I have small problem that I dont 
> know how to fix...
> 
> I had a pool of two drives:
> 
> bash-3.00# zpool status
>    pool: mypool
>   state: ONLINE
>   scrub: none requested
> config:
> 
>          NAME          STATE     READ WRITE CKSUM
>          mypool        ONLINE       0     0     0
>            emcpower0a  ONLINE       0     0     0
>            emcpower1a  ONLINE       0     0     0
> 
> errors: No known data errors
> 
> I added another drive
> 
> so now I have pool of 3 drives
> 
> bash-3.00# zpool status
>    pool: mypool
>   state: ONLINE
>   scrub: none requested
> config:
> 
>          NAME          STATE     READ WRITE CKSUM
>          mypool        ONLINE       0     0     0
>            emcpower0a  ONLINE       0     0     0
>            emcpower1a  ONLINE       0     0     0
>            emcpower2a  ONLINE       0     0     0
> 
> errors: No known data errors
> 
> 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
> 
> here is my partition on that disk:
> partition> print
> Current partition table (original):
> Total disk cylinders available: 63998 + 2 (reserved cylinders)
> 
> 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
> 
> partition>
> 
> what I would like to do is to remove my emcpower2a device, format it and then 
> add 125gig one instead of the 128meg. Is it possible to do this in Solaris 10 
> U3? If not what are my options?
> 
> Regards,
> 
> Chris
> 
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

One other (risker) option would be to export the pool and grow slice 0 
in emcpower2a so that it consumes the entire disk. Then reimport the 
pool and we should detect the new size and grow the pool accordingly. 
You want to make sure you don't change the starting cylinder so that we 
can still see the front half of the labels.

I've been able to successfully do this with EFI labels but have not 
tried this with VTOCs. If you do decide to go this route, a full backup 
is highly recommended.

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

Reply via email to