Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks,

James

share|improve this question
    
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 6:45
    
@Janne, Here's the command I was using; 'lvextend -L+3G /vg00' –  James Anderson Jul 15 '11 at 7:10
    
Forget the /. –  Janne Pikkarainen Jul 15 '11 at 7:19
    
Still doesn't work :( –  James Anderson Jul 15 '11 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. –  James Anderson Jul 15 '11 at 7:24
show 2 more comments

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
    
What would I put in the place of '<lv>'? Thanks! –  James Anderson Jul 15 '11 at 6:28
    
The name of your root LV... –  womble Jul 15 '11 at 6:32
    
Where could I find that, please? :) –  James Anderson Jul 15 '11 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 –  James Anderson Jul 15 '11 at 6:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.