Re: split RAID1 during backups?

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

 



Jeff Breidenbach schrieb:
Ok... thanks everyone!

Something from me:

What you should be able to do with software raid1 is the following:
Stop the raid, mount both underlying devices instead of the raid device, but of course READ ONLY. Both contain the complete data and filesystem, and in addition to that the md superblock at the end. Both should be identical copies of that. Thus, you do not have to resync afterwards. You then can backup the one disk while serving the web server from the other. When you are done, unmount, assemble the raid, mount it and go on.

Eg. /dev/md1 consists of /dev/hda5 and /dev/hdc5 and has a working fs on it.

/dev/md1 is mounted on /data.

umount /dev/md1
mdadm -S /dev/md1

mount -r /dev/hda5 /data
mount -r /dev/hdc5 /backup

do your backup

umount /dev/hda5
umount /dev/hdc5

mdadm -A /dev/md1

mount /dev/md1 /data


Please could somebody double-check or confirm this first?

Hope this helps, Norman.

--
Norman Schmidt          Institut fuer Physikal. u. Theoret. Chemie
Dipl.-Chem. Univ.       Friedrich-Alexander-Universitaet
schmidt@xxxxxxx         Erlangen-Nuernberg
+49 9131 852 7321       IT-Systembetreuer Physikalische Chemie
-
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