Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Probably I missed something, but this is - in general - a two step process:
1. you need to give more space (that is modifyhd), which will (only) allow to increase the size of the filesystem
2. actually that means /dev/sda has more space, but /dev/sda1 and /dev/sda2 did not change at all. If you want to increase the size of your logical volume you need to create a /dev/sda3 containing the space you added in the first step.
3. ok, three steps: you need to add /dev/sda3 to /dev/mapper/vg_ol6512102-lv_root
but again, probably I missed something, so correct me if I misunderstood anything
I did a restore from snapshot, but when I do a fdisk -l, there's no difference at all
Code:
Disk /dev/sda: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00038819
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1567 12069888 8e Linux LVM
Disk /dev/mapper/vg_ol6512102-lv_root: 8061 MB, 8061452288 bytes
255 heads, 63 sectors/track, 980 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_ol6512102-lv_swap: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
the 3 step process that you mentioned,
give more space to which will increase the size of the filesystem. done see my output for modifyhd the output
when i try to create partition 3, the following happens
Code:
[root@ol65-12102 ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
No free sectors available
Command (m for help):
no more free space
I'm using virtualbox version 5.1.14r112924 (Qt 5.6.2). file did resize see output for modifyhd.
any suggestion provided will be greatly appreciated!
thanks a lot!
Last edited by redhatwannabe; 04-26-2017 at 09:25 AM.
Reason: say thanks
I did read that with earlier versions you had to delete the snapshots before you could actually extend the virtual drive space. You could try cloning, then delete the snapshots then see what happens.
You can also create a new VDI and attach it to the VM to extend the root LV space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.