Other gmirror rename

Need to replace disks, how can one rename the current gmirror to a new name without destroying the data on the disks.

Tried (on test mirror), as found in the freebsd.list archives,
gmirror stop Data
gmirror label DataOld da2s2 da3s2

I get an error, unable to write to last sector. (or something like that, don't have access to it at the moment)

Thank you
 
For the next searching soul ...

It appears it's safe to:
gmirror remove <name> <provider>
gmirror label <name> <provider>
Don't blame me if it teaches your computer to smoke!
Follow the rules, backup first!

BTW: IMO this forum software is horrendous and a resource hog.

Thanks for no help!
 
I've found, assuming the mirror is named gm0, that
Code:
gmirror forget gm0
gmirror insert gm0 ada1
Assuming that you're inserting disk ada1.

I should point out though, that these days, I use ZFS, so that is going by old notes that I haven't tried in a few years.
 
scottro,

[edit] Now that I'm looking with eyes that can see, your commands,
Code:
gmirror forget gm0
gmirror insert gm0 ada1
are to replace a failed drive ... That is not what I asked!
I want to rename the mirror. i.e: gm0 to gm1.

I'm adding two new drives in a new gmirror, then I'll rename, thus everything remains working that expects the specific mirror name, it's currently degraded, just trying to get back to a safer state as quickly as possible.
It is just a 4GB 32bit 8.2 system that boots from usb ... It is a very heavily modified code base, so upgrading is a ton of time consuming work, it serves it's purpose.
On top of all that I'm 70 with bad health issues, who is going to live longer, it or I, especially with this darn China Virus floating about!

-Enjoy
: )_~
 
Back
Top