/dev/mapper/cloudlinux-root small partition size?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pekka.saarinen
    Junior Member
    • Mar 2021
    • 4

    #1

    /dev/mapper/cloudlinux-root small partition size?

    On a fresh install of Cloudlinux7 it seems to default the / partition to a 50GB size - Im worried this could cause issues with MySQL (stored in /var/mysql) and other unforeseen problems.

    How can it safely be resized?

    [root@server /]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/cloudlinux-root 50G 14G 34G 29% /
    devtmpfs 15G 0 15G 0% /dev
    tmpfs 15G 0 15G 0% /dev/shm
    tmpfs 15G 8.8M 15G 1% /run
    tmpfs 15G 0 15G 0% /sys/fs/cgroup
    /dev/sda2 976M 148M 761M 17% /boot
    /dev/sdb1 985G 692M 934G 1% /cpb
    /dev/sda1 200M 9.8M 191M 5% /boot/efi
    /dev/mapper/cloudlinux-home 330G 1.8G 311G 1% /home
    tmpfs 2.9G 0 2.9G 0% /run/user/0

    [root@server /]# cat /etc/fstab

    #
    # /etc/fstab
    # Created by anaconda on Tue Apr 3 16:48:09 2018
    #
    # Accessible filesystems, by reference, are maintained under /dev/disk
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    /dev/mapper/cloudlinux-root / ext4 usrjquota=quota.user,jqfmt=vfsv0 1 1
    UUID=8a9c982b-1eaa-4a22-b8fa-4a0713537eca /boot ext4 defaults 1 2
    UUID=3A7C-F874 /boot/efi vfat umask=0077,shortname=winnt 0 0
    /dev/mapper/cloudlinux-home /home ext4 usrjquota=quota.user,jqfmt=vfsv0 1 2
    #/dev/mapper/cloudlinux-swap swap swap defaults 0 0
    /dev/sdb1 /cpb ext4 defaults,noquota,noexec 0 0
  • ighertesco
    Senior Member
    • Nov 2016
    • 184

    #2
    Hello,

    You can use LVM as on stock CentOS system, we havent changed this part at all.

    You can refer, for example, to these pages:
    How to increase the size of a Linux LVM by expanding the logical volume and file system.



    You can also add a separate volume and mount /var/mysql to it.

    Comment

    • ighertesco
      Senior Member
      • Nov 2016
      • 184

      #3
      Thanks Igor, always appreciate your hard work!

      Comment

      Working...