20190713 08:00:01 Info: Running: lvcreate -s --size=5G --name=mysql_snapshot /dev/an-coord1001-vg/mysql File descriptor 3 (/run/lock/mylvmbackup-analytics-meta) leaked on lvcreate invocation. Parent PID 152942: /usr/bin/perl Using default stripesize 64.00 KiB. Volume group "an-coord1001-vg" has insufficient free space (242 extents): 1280 required. 20190713 08:00:01 Error: FAILED: taking LVM snapshot (exit status 5) 20190713 08:00:01 Info: Unlocking tables... 20190713 08:00:01 Info: Disconnecting from database... 20190713 08:00:01 Error: Could not create snapshot volume mysql_snapshot 20190713 08:00:01 Info: Cleaning up...
elukey@an-coord1001:~$ sudo pvs PV VG Fmt Attr PSize PFree /dev/md2 an-coord1001-vg lvm2 a-- 175.95g 968.00m elukey@an-coord1001:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0% /dev tmpfs 3.2G 296M 2.9G 10% /run /dev/md0 46G 24G 21G 54% / tmpfs 16G 0 16G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 16G 0 16G 0% /sys/fs/cgroup fuse_dfs 2.3P 1.6P 711T 70% /mnt/hdfs /dev/mapper/an--coord1001--vg-mysql 59G 21G 39G 35% /var/lib/mysql /dev/mapper/an--coord1001--vg-srv 113G 16G 98G 14% /srv tmpfs 3.2G 0 3.2G 0% /run/user/124 tmpfs 3.2G 0 3.2G 0% /run/user/119 tmpfs 3.2G 0 3.2G 0% /run/user/13926
Proposed fix:
e2fsck -fy /dev/mapper/an--coord1001--vg-srv (seems needed before proceeding) resize2fs /srv 103G lvreduce -L -10G /dev/mapper/an--coord1001--vg-srv