Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: Partitioning Question

  1. #21
    Join Date
    Feb 2015
    Location
    Florida
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Partitioning Question

    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

  2. #22
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,269

    Re: Partitioning Question

    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

  3. #23
    Join Date
    Feb 2015
    Location
    Florida
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Partitioning Question

    That command does not return anything for some reason

  4. #24
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,269

    Re: Partitioning Question

    Quote Originally Posted by RobGoss View Post
    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:

    Code:
    df -h
    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.

  5. #25
    Join Date
    Feb 2015
    Location
    Florida
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Partitioning Question

    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

  6. #26
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,269

    Re: Partitioning Question

    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:

    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
    In the Filesystem column, note the LVM logical volume mounted on / and the regular partition /dev/sdb8 mounted on /boot.

    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.

  7. #27
    Join Date
    Feb 2015
    Location
    Florida
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Partitioning Question

    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

  8. #28
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,269

    Re: Partitioning Question

    Quote Originally Posted by RobGoss View Post
    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
    That looks better. home is about 240 gB, now using less than 1 gB, so you should be able to free 200 gB leaving about 40 gB for your Fedora home. O.K?

    Need output of sudo lvdisplay in order to proceed. Please post.

  9. #29
    Join Date
    Feb 2015
    Location
    Florida
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Partitioning Question

    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

  10. #30
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,269

    Re: Partitioning Question

    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.

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •