Code: Select all
[root@MyServer /]# lsblk -i
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 100G 0 disk
|-sda1 8:1 0 1G 0 part /boot
`-sda2 8:2 0 99G 0 part
|-cl_myserver00-root 253:0 0 91G 0 lvm /
`-cl_myserver00-swap 253:1 0 8G 0 lvm [SWAP]
sdb 8:16 0 100G 0 disk
`-sdb1 8:17 0 100G 0 part
`-cl_myserver01-home 253:2 0 100G 0 lvm /home
sr0 11:0 1 1024M 0 rom
Code: Select all
[root@MyServer /]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/cl_myserver00-root xfs 91G 79G 13G 86% /
devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs tmpfs 7.8G 153M 7.7G 2% /run
tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda1 xfs 1014M 184M 831M 19% /boot
/dev/mapper/cl_myserver01-home xfs 100G 2.5G 98G 3% /home
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1000
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1001
Ocasionally I have problem with space on root partition since mysql databases reside in /var/lib/mysql that is under root partition and mysql service gets stucked.
I could take some space from /home partition and assign it to root partition, but I was thinking of adding one more disk, and physically moving /var/lib/mysql there. New disk will be single partition and of lvm type.
This is what I suppose I should do:
• make sdc1 partition on sdc drive
• make lvm named ie. cl_myserver02-mysql
How do I make sure that my new lvm (cl_myserver02-mysql) is assigned to /var/lib/mysql mounting point?
I am still not sure if I described everything correctly, but I hope you got the picture.
thanx