From: Richard C. <ri...@aa...> - 2012-07-24 13:51:12
|
Hi Jamie... I reported earlier I had several linux raid arrays - and had some hard disk failures. After installing new disks - I was able to recreate partitions and assemble raid arrays entirely through webmin. The arrays came up and synced and all was well with the world... until the next reboot... I had two systems with new hard drives - both of which came up with "non-redundant" raid arrays each boot. I was able to manually re-establish the raid arrays - but each boot I had to repeat the manual raid assembly. After a bit of research I found that there is a "flag" or "ID" associated with each partition variously called "Linux Raid autodetect" by fdisk or just "raid" by parted which must be set in order to allow the software raid to auto-detect the raid arrays at boot time. I found I had to issue the following shell commands: parted /dev/sdd set 1 raid on parted /dev/sdd set 2 raid on in order to correctly set the flags - particularly on my new "gpt" partition. As far as i can see - there is no way to do this through webmin - except of course through the shell command (which is what I did). This is a very minor issue - and it is not unreasonable to have to resort to a shell command once in a while - but in an ideal world - perhaps the webmin "partitions on local disks" module could allow us to set this flag. Maybe the "Linux raid" module might also warn us that it probably needs to be set when we assemble a raid array with partitions where it is not set... Thanks Jamie. Richard. . -- Richard Chapman |
From: Jamie C. <jca...@we...> - 2012-07-25 05:16:35
|
Thanks for pointing this out - this is a missing feature in Webmin, in that you cannot create a RAID partition on a GPT-format disk. I will fix this in the next release.. - Jamie On 24/Jul/2012 06:27 Richard Chapman <ri...@aa...> wrote .. > Hi Jamie... > > I reported earlier I had several linux raid arrays - and had some hard > disk failures. > > After installing new disks - I was able to recreate partitions and > assemble raid arrays entirely through webmin. The arrays came up and > synced and all was well with the world... until the next reboot... > > I had two systems with new hard drives - both of which came up with > "non-redundant" raid arrays each boot. I was able to manually > re-establish the raid arrays - but each boot I had to repeat the manual > raid assembly. > > After a bit of research I found that there is a "flag" or "ID" > associated with each partition variously called "Linux Raid autodetect" > by fdisk or just "raid" by parted which must be set in order to allow > the software raid to auto-detect the raid arrays at boot time. > > I found I had to issue the following shell commands: > > parted /dev/sdd set 1 raid on > parted /dev/sdd set 2 raid on > > in order to correctly set the flags - particularly on my new "gpt" > partition. As far as i can see - there is no way to do this through > webmin - except of course through the shell command (which is what I did). > > This is a very minor issue - and it is not unreasonable to have to > resort to a shell command once in a while - but in an ideal world - > perhaps the webmin "partitions on local disks" module could allow us to > set this flag. Maybe the "Linux raid" module might also warn us that it > probably needs to be set when we assemble a raid array with partitions > where it is not set... |