Re: can metadata type be changed for an active array?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> clearly best i read up more, and -- for now -- get it right the 1st
> time @ create.

well, for RAID-1 types, there is a (dirty) trick
to change this kind of information.

Mount the partition read-only, if it is not
possible (system), you'll have to use a live CD.
Fail and remove one of the components of the RAID-1.
Zero the superblock of the removed component and
re-create a RAID-1, using a "missing" device,
setting the proper features, with this component.
Create a filesystem on the new RAID-1 volume.
Mount it read-write and copy the files from the old
to the new.
Stop the old RAID-1 volume, zero the superblock, add
the, now clean, component to the newly created array.

Now, this could be risky, of course, since during
the process there is no mirror.
Also, if you make a mistake and do not realize in
time, there is the possibility to end up with no
data in both RAIDs.

This means that, clearly, if you try this trick,
you'll do at your own risk...

bye,

-- 

piergiorgio
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux