Solaris 10 - breaking of mirror and change new hard disk

Hi,

am a newbie at solaris. Need advice and help on this.

1) How do I break the mirror between 2 hard disks. (wish to keep 1 good hard disk as backup)

2) After remove 1 hard disk and put in new hard disk, how do I initialise or fomat the new hard disk?

3) How do I put back the backup hard disk and configure mirror again if needed?

Best regards
Solo

which tool do you use to build the mirror?

Assuming you use meta, use metastat -p or metastat -c to see the mirror/submirror information. Then use metadetach to break the mirrors. The format of the command goes like: metadetach mirror_name submirror_to_break

Make sure that you break all mirrors from the same harddisk!!!

Regarding the new hdd, is it going to be the same as an existing hdd? If it is, you can use a simple method to initialize the disk. Just run

prtvtoc /dev/rdsk/cXtXdXs2 | fmthard -s - /dev/rdsk/cYtYdYs2

X is the source disk and Y is the newly installed disk. You can then recreate the mirrors with metattach.

not too sure what tool they previously used.
Will have to check.
Thanks a lot for your help. Cheers
:slight_smile: