📄 raidreconf.8
字号:
.\" -*- nroff -*-.TH raidreconf 8.SH NAMEraidreconf \- reconfigure RAID arrays.SH SYNOPSIS\fBraidreconf\fR -h {--help}- or -\fBraidreconf\fR -V {--version}- or -\fBraidreconf\fR -o oldraidtab -n newraidtab -m /dev/md?- or -\fBraidreconf\fR -i /dev/sd?? -n newraidtab -m /dev/md?- or -\fBraidreconf\fR -n newraidtab -m /dev/md? -e /dev/sd??.SH WARNING\fBYou should back up all data BEFORE any attempt is made to reconfigurea RAID device. YOU HAVE BEEN WARNED.\fRThe author will give you no guarantee whatsoever, that this programworks in any specific way at all. It may well destroy all data on anydevice connected directly, indirectly, or not at all, to any systemthis software is used on. Please use this stuff with care, if youdecide to use it at all.Ok, that said, let's see how to actually use it :-).SH DESCRIPTION\fBraidreconf\fR will read two raidtab files, an old one, and anew one. It will then re-build your old array to match theconfiguration for the new array, while retaining all data possible.It can also be used to import a single block-device into a RAID array(using more block devices), or export a RAID array to a single block-device.\fBraidreconf\fR can, of course, only retain your original data if you\fIgrow\fR the configuration. If you \fIshrink\fR the configurationfrom say, \fBP\fR bytes to \fBQ\fR bytes, \fBraidreconf\fR will retainthe first \fBQ\fR bytes of your original data, but everything from\fBQ\fR bytes to the end of the old array (to \fBP\fR bytes) will belost.Currently \fBraidreconf\fR can \fIgrow\fR and \fIshrink\fR RAID-0 and RAID-5 arrays, and import non-RAID devices into a new RAID-0 or RAID-5.The whole purpose of \fBraidreconf\fR is to be able to add disks to anexisting array, or convert it to a new type (eg. RAID-0 to RAID-5)\fIwithout\fR losing data. \fBraidreconf\fR will move the existingdata around on your array, to match the layout of the new array..SH OPTIONS.IP "\fB\-h {--help}\fP"Raidreconf will print a short help message, and exit..IP "\fB\-V {--verbose}\fP"Raidreconf will print it's version information, and exit..IP "\fB\-o {--old} oldraidtab\fP"Specifies the path name of the old (current) raidtab. NOTE:\fBraidreconf\fR performs some tests to ensure that this configuration file matches the raid superblocks stored on the disk, but there may be scenarios where the two are in conflict, but aren't detected as such. Be very careful to specify this file properly..IP "\fB-n {--new} newraidtab\fP"Specifies the path name of the new raidtab. After \fBraidreconf\fRfinishes, copy the newraidtab to the oldraidtab location, as raidreconfdoesn't perform this (potentially dangerous) operation..IP "\fB-m {--mddev} /dev/md?\fP"Specifies the name of the raid array to modify..IP "\fB-i {--import} /dev/sd??\fP"Specifies the name of the device to import from..IP "\fB-e {--export} /dev/sd??\fP"Specifies the name of the device to export to..SH BUGSPerhaps many. Well, the basic RAID-0 growth, shrink and importalgorithms seem to work, but there are lots and lots of consistencychecks and graceful error handling missing.The RAID-5 algorithms are simplistic, with little optimization other thanthat provided by the buffer layer. Conversions between non-RAID, RAID-0,and RAID-5 all *seem* to work, but there may be some bugs left yet.If an error occurs during reconfiguration, a power failure for example,restore from backup (you DID make a backup, right?), and try again.Although RAID-4 is not supported, and almost no one uses it, it would be almost trivial to add..SH REPORTING BUGSSince this is highly experimental software, there are a number of knownbugs already. The author would of course like to know about bugs, butat this stage in development you shouldn't waste too much of your timetrying to hunt them down. They're probably known, and maybe alreadyfixed in the author's tree.Report bugs to <bugs@oss.connex.com>. ?????.SH AUTHOR\fBraidreconf\fR was written in 1999 by Jakob Oestergaard<jakob@ostenfeld.dk>The RAID-5 routines were written by Daniel S. Cox in 2001 <dcox@connex.com>.SH SEE ALSO.IR mkraid (8),.IR raidtab (5),.IR raidstart (8),.IR raidhotadd (8),.IR raidhotremove (8),.IR raidstop (8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -