Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: faeky on November 10, 2011, 02:38:43 AM
-
I have read all that I can on the subject and am confused about whether I grow md1 or md2 to create the larger partition.
In all the examples the raid looks like:
Personalities : [raid1]
md1 : active raid1 hda3[0] hdb3[1]
38837056 blocks [2/2] [UU]
md2 : active raid1 hda2[0] hdb2[1]
1048704 blocks [2/2] [UU]
md0 : active raid1 hda1[0] hdb1[1]
255936 blocks [2/2] [UU]
My raid looks like:
Personalities : [raid1]
md2 : active raid1 hda2[0] hdb2[1]
264960 blocks [2/2] [UU]
md1 : active raid1 hda3[0] hdb3[1]
77778624 blocks [2/2] [UU]
md0 : active raid1 hda1[0] hdb1[1]
104320 blocks [2/2] [UU]
df -h results in:
Filesystem Size Used Avail Use% Mounted on
/dev/md1 74G 23G 48G 33% /
/dev/md0 99M 29M 65M 31% /boot
none 997M 0 997M 0% /dev/shm
Do I grow md1 or md2? I replaced the old 80GB drives with 160GB drives.
Why do some systems only have md1 and md2 and others have md0, md1 and md2? How do you tell what raid partition is being used for what?
Thanks!
Update:
With the following instructionsmdadm --grow /dev/md2 --size=max
pvresize /dev/md2
lvresize -l +100%FREE main/root
ext2online -C0 /dev/main/root
It says under the section * If you have disabled lvm
1. you don't need the pvresize or lvresize command
2. the final line becomes ext2online -C0 /dev/md2 (or whatever / is mounted to)
Since it seems / is mounted to md1 I am thinking I need to grow md1 but I am still not sure. I have not disabled lvm so I don't why this would apply.
-
faeky
Why do some systems only have md1 and md2 and others have md0, md1 and md2? How do you tell what raid partition is being used for what?
Was your system originally a sme 6.x or earlier ? If so that's why you have 3 partitions on each drive.
With a fresh install of sme7.x, the system was changed to only create 2 partitions (and that is what current wiki articles are referring to ie 2 partition arrangements).
There are a few advantages with the 2 partition sme 7.x method, so you should ideally create a full backup, install a fresh OS of sme7.5.1 and then restore form the full backup.
It's advisable to test first.
That way you will only have 2 partitions, and be able to have the advantages of sme7 eg auto rebuild of arrays under certain circumstances.
Then you can proceed to increase your hard disk size as per wiki instructions.