-
Need help to increase partition size
Hi .. I am still newbie and need a help urgently
I have VM machine which was running out of space so I increased space from 20GB to 40GB. Now I need help to increase space in linux logical volume.
[root@localhost ~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux
LVM
Disk /dev/sdb: 8005 MB, 8005787648 bytes
32 heads, 63 sectors/track, 7756 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7756 7818016+ b W95 FAT32
[root@localhost ~]#
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
18G 14G 2.7G 84% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 467M 0 467M 0% /dev/shm
[root@localhost ~]#
I did try lvresize and lvextend but it throws error.
Thanks.
-
I don't use LVM but it is supposed to be able to add partitions together instead of resizing them. The resizing of a partition will work satisfactory for non-LVM partitions AFAIK.
Why bother with a LVM for a hard disk with just 45GB? Distos like the Red hat (fedora) and OpenSuse may still encourage LVM for server application but it is a hindrance for desktop machines with small hard drives. May be I have not put it to the full test but being an extra layer of filing systems management it would have its own difficulties if one try to move/migrate/resize it. AFAIK if you want to change its size the standard BASH commands will not work and the only way is to consulate the LVM manual.
It made sense in the past when the boot loader could not boot beyond certain cylinder size but technology has moved on and nowadays this is no longer a problem.
Last edited by saikee; 08-12-2013 at 04:19 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|