Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: riggers5 on January 16, 2005, 11:25:40 AM

Title: Disk Size
Post by: riggers5 on January 16, 2005, 11:25:40 AM
I have migrated SME6.01-1 from Raid1 40GB HDDs to raid1 80GB HDD.  after running raidmonitor and veiwing mdstat it shows:
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda3[0] hdc3[1]
      522048 blocks [2/2] [UU]
     
md1 : active raid1 hda2[0] hdc2[1]
      77417152 blocks [2/2] [UU]
     
md0 : active raid1 hda1[0] hdc1[1]
      208704 blocks [2/2] [UU]
     
unused devices: <none>

but running df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md1               36G   13G   22G  36% /
/dev/md0               99M   14M   79M  15% /boot
none                  250M     0  250M   0% /dev/shm

So is the system using the full 80GB or not?
Title: Disk Size
Post by: smeghead on January 16, 2005, 11:52:27 AM
Quote
Filesystem Size Used Avail Use% Mounted on
/dev/md1 36G 13G 22G 36% /
/dev/md0 99M 14M 79M 15% /boot

99M total boot = 14M used + 79M free (plus rounding & raid overhead)
36GB total data = 13G used + 22G free (plus rounding & raid overhead)

How did you migrate?  If you used Ghost or similar you may not have expanded the partitions to fill the physical disk capacity.
Title: Disk Size
Post by: riggers5 on January 16, 2005, 12:17:40 PM
Originally I tried doing a backup and restore onto a fresh installation, afetr a number or failed attempts I gave up on that and tried ghosting, which worked well apart from not resizing the partitions as you said.  I then tried mondo archive which did resize the partitions, but none of the run level 7 services would start, so I was unable to connect to restor the /home backup I had created (as per how to).  I then tried ghost again, ghosting each individual partition to the partitions mondo archive had made (/boot 200MB, /swp 512MB / remainder).

Am i misreading the mdstat file or is that showing the larger partition sizes compared to df?
Title: Disk Size
Post by: riggers5 on January 17, 2005, 09:52:35 AM
is it possible to resize the partition after ghosting?
Title: Disk Size
Post by: smeghead on January 17, 2005, 02:20:03 PM
.. easy to do under Windows but not sure about Linux ext3 partitions (on a RAID!).

I would imagine it is possible but I can't quite recall the package I was thinking of ... if my memory returns I will let you know.