regarding lvextend
I have installed oracle enterprise linux 5.4 on virtualbox.
I have created 25 GB hard-disk. While installing I have assigned 2GB for swap partition and 5gb for boot partition. And left 17 gb space unallocated. when i give command pvs it shows pv vg Fmt Attr Psize PFree --------------------------------------------------------------------- /dev/sda2 VolGroup00 lvm2 a- 24.88G 17.91G i want to utilise this space. But when i gives lvextend as follows lvextend /dev/VolGroup00 /dev/sda2 command it shows "volgroup00": invalid path for logical volume Please provide volume group name. Please help to extend logical volume |
The issue is the syntax of the command you are trying to run to run is incorrect
lvextend -L Size /dev/mapper/VolGroup-lvName also I think you are using the default volgroup created by linux, and this uses 100% of the space, so if you want to practice your gonna have to add a disk and then use that. |
I'd also add that your boot is much bigger than you should need; 512MB is fairly normal unless you intend to eg do a lot of kernel creations and keep them all.
|
Quote:
Quote:
You can verify it by using Code:
# vgs Quote:
Code:
# vgextend VolGroup00 <New PV> will enlarge to 10 GB Code:
# lvextend -L +10G /dev/VolGroup00/boot Code:
# lvextend -l +100%FREE /dev/VolGroup00/boot |
All times are GMT -5. The time now is 07:30 AM. |