/ filesystem out of space
hi,
i just installed Fedora 12 (via vbox 3.1.4). stupidly i started with 8G and, of course, ran out of space on the / filesystem. i added 8G to the drive which now shows as 17G. based on the below outputs, it looks like i have 8G more space available on the drive. based on reading other posts it looks like i need to use parted to increase the size but not sure how to do that. any help appreciated. Code:
[root@fedora12 ~]# fdisk -l Code:
[root@fedora12 ~]# df -h Code:
[root@fedora12 ~]# df -i Code:
[root@fedora12 ~]# mount Code:
[root@fedora12 ~]# parted |
You are using LVM for your partition. The physical partition already occupies the whole disk. You have to use lvextend to increase the partition size:
Code:
lvextend -L 14G vg_fedora12/lv_root Then call 'resize2fs /dev/mapper/vg_fedora12-lv_root' and have a look at 'df -h' again. |
It's an lvm issue as pointed above. I will only add that gparted (nor even parted itself) has not any lvm capabilities, other than recognizing the volumes. Besides that, note that once the lvm volume has grown you will probably need to grow the file system inside of it. lvm has nothing to do with the fs. For ext2/3 you'd use resize2fs. There are similar tools for other fs's.
EDITED: random link illustrating the thing. http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html |
lvextend errors
Thanks for the quick response. I ran lvextend and received this error. My guess is the additional 8G added needs to be initialized perhaps??
Code:
[root@fedora12 steve]# lvextend -v -L 14G vg_fedora12/lv_root |
Well, what those quotes seem to say is (approx nums):
1. the disk is 17GB of which 2. 200MB is /boot 3. 8GB is LVM split 2 ways: 3a. 2 GB swap 3b. 6 GB usable Linux ie '/' 4. 8.x GB unpartitioned You'll need to use fdisk or parted to assign the rest of the disk (sda3) to a partition; type 8e (lvm). Use the pvcreate to make it avail to lvm system. pvcreate /dev/sda3 vgextend vg_fedora12 /dev/sda3 lvextend -L +8G /dev/vg_fedora12/lv_root resize2fs -p /dev/vg_fedora12/lv_root NB: in order to avoid wasted space, use a much larger num in the lvextend cmd eg 10. This will tell you you don't have 10GB avail,but it will tell you how many extents avail. To avoid cvt extents to bytes, use the -l (lower L) switch with the num of extents from the error msg eg lvextend -l <num-extents-avail> /dev/vg_fedora12/lv_root See also http://tldp.org/HOWTO/LVM-HOWTO/ (NB: you have V2 of LVM). |
pvcreate error
i ran pvcreate and received the below error. how do i define sda3?
Code:
[root@fedora12 steve]# pvcreate /dev/sda3 |
Solved. I found the solution at the Fedora forums.
Fedora has a Palimpsest Disk Utility GUI (Applications>SystemTools>DiskUtility) under which the new space can be partitioned. Then you invoke the LVM GUI (System>Administration>LogicalVolumeManagement) where you initialize and then convert to LVM and then add to the existing LVM group. Thanks for the help. |
All times are GMT -5. The time now is 03:58 AM. |