/dev/mapper/cloudlinux-root small partition size?
Forum
  1. Forums
  2. General
  3. General Discussion
  1. James
  2. Friday, 06 April 2018
  3.  Subscribe via email
On a fresh install of Cloudlinux7 it seems to default the / partition to a 50GB size - I'm worried this could cause issues with MySQL (stored in /var/mysql) and other unforeseen problems.

How can it safely be resized?

[[email protected] /]# 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


[[email protected] /]# 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
Rate this post:
  1. 06.04.2018 10:04:38
  2. # 1
Igor Ghertesco Accepted Answer
Posts: 154
Joined: 07.08.2015
0
Votes
Undo
Hello,

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

You can refer, for example, to these pages:
https://www.rootusers.com/lvm-resize-how-to-increase-an-lvm-partition/
https://www.techbrown.com/linux-lvm-logical-volume-centos-7-rhel-7.shtml

You can also add a separate volume and mount /var/mysql to it.
  1. 06.04.2018 22:04:55
  2. # 2
James Accepted Answer
Posts: 0
Joined: 17.10.2019
0
Votes
Undo
Thanks Igor, always appreciate your hard work!
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.