Thanks for the link Dennis, here you go
Code:$ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home fedora -wi-a----- <241.27g root fedora -wi-a----- 50.00g swap fedora -wi-a----- 5.82g
Thanks for the link Dennis, here you go
Code:$ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home fedora -wi-a----- <241.27g root fedora -wi-a----- 50.00g swap fedora -wi-a----- 5.82g
Fedora has taken all the space for itself. It would be necessary to resize home to make room for another OS.
I suggest first finding how much of home is used. Run from Fedora terminal and post the output of:
Code:df -h | grep home
That command does not return anything for some reason
That's strange. Output should show any mounted file system containing the string "home". Please run it without the grep part:
The output is information on all the mounted partitions and devices, including the LVM logical volumes, and should inform us how much of it is available to be reduced in size.Code:df -h
This is what I got after running df -h
Code:Filesystem Size Used Avail Use% Mounted on dev 2.9G 0 2.9G 0% /dev run 2.9G 35M 2.9G 2% /run /dev/sdf1 1.8G 1.8G 0 100% /run/archiso/bootmnt cowspace 320M 67M 254M 21% /run/archiso/cowspace /dev/loop0 1.7G 1.7G 0 100% /run/archiso/sfs/root-image root-image 320M 67M 254M 21% / tmpfs 2.9G 0 2.9G 0% /dev/shm tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup tmpfs 2.9G 6.1M 2.9G 1% /tmp tmpfs 584M 40K 584M 1% /run/user/1000
Well, that's a puzzle. I don't see any sign of this output being from Fedora LVM installation.
For example, we should see a separate boot partition outside the LVM partition and it isn't shown. We should see the root partition on an LVM logical volume, as seen in post #21. LVM volumes would start with:
/dev/mapper/...
in the df -h display.
For comparison, here is the output from my LVM install of Xubuntu:
In the Filesystem column, note the LVM logical volume mounted on / and the regular partition /dev/sdb8 mounted on /boot.Code:dmn@Kayleigh:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 984M 0 984M 0% /dev tmpfs 201M 6.4M 195M 4% /run /dev/mapper/common_vg-xubuntu_1604 15G 6.2G 7.8G 45% / tmpfs 1003M 220K 1003M 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 1003M 0 1003M 0% /sys/fs/cgroup /dev/sdb8 380M 252M 104M 71% /boot /dev/mapper/common_vg-files 30G 16G 13G 55% /mnt/files tmpfs 201M 4.0K 201M 1% /run/user/108 tmpfs 201M 44K 201M 1% /run/user/1000
You need to figure out what you are doing wrong. Did you boot an ISO (isoboot?) instead of a regular boot of Fedora? Loop mount (/dev/loop0)? I am confused at the moment.
Last edited by Dennis N; July 2nd, 2017 at 01:13 AM.
Sorry Dennis I was booting from the new live OS here is the output from that command
Code:Filesystem Size Used Avail Use% Mounted on devtmpfs 2.9G 0 2.9G 0% /dev tmpfs 2.9G 0 2.9G 0% /dev/shm tmpfs 2.9G 1.4M 2.9G 1% /run tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup /dev/mapper/fedora-root 50G 7.2G 40G 16% / tmpfs 2.9G 76K 2.9G 1% /tmp /dev/sda1 976M 175M 735M 20% /boot /dev/mapper/fedora-home 238G 562M 225G 1% /home tmpfs 583M 28K 583M 1% /run/user/42 tmpfs 583M 40K 583M 1% /run/user/1000
Code:--- Logical volume --- LV Path /dev/fedora/swap LV Name swap VG Name fedora LV UUID AP454m-2HOj-hfpY-xYFw-KFCh-4okv-YT1oEc LV Write Access read/write LV Creation host, time localhost-live, 2016-12-24 14:25:19 -0500 LV Status available # open 2 LV Size 5.82 GiB Current LE 1490 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/fedora/home LV Name home VG Name fedora LV UUID dvp1nJ-pKUo-Au9h-kmSA-z3Qb-OMeD-8SXgHr LV Write Access read/write LV Creation host, time localhost-live, 2016-12-24 14:25:19 -0500 LV Status available # open 1 LV Size 241.27 GiB Current LE 61764 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/fedora/root LV Name root VG Name fedora LV UUID KlCK71-rek3-NFYD-Zbes-aKOb-nCAE-OePwc3 LV Write Access read/write LV Creation host, time localhost-live, 2016-12-24 14:26:08 -0500 LV Status available # open 1 LV Size 50.00 GiB Current LE 12800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
Ready to resize?
You should have a back up of any important data. There is always a risk of accidental data loss when resizing.
According to the Ubuntu LVM guide: the LV you are resizing has to be unmounted, so you need run the command from live media with lvm2 package installed. Suggested: Xubuntu or Fedora live media. Live media file manager would display icons for the LVM volumes, but don't click to mount any (no telling what they might be named - an LVM test volume on this computer seen from another OS is just labeled "13 GB Volume").
You might want to run sudo lvdisplay from the live media's terminal just to test that the LVM commands are working.
Now to resize: running this in the (live media) terminal will reduce home to 40 gB:
Code:sudo lvreduce --resizefs --size 40G /dev/fedora/home
Next step: create new LV for new OS.
Last edited by Dennis N; July 2nd, 2017 at 02:51 PM.
Bookmarks