Koozali.org: home of the SME Server

Trouble upgrading to larger hard drives

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Trouble upgrading to larger hard drives
« on: July 22, 2007, 06:59:58 PM »
I am following the Upgrading the Hard Drive Size in SME Server:Documentation:Technical Manual:Chapter5.

Everything goes well until I get to the command in section 6, command 3 witch says

lvresize -l +$(vgdisplay -c main | cut -d: -f16) main/root [-l (lower case L)] Which I slightly modify to be
lvresize -l +$(vgdisplay -c main | cut -d: -f16) main/root [-l]

When I execute this command I receive the following error

  Volume group "main" not found
  Invalid argument +
  Error during parsing of command line.
I am not sure where to go from here

I have entered bug 3180 http://bugs.contribs.org/show_bug.cgi?id=3180

TIA
If you think you know whats going on, you obviously have no idea whats going on!

Offline Gaston94

  • *****
  • 184
  • +0/-0
Trouble upgrading to larger hard drives
« Reply #1 on: July 23, 2007, 08:06:34 AM »
Hi,
most likely you are working on an earlier upgraded version of SME 7 (7.0 beta I guess), the VG were named in another way.
Check this with
Code: [Select]
vgdisplay
you might see "vg_primary instead of main. So the correct command should be -FOR YOUR SPECIFIC- configuration
Code: [Select]
lvresize -l +$(vgdisplay -c vg_primary | cut -d: -f16) vg_primary/lv_root

G.
[EDIT] Apologize, the answer was already given in the bug tracker

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Trouble upgrading to larger hard drives
« Reply #2 on: October 12, 2007, 01:37:16 PM »
Crazybob

How did you go with this in the end ? I am going CRAZY trying to get it to fall into place, even after reading the docs and the bug and....

Cheers
P
...

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: Trouble upgrading to larger hard drives
« Reply #3 on: October 12, 2007, 02:28:16 PM »
I followed the bug tracker, and it went fine for me

Bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Trouble upgrading to larger hard drives
« Reply #4 on: October 12, 2007, 03:38:44 PM »
Crazybob

How did you go with this in the end ? I am going CRAZY trying to get it to fall into place, even after reading the docs and the bug and....

What part are you getting stuck on ? what is the message showing when you try this ? I've done this a good few times without any issue's.

Cheers
--[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!

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Trouble upgrading to larger hard drives
« Reply #5 on: October 13, 2007, 10:05:30 AM »
I have sorted my self now thanks.

Got to the same place Bob got to then I found this post that moved me on but couldnt get through the last step.

I dont fully understand these commands so I was working as the proverbial parrot. The bug may well have spelt it out but it didnt have the full line syntax so I got myself a bit screwed. I think the original document I was working from was for 7.1 and the volume names changed in 7.2 but it would seem the document wasnt updated.

I seem to be surrounded by alligators at the moment !!
« Last Edit: October 13, 2007, 10:07:14 AM by p-jones »
...