R.Bucky
August 12th, 2009, 05:47 PM
I have a RAID1 array with a hot spare. My partitions are configured with 15GB for the '/' directory, a swap, and 230 GB for my webserver files. I checked my array and realized that I only added the '/' partition to the array. How would I add my webserver files partition to the array? Would I need to create another directory of /dev/md1 for the webserver files and then use this command?
mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2 /dev/sdc2
I assume that I would include the hot spare in the --assemble command. Here is my current config.
/dev/md0:
Version : 00.90.03
Creation Time : Thu May 28 20:40:36 2009
Raid Level : raid1
Array Size : 14651200 (13.97 GiB 15.00 GB)
Used Dev Size : 14651200 (13.97 GiB 15.00 GB)
Raid Devices : 2
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 12 14:08:37 2009
State : clean
Active Devices : 2
Working Devices : 4
Failed Devices : 0
Spare Devices : 2
UUID : b5a7d2ec:b3fbedb9:0e71e86d:fe45bc84
Events : 0.20
Number Major Minor RaidDevice State
0 8 18 0 active sync /dev/sdb2
1 8 19 1 active sync /dev/sdb3
2 8 33 - spare /dev/sdc1
3 8 34 - spare /dev/sdc2
mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2 /dev/sdc2
I assume that I would include the hot spare in the --assemble command. Here is my current config.
/dev/md0:
Version : 00.90.03
Creation Time : Thu May 28 20:40:36 2009
Raid Level : raid1
Array Size : 14651200 (13.97 GiB 15.00 GB)
Used Dev Size : 14651200 (13.97 GiB 15.00 GB)
Raid Devices : 2
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 12 14:08:37 2009
State : clean
Active Devices : 2
Working Devices : 4
Failed Devices : 0
Spare Devices : 2
UUID : b5a7d2ec:b3fbedb9:0e71e86d:fe45bc84
Events : 0.20
Number Major Minor RaidDevice State
0 8 18 0 active sync /dev/sdb2
1 8 19 1 active sync /dev/sdb3
2 8 33 - spare /dev/sdc1
3 8 34 - spare /dev/sdc2