Koozali.org: home of the SME Server

Expanding a drive to use free space help?

Offline SSBN

  • *
  • 5
  • +0/-0
Expanding a drive to use free space help?
« on: December 16, 2009, 04:38:29 AM »
Hi Everyone,

I am running sme 7.1 and had two mirrored drives using sme software mirror. The drives were 80 gigs. I used the instruction at http://wiki.contribs.org/Raid to replace the drives with two 1tb drives. Replacing the drives went ok but i cant seem to get the server to expand bast the 80 gigs.
This is my drive layout

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104384+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2              13      121601   976655647   fd  Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104384+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13      121601   976655647   fd  Linux raid autodetect

Disk /dev/md2: 1000.0 GB, 1000095285248 bytes
2 heads, 4 sectors/track, 244163888 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

I then run this command.
>mdadm --grow --size=max /dev/md2
and get no error
then
> pvresize /dev/md2
  Physical volume "/dev/md2" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized
then
>lvresize -l +100%FREE main/root
  Invalid argument +100%FREE
  Error during parsing of command line.

Now i dont know where my mistake is it is probably something really silly. Can any of you help me with what i am missing. The drives of-course stay at 80 gigs.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Expanding a drive to use free space help?
« Reply #1 on: December 16, 2009, 09:46:47 AM »
Check:
http://bugs.contribs.org/show_bug.cgi?id=5311
http://forums.contribs.org/index.php/topic,44380.msg213438.html#msg213438

By the way, when you provide the output of commands as is the case in your post, it would be useful for other to have the actual command also.
In example state :  sfdisk -l /dev/hda before pasting the output of this command.  And so on...
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Expanding a drive to use free space help?
« Reply #2 on: December 16, 2009, 11:23:20 AM »
I am running sme 7.1

SME 7.1 is pretty old and you should upgrade asap

Offline SSBN

  • *
  • 5
  • +0/-0
Re: Expanding a drive to use free space help?
« Reply #3 on: December 17, 2009, 02:07:18 PM »
I will update it and give it a try. I am running int sum problems updating it but will start another post if i need help. I will post back soon.

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Expanding a drive to use free space help?
« Reply #4 on: December 17, 2009, 05:34:41 PM »
Seems as though I'm always plugging the AFFA method ... mostly because it works!  Try moving your 7.1 drives to another machine, booting that one, upgrading it to 7.4 with all updates, then install your new drives in the old machine, install & update 7.4 then use AFFA to backup then rise the newly-upgraded machine.  Should work beautifully.

...

Offline SSBN

  • *
  • 5
  • +0/-0
Re: Expanding a drive to use free space help?
« Reply #5 on: December 18, 2009, 05:20:23 AM »
What is AFFA? I  have two identical 1u servers so this may be the best option.

Offline SSBN

  • *
  • 5
  • +0/-0
Re: Expanding a drive to use free space help?
« Reply #6 on: December 18, 2009, 06:04:46 AM »
Upgrading to 7.4 did the trick. Thanks for all the help. I went from 75 used gigs of 80 to 75 used gigs of 1000.

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Expanding a drive to use free space help?
« Reply #7 on: December 18, 2009, 06:06:01 AM »
http://wiki.contribs.org/Moving_SME_to_new_Hardware

I've done this several times now and it Just Works.
...

Offline SSBN

  • *
  • 5
  • +0/-0
Re: Expanding a drive to use free space help?
« Reply #8 on: December 18, 2009, 03:28:14 PM »
http://wiki.contribs.org/Moving_SME_to_new_Hardware

I've done this several times now and it Just Works.

Thanks good to know for the future.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Expanding a drive to use free space help?
« Reply #9 on: December 18, 2009, 10:00:18 PM »
I am running sme 7.1 and had two mirrored drives using sme software mirror. The drives were 80 gigs. I used the instruction at http://wiki.contribs.org/Raid to replace the drives with two 1tb drives. Replacing the drives went ok but i cant seem to get the server to expand bast the 80 gigs.

If you read those instructions you looked at you would have found that to expand the drive to full cap. you would have needed SME Server 7.2 or higher. For future readers you can read from: Upgrading_the_Hard_Drive_Size
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!