Re: Resizing LVM on VPS machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



type "pvs" and see how big the /dev/sda2 pv is.  It appears to be all
of the disk right now.

/dev/sda1 and /dev/sda2 are partitions. the rest are lv's inside a vg
on the //dev/sda2(pv) in lvm.

That would mean that you need lvresize current ones and/or lvcreate
new new lv's to create fses on.

Find a lvm tutorial document and it should explain it.   The basics
are pv are physical volumes on a disk device, vg are volume groups
(with one or more pv in the vg), and lv are logical volumes and 1 or
more of them exist in inside a vg.

Note that xfs_growfs will grow the filesystem, but you cannot shrink a
xfs filesysteem without doing the create new copy the data and delete
old (and have 2x the space around).

installing it like they did allows you to choose how you use the rest
(enlarge / or create new lv's with their own fs'es).

On Fri, Oct 2, 2020 at 5:14 PM Alex <mysqlstudent@xxxxxxxxx> wrote:
>
> Hi,
>
> I have a fedora32 install that was created by our VPS provider and
> they didn't allocate the entire 480GB SSD, but apparently just chose
> the default partitioning in fedora that only uses a 15GB root
> partition.
>
> How do I extend this partition to utilize the rest of the space on /
> or create a /home partition that utilizes the remainder of the space?
> I believe to resize the root partition I would need to do it outside
> of the running OS, correct?
>
> I've read several docs already, but I really must be missing
> something. Can xfs partitions even be resized? I've tried to use
> lvextend to resize root, but I don't understand the proper syntax
> according to this doc:
> https://opensource.com/business/16/9/linux-users-guide-lvm
>
> Below is the fdisk output for the partition info and the fstab below.
>
> # fdisk -l
> Disk /dev/sda: 480 GiB, 515396075520 bytes, 1006632960 sectors
> Disk model: QEMU HARDDISK
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x9325d531
>
> Device     Boot   Start        End    Sectors  Size Id Type
> /dev/sda1  *       2048    2099199    2097152    1G 83 Linux
> /dev/sda2       2099200 1006632959 1004533760  479G 8e Linux LVM
>
> Disk /dev/mapper/fedora_209--216--100--114-root: 15 GiB, 16106127360
> bytes, 31457280 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
> Disk /dev/mapper/fedora_209--216--100--114-swap: 8.66 GiB, 9281994752
> bytes, 18128896 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
> /dev/mapper/fedora_209--216--100--114-root /                       xfs
>     defaults        0 0
> UUID=49e1a837-e82a-4ae0-8979-94ccd7365394 /boot                   xfs
>    defaults        0 0
> /dev/mapper/fedora_209--216--100--114-swap none
> swap    defaults        0 0
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux