Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ls -l /dev/mapper/vg_sugar-lv_root
lrwxrwxrwx 1 root root 7 Aug 26 11:08 /dev/mapper/vg_sugar-lv_root -> ../dm-0
I am not sure waht to make out of ../dm-0
Code:
lvdisplay
--- Logical volume ---
LV Path /dev/vg_sugar/lv_root
LV Name lv_root
VG Name vg_sugar
LV UUID GhYJ8y-2pGM-sSQ2-8hV9-uxAw-1O0a-U1O8DF
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/vg_sugar/lv_home
LV Name lv_home
VG Name vg_sugar
LV UUID wpHAH0-blhe-h3WW-kPee-KwNU-ENrY-vGFA3a
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 9.57 GiB
Current LE 2450
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Path /dev/vg_sugar/lv_swap
LV Name lv_swap
VG Name vg_sugar
LV UUID ugCsGI-JEiF-pIWN-uF3R-1DTb-wz8I-aOGN66
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 3.94 GiB
Current LE 1008
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
While looking for solution, I've read that if another file system creates a partition in the OS space, that space will be used, but not reported. Do you happen to know how I can check for something like that?
your volume group is called vg_sugar ( very near the end of your /dev/ listing
Code:
ls /dev/vg_sugar
should show the Logical Volumes that belong in that VG
you should see lv_root lv_home and lv_swap
you may also see others , possibly ending with snap numbered simply or like a date
Code:
lvs # should list
lvs -a # that may list more
##
lvs -o name,lv_ancestors,lv_descendants vg_sugar
Quote:
While looking for solution, I've read that if another file system creates a partition in the OS space, that space will be used, but not reported. Do you happen to know how I can check for something like that?
not certain on that one
I do have a 'black hole' on my system, where I can't see space used by ZFS backed LXCs unless I'm root
I may have to fireup a VM, I never really did snapshots with lvm2, most of what I did with it was create LVs in various raid configs for VMs.
you may need to get someone onsite
a CRM being down is not ideal.
Code:
lvs -a
I think that one may give more, -a is for all not just the main ones
then again, it could be something else and not snapshots
location of /var/run ? that is in lv_root, it might even be tmpfs i.e. in memory
you only have two partitions / and /home
well, I say partitions they are actually logical volumes.
/var/run never has anything exciting in it, just tiny files which store the pids of running daemons
what is in /root
Code:
707M /root
we need some space, and root dosn't typically have files in it
also, what filesystem
Code:
df -T /
we might be able to grow the LV
add a new virtual disk to the VM, add that as a PE grow the VG and then the LV
but it has been a while since I have done that.
another option is to setup a new VM and transfer the data
what VM is it?
does it already have redundancy ?
While looking for solution, I've read that if another file system creates a partition in the OS space, that space will be used, but not reported. Do you happen to know how I can check for something like that?
remember I mentioned that I can't see the space consumed by lxc unless I use root
well, lxc usually lives in
/var/lib/lxc
Code:
ls /var/lib/lxc/*
if you get a bunch of Permission denied
use `du` as root
edit, might be lxd
could even be that you have some other containers , like docker I'm not sure where they live
yes, I ran it as root.
I noticed some old backup files in /root and deleted 80 mbs, so /root now is 632M , but still no go -
190826 17:52:21 [ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
190826 17:52:21 [ERROR] Can't start server: can't create PID file: No space left on device
df shows slightly more space, but still not enough
Code:
df -T /
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_sugar-lv_root
ext4 51475068 50158000 0 100% /
Well, I am software developer for our company, I work with MS stuff 99% of the time. We do have outsource help, but they threw the towel in last Friday, and I am posting on Linux forums beseeching assistance. No, CRM being down is not fun, I am seeing some frowns around the office already.
I would not know how to extend that partition.
> what VM is it?
> does it already have redundancy ?
I think this is a ProxMox, and there is not even a backup.
Last edited by DannyBoyCentOS; 08-26-2019 at 08:14 PM.
yeah, I think we can give up on the idea that it is snapshots
Quote:
Well, I am software developer for our company, I work with MS stuff 99% of the time. We do have outsource help, but they threw the towel in last Friday, and I am posting on Linux forums beseeching assistance. No, CRM being down is not fun, I am seeing some frowns around the office already.
They quit? was it over this or something else?
Quote:
I would not know how to extend that partition.
it is actually quite straight forward, I noted ext4 was the filesystem
so, the trick is to add a vitual drive to the VM ( I'm hoping the host has enought space )
then we can partition it to match the first, add vdb2 as a PV ( Physical Volume ) extend the Volume Group with that new PV , and resize the LV
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.