1 |
On Thu, Nov 17, 2011 at 4:21 PM, Neil Bothwick <neil@××××××××××.uk> wrote: |
2 |
> On Thu, 17 Nov 2011 16:13:09 -0800, Mark Knecht wrote: |
3 |
> |
4 |
>> > Do you have separately partitioned drives with those partitions |
5 |
>> > arranged into single-partition arrays, or do you have one RAID device |
6 |
>> > that is then partitioned? |
7 |
>> > |
8 |
>> > If the latter, you should certainly work with the md device. |
9 |
>> > |
10 |
>> > I prefer to avoid all this confusion by creating a large, single |
11 |
>> > partition array that I use an an LVM physical volume. |
12 |
>> |
13 |
>> Separately partitioned drives arranged into RAID arrays. |
14 |
> |
15 |
> So you have three partitions arranged into a single RAID5 partition, |
16 |
> say /dev/md1? |
17 |
> |
18 |
> In that case, the size of /dev/md1 should already be correct and you only |
19 |
> need to resize the filesystem and you should ignore my witterings about |
20 |
> fdisk that filed to take into account your use of RAID. |
21 |
> resize2fs /dev/md1 should be all you need, you shouldn't even need to |
22 |
> unmount the filesystem. |
23 |
> |
24 |
|
25 |
I have 3 partitions which were previously RAID-1. I've already failed |
26 |
one drive so at this moment it's a 2-drive RAID-1. I'm attempting to |
27 |
get those two remaining 2 partitions converted to RAID-5 the command |
28 |
suggested on the RAID list for doing that isn't working for me. |
29 |
|
30 |
Once the 250GB RAID-1 is converted to RAID-5 i have to add a new drive |
31 |
back in to become a 3-drive RAID-5. The drive I add will be the drive |
32 |
I just failed. |
33 |
|
34 |
c2stable ~ # mdadm --grow /dev/md6 --level=5 |
35 |
mdadm: /dev/md6: could not set level to raid5 |
36 |
c2stable ~ # |
37 |
|
38 |
c2stable ~ # mdadm -D /dev/md6 |
39 |
/dev/md6: |
40 |
Version : 1.1 |
41 |
Creation Time : Thu Apr 15 10:45:35 2010 |
42 |
Raid Level : raid1 |
43 |
Array Size : 247416933 (235.96 GiB 253.35 GB) |
44 |
Used Dev Size : 247416933 (235.96 GiB 253.35 GB) |
45 |
Raid Devices : 2 |
46 |
Total Devices : 2 |
47 |
Persistence : Superblock is persistent |
48 |
|
49 |
Update Time : Thu Nov 17 13:27:20 2011 |
50 |
State : clean |
51 |
Active Devices : 2 |
52 |
Working Devices : 2 |
53 |
Failed Devices : 0 |
54 |
Spare Devices : 0 |
55 |
|
56 |
Name : c2stable:6 (local to host c2stable) |
57 |
UUID : 249c7331:a8203540:c8f3b020:fb30a66b |
58 |
Events : 1039 |
59 |
|
60 |
Number Major Minor RaidDevice State |
61 |
0 8 6 0 active sync /dev/sda6 |
62 |
1 8 22 1 active sync /dev/sdb6 |
63 |
c2stable ~ # |