Hellow Guys, i found this how to, but can some one explain me what happens with data?
My Current status IS:
This disk report some smart problems so I buy next drive and i want make Mirror.
What do you think pleas? what happens with data on old drive?
Code:
Covert the stripe zpool to mirror zpool:
It can be done by just adding mirror to it.
1.List the stripe zpool.
root@Unixarena-SOL11:~# zpool status oracle-S
pool: oracle-S
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
oracle-S ONLINE 0 0 0
c8t1d0 ONLINE 0 0 0
errors: No known data errors
root@Unixarena-SOL11:~# zpool list oracle-S
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
oracle-S 1.98G 152K 1.98G 0% 1.00x ONLINE -
root@Unixarena-SOL11:~#
2.Convert the oracle-S pool layout to mirror using “zpool attach” command.
root@Unixarena-SOL11:~# zpool attach oracle-S c8t1d0 c8t2d0
root@Unixarena-SOL11:~# zpool status oracle-S
pool: oracle-S
state: ONLINE
scan: resilvered 86.5K in 0h0m with 0 errors on Wed Jul 24 13:16:46 2013
config:
NAME STATE READ WRITE CKSUM
oracle-S ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c8t1d0 ONLINE 0 0 0
c8t2d0 ONLINE 0 0 0
errors: No known data errors
root@Unixarena-SOL11:~# zpool list oracle-S
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
oracle-S 1.98G 126K 1.98G 0% 1.00x ONLINE -
root@Unixarena-SOL11:~#My Current status IS:
Code:
[root@nas] ~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
diska 1.81T 1.15T 679G 63% 1.00x ONLINE /mnt
[root@nas] ~# zpool status
pool: diska
state: ONLINE
scan: scrub repaired 0 in 10h1m with 0 errors on Mon Oct 27 07:54:17 2014
config:
NAME STATE READ WRITE CKSUM
diska ONLINE 0 0 0
gptid/d60029e5-5b9a-11e4-8ade-e0cb4ed3a327 ONLINE 0 0 0
errors: No known data errors
This disk report some smart problems so I buy next drive and i want make Mirror.
What do you think pleas? what happens with data on old drive?