0

How can I expand /dev/root? I can't seem to do this using an LVExtend command.

Thanks,

James

7
  • Please be more verbose. What happens when you try to use lvextend? What is the exact command you are trying to use? Is there still space available in your logical volume so you can extend it without adding new physical volumes to your volume group? And so on. We might be gurus and all, but psychic skills are not available here. Jul 15, 2011 at 6:45
  • @Janne, Here's the command I was using; 'lvextend -L+3G /vg00' Jul 15, 2011 at 7:10
  • Forget the /. Jul 15, 2011 at 7:19
  • Still doesn't work :( Jul 15, 2011 at 7:23
  • root@s15430558 [~]# lvextend -L+3G vg00 Path required for Logical Volume "vg00" Please provide a volume group name Run `lvextend --help' for more information. Jul 15, 2011 at 7:24

1 Answer 1

1

If you have your root partition on LVM, you can use lvextend -L+<size>G <vg>/<lv> followed by resize2fs /dev/<vg>/<lv> (assuming an ext[234?] root filesystem; the appropriate alternative command should be used if you're running a different filesystem).

On the other hand, you may not be using LVM for your root filesystem, in which case... who knows what you need to do? Certainly not us.

4
  • What would I put in the place of '<lv>'? Thanks! Jul 15, 2011 at 6:28
  • The name of your root LV...
    – womble
    Jul 15, 2011 at 6:32
  • Where could I find that, please? :) Jul 15, 2011 at 6:48
  • Look: PV Name /dev/xvda3 VG Name vg00 PV Size 273.80 GB / not usable 783.00 KB Allocatable yes PE Size (KByte) 4096 Total PE 70092 Free PE 40652 Allocated PE 29440 PV UUID zWbdU2-X0vX-E2oq-hNby-9LHP-47wy-4fvb0v Jul 15, 2011 at 6:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .