0

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

Thanks,

James

James Anderson
  • 2,947
  • 2
  • 16
  • 12
  • 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. – Janne Pikkarainen Jul 15 '11 at 06:45
  • @Janne, Here's the command I was using; 'lvextend -L+3G /vg00' – James Anderson Jul 15 '11 at 07:10
  • Forget the `/`. – Janne Pikkarainen Jul 15 '11 at 07:19
  • Still doesn't work :( – James Anderson Jul 15 '11 at 07: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. – James Anderson Jul 15 '11 at 07:24
  • Oh, my bad, lvextend needs full path to logical volume. :-) Some something like /dev/mapper/yourvg-lvol0 or whatever the path is. – Janne Pikkarainen Jul 15 '11 at 07:25
  • @Janne: It'll also just take a `vg/lv` pair, as I provided in my answer. @James: Put this sort of additional information in your question, rather than dumping it in a comment where it's unreadable. The output of `lvs` would be useful. – womble Jul 15 '11 at 10:10

1 Answers1

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.

womble
  • 95,029
  • 29
  • 173
  • 228