Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: lmp on November 05, 2016, 04:01:06 PM
-
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
-
You're using LVM (see /dev/mapper...)
Follow wiki howto, that's all
-
Thank you very much.
I just don't understand (not strong in linux raid) for me it sounds a bit crazy, LVM on top of raid volume.
pvdisplay
--- Physical volume ---
PV Name /dev/md2
VG Name main
PV Size 931.41 GB / not usable 4.94 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 29805
Free PE 12
Allocated PE 29793
PV UUID 10xOgx-fAj5-H479-eDpt-g8kj-BYAu-yVCJSK
Or am I something missing?
Thanks again :)
-
no, you're right..
if you have a (real) HW raid, you'd have LVM on top of your raid device..
since you're using SW raid, it sit on top of mdX devices
did you manage in resizing?
https://wiki.contribs.org/Raid#Upgrading_the_Hard_Drive_Size (BTW, read all the page, it's useful ;-) )
-
when you noted it's LVM, it was easy.
I have read a lot of wiki docs, including this one, just somehow missed this "mapper" thing. :-)
Thanks again ;)
Cheers!
-
As a friendly reminder, please note that Koozali SME Server 8.x will be END OF LIFE in 4 months. Please focus any effort on Koozali SME Server 9.x.