Hello,
I have one SME 8.2 server with software raid, no LVM. It is raid1 with 3 disks in mirror. Now I need to extend root partition. It has only boot and root. I have changed all the disks like in the wiki, rebuild was successful. And now I have larger MD device.
Problem is that rersize2fs dosen't extend file system, despite md device is twice as big.
Any ideas what I'm doing wrong and how to extend file system?
Little more detailed info:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/main-root
442G 356G 64G 85% /
/dev/md1 99M 27M 68M 29% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
resize2fs /dev/mapper/main-root
resize2fs 1.39 (29-May-2006)
The filesystem is already 119537664 blocks long. Nothing to do!
cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdc1[2] sdb1[1] sda1[0]
104320 blocks [3/3] [UUU]
md2 : active raid1 sdc2[0] sdb2[2] sda2[1]
976655488 blocks [3/3] [UUU]
unused devices: <none>
mdadm --query --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Sun Feb 3 22:25:52 2013
Raid Level : raid1
Array Size : 976655488 (931.41 GiB 1000.10 GB)
Used Dev Size : 976655488 (931.41 GiB 1000.10 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Sat Nov 5 16:54:33 2016
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
UUID : 636e4bf6:cd1064fe:5a7cf11b:9b4305a3
Events : 0.23400
Number Major Minor RaidDevice State
0 8 34 0 active sync /dev/sdc2
1 8 2 1 active sync /dev/sda2
2 8 18 2 active sync /dev/sdb2
fdisk -l /dev/md2
Disk /dev/md2: 1000.0 GB, 1000095219712 bytes
2 heads, 4 sectors/track, 244163872 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table