Unable to list my VM's or Backups, not listed and not on the directory, plesae help.

g_erard_o

New Member
Nov 6, 2014
13
0
1
my proxmox server is running with the current vm's active 110, 222,500 they are working prefectly but i am not eable to see them or transfer the bakcup to other drives becouse they are not seen.
i have done nothing to couse this no upgrades or anything.
if i run the command: vzlist
the result is : containers not found but they are running!
I am afraid to restart the server and loose all.

any help will be much uppreciated.
thanks.

pict1.jpg
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Upfront, your Proxmox VE seems really outdated I can read v2.1 in the screenshot, 3.4 is latest stable consider upgrading.

They are in the webinterface so the config should be there. Look into /etc/pve/qemu-server, what does
Code:
ls /etc/pve/qemu-server
outputs? If the config files are save, I'd say your good.

Oh and 'vzlist' is for Containers (OpenVZ in your version), your machines are VMs (qemu) use the
Code:
qm list
command, to list them. It's normal that vzlist doesn't list them. :)
qm is your command line tool to manage them and vzdump is the tools for the backups.
 
Last edited:
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Thanks Thomas!


About two weeks ago I was able to see my vms and backups, the 110 is our zarafa email server wich I backup
2 times a week and it takes about 185GB of storage, at the end of the week I move them to another computer on
the network to make space for more backups. how can I move them if filezilla or if I browse /var/lib/vz/dump
folder is not showing the content, and how can i make another backup if the drives shows that I have only 88 gb
left and it also means that the data is there but not visible.
can I do an update of ProxMox as it's?


any ways... please take a look at the output of the commands that you requested.


thanks for your help!ls output.jpegqm list.jpg
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Yes output looks good, no need to worry here.

/var/lib/vz/dump has to show them when you make a backup and select local storage. If not it should be an problem with your FTP server settings.

Sorry I didn't understood the question with "and how can i make an other backup...", the data should be there and visible.

First upgrade to the latest 2.x which is simply can be done by executing as root on the Proxmox Host the following commands:
Code:
apt-get update
apt-get dist-upgrade

Then after that is done reboot once so that an eventual new kernel runs and follow:
https://pve.proxmox.com/wiki/Upgrade_from_2.3_to_3.0
read it carefully before doing the upgrade and backup!

It will get some (short) downtime, but as you running an quite outdated version you should put up with that.
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Thomas,

I think you are not understanding the problem, I will post new print-screens. If I want to backup a running VM or a Stoped VM it's not succesfull since it can not find the RAW disk, if I use putty, and go to folder ates) but the machines that i want to backup are running and listed. please look in detail at the print screens and at the result of the backup messages on the print screens.Thansk again for your help....

backup1.jpgbackup2.jpgbackup3.jpgwinscp.jpg
 
Last edited:
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Thomas,

I think you are not understanding the problem, I will post new print-screens. If I want to backup a running VM or a Stoped VM it's not succesfull since it can not find the RAW disk, if I use putty, and go to folder ates) but the machines that i want to backup are running and listed. please look in detail at the print screens and at the result of the backup messages on the print screens.Thansk again for your help....

View attachment 2877View attachment 2878View attachment 2879View attachment 2880

Hi,
how looks the output of following commands?
Code:
find /var/lib/vz/images -ls

cat /etc/pve/storage.cfg

ps aux | grep 500
Udo
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Thanks Udo;
here are the results:
find & cat.jpgps.jpg

Thanks again for taking the time.
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Hi,
you have moved your directory /var/lib/vz/images!
Try to find with
Code:
find /var/lib/vz -name \*.raw

Do you have also deleted the raw-files?
Look with
Code:
lsof | grep vm-500-disk-*
Udo
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Udo,
I am the only person with access to the server and I haven't moved or delete it anything except for the backups that i have to put on to another server for security.

please se the results and thanks for your time.:
find lsof.jpg
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Udo,

so just copy them from cache to the original folder under images will fix my problem?
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Udo,
I am the only person with access to the server and I haven't moved or delete it anything except for the backups that i have to put on to another server for security.

please se the results and thanks for your time.:
View attachment 2885

Hi,
if you are the only person with access to the server, you must move the directory... (do you use gui-tools to have an "filemanager access" to the pve-node?)
in the ps-output the old right place is in the command and now they are below /var/cache/lib/ which is not existend in an normal installation!
Is this a standard installation?

Anyway - look which you have moved too with
Code:
find /var/cache/lib
If you move the files to the right place, they will appear in the gui.

Udo
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Udo;
sorry for the late response.....
they are under /var/cache/lib/ but i can not move them there is no space, i can understand that I could moved them by mistake, but why my drives show that size is 95gb if just 1 vm is 450gb?. also i cant move them becouse it says there is no space left, something is happening to the structure of the hard drives i think, please see the print screen, and thanks again for your help...
OR..... what can I edit in order for proxmox to view the new location as valid in order to be able to do a backup of the machines and do complete new server?



hd space.jpg
 
Last edited:
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Udo;
sorry for the late response.....
they are under /var/cache/lib/ but i can not move them there is no space, i can understand that I could moved them by mistake, but why my drives show that size is 95gb if just 1 vm is 450gb?. also i cant move them becouse it says there is no space left, something is happening to the structure of the hard drives i think, please see the print screen, and thanks again for your help...
OR..... what can I edit in order for proxmox to view the new location as valid in order to be able to do a backup of the machines and do complete new server?



View attachment 2896
Hi,
your df-output is not right, because you demaged the mount-point /var/lib/vz.

I assume you move the whole /var/lib to /var/spool/lib?

Please provide following info - but please stop to send screenshots - put the ascii-content in the post (copy paste between an [ code ] [ /code ] block (without spaces)).
Code:
find /var/lib
find /var/spool/lib
Udo
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

thanks
 
Last edited:
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Hi,
your df-output is not right, because you demaged the mount-point /var/lib/vz.

I assume you move the whole /var/lib to /var/spool/lib?

Please provide following info - but please stop to send screenshots - put the ascii-content in the post (copy paste between an [ code ] [ /code ] block (without spaces)).
Code:
find /var/lib
find /var/spool/lib
Udo

Code:
[COLOR=#333333]root@unlimitedelectro:/var/cache/lib# find /var/lib[/COLOR]
[COLOR=#333333]/var/lib[/COLOR]
[COLOR=#333333]/var/lib/g[/COLOR]
[COLOR=#333333]/var/lib/g/template[/COLOR]
[COLOR=#333333]/var/lib/g/template/cache[/COLOR]
[COLOR=#333333]/var/lib/g/template/iso[/COLOR]
[COLOR=#333333]/var/lib/g/dump[/COLOR]
[COLOR=#333333]/var/lib/g/images[/COLOR]
[COLOR=#333333]/var/lib/g/private[/COLOR]
[COLOR=#333333]/var/lib/vz[/COLOR]
[COLOR=#333333]/var/lib/vz/template[/COLOR]
[COLOR=#333333]/var/lib/vz/template/cache[/COLOR]
[COLOR=#333333]/var/lib/vz/template/iso[/COLOR]
[COLOR=#333333]/var/lib/vz/dump[/COLOR]
[COLOR=#333333]/var/lib/vz/images[/COLOR]
[COLOR=#333333]/var/lib/vz/images/500[/COLOR]
[COLOR=#333333]/var/lib/vz/images/500/vm-500-disk-2.raw[/COLOR]
[COLOR=#333333]/var/lib/vz/images/110[/COLOR]
[COLOR=#333333]/var/lib/vz/private[/COLOR]
[COLOR=#333333]root@unlimitedelectro:/var/cache/lib#[/COLOR]


[COLOR=#333333]root@unlimitedelectro:/var/cache/lib# find /var/cache/lib[/COLOR]
[COLOR=#333333]/var/cache/lib/libuuid[/COLOR]
[COLOR=#333333]/var/cache/lib/ntp[/COLOR]
[COLOR=#333333]/var/cache/lib/ntp/ntp.drift[/COLOR]
[COLOR=#333333]/var/cache/lib/qemu-server[/COLOR]
[COLOR=#333333]/var/cache/lib/qemu-server/pve-bridge[/COLOR]
[COLOR=#333333]/var/cache/lib/qemu-server/qmupdate[/COLOR]
[COLOR=#333333]/var/cache/lib/vz[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/root[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/110[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/110/vm-110-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/105[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/105/vm-105-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/100[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/100/vm-100-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/501[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/501/vm-501-disk-2.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/222[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/222/vm-222-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/dump[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/lock[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/private[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template/qemu[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template/iso[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template/cache[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/lost+found[/COLOR]
[COLOR=#333333]/var/cache/lib/dhcp[/COLOR]
[COLOR=#333333]/var/cache/lib/dhcp/dhclient.leases[/COLOR]
[COLOR=#333333]/var/cache/lib/vim[/COLOR]
[COLOR=#333333]/var/cache/lib/vim/addons[/COLOR]
[COLOR=#333333]/var/cache/lib/pam[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/session[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/password[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/session-noninteractive[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/auth[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/account[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/seen
[/COLOR]
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Code:
[COLOR=#333333]root@unlimitedelectro:/var/cache/lib# find /var/lib[/COLOR]
[COLOR=#333333]/var/lib[/COLOR]
[COLOR=#333333]/var/lib/g[/COLOR]
[COLOR=#333333]/var/lib/g/template[/COLOR]
[COLOR=#333333]/var/lib/g/template/cache[/COLOR]
[COLOR=#333333]/var/lib/g/template/iso[/COLOR]
[COLOR=#333333]/var/lib/g/dump[/COLOR]
[COLOR=#333333]/var/lib/g/images[/COLOR]
[COLOR=#333333]/var/lib/g/private[/COLOR]
[COLOR=#333333]/var/lib/vz[/COLOR]
[COLOR=#333333]/var/lib/vz/template[/COLOR]
[COLOR=#333333]/var/lib/vz/template/cache[/COLOR]
[COLOR=#333333]/var/lib/vz/template/iso[/COLOR]
[COLOR=#333333]/var/lib/vz/dump[/COLOR]
[COLOR=#333333]/var/lib/vz/images[/COLOR]
[COLOR=#333333]/var/lib/vz/images/500[/COLOR]
[COLOR=#333333]/var/lib/vz/images/500/vm-500-disk-2.raw[/COLOR]
[COLOR=#333333]/var/lib/vz/images/110[/COLOR]
[COLOR=#333333]/var/lib/vz/private[/COLOR]
[COLOR=#333333]root@unlimitedelectro:/var/cache/lib#[/COLOR]


[COLOR=#333333]root@unlimitedelectro:/var/cache/lib# find /var/cache/lib[/COLOR]
[COLOR=#333333]/var/cache/lib/libuuid[/COLOR]
[COLOR=#333333]/var/cache/lib/ntp[/COLOR]
[COLOR=#333333]/var/cache/lib/ntp/ntp.drift[/COLOR]
[COLOR=#333333]/var/cache/lib/qemu-server[/COLOR]
[COLOR=#333333]/var/cache/lib/qemu-server/pve-bridge[/COLOR]
[COLOR=#333333]/var/cache/lib/qemu-server/qmupdate[/COLOR]
[COLOR=#333333]/var/cache/lib/vz[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/root[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/110[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/110/vm-110-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/105[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/105/vm-105-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/100[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/100/vm-100-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/501[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/501/vm-501-disk-2.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/222[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/images/222/vm-222-disk-1.raw[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/dump[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/lock[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/private[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template/qemu[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template/iso[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/template/cache[/COLOR]
[COLOR=#333333]/var/cache/lib/vz/lost+found[/COLOR]
[COLOR=#333333]/var/cache/lib/dhcp[/COLOR]
[COLOR=#333333]/var/cache/lib/dhcp/dhclient.leases[/COLOR]
[COLOR=#333333]/var/cache/lib/vim[/COLOR]
[COLOR=#333333]/var/cache/lib/vim/addons[/COLOR]
[COLOR=#333333]/var/cache/lib/pam[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/session[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/password[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/session-noninteractive[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/auth[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/account[/COLOR]
[COLOR=#333333]/var/cache/lib/pam/seen
[/COLOR]
Hi,
you have vm 500 created, after you moved /var/lib to /var/spool/lib.
So the harddisk-file is in (pve recreate the missing directory-structure like template/images) /var/lib/vz/images/500

If you remount /dev/pve/data to the right position, the file isn't accessible anymore.
To solve the issue you can do this:
Code:
# move the vm-disk 500 to an save place (below /var - is on the root-partition like now):
# shutdown vm 500!!
mv /var/lib/vz/images/500 /var

# mv lib back - in one line, bacause pve recreate /var/lib/vz
cd /var
mv lib lib.old; mv cache/lib .

# check with following commands
mount | grep var
df -h /
df -h /var/lib/vz

# if /var/lib/vz is the right partition (and different usage as root) move VM 500 back
mv /var/500 /var/lib/vz/images/

#control if you see all VMs/Contend in the gui - than start VM 500
If all work, you should do an reboot in the next time (and update your host!).

Udo
 
Last edited:
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Hi,
you have vm 500 created, after you moved /var/lib to /var/spool/lib.
So the harddisk-file is in (pve recreate the missing directory-structure like template/images) /var/lib/vz/images/500

If you remount /dev/pve/data to the right position, the file isn't accessible anymore.
To solve the issue you can do this:
Code:
# move the vm-disk 500 to an save place (below /var - is on the root-partition like now):
# shutdown vm 500!!
mv /var/lib/vz/images/500 /var

# mv lib back - in one line, bacause pve recreate /var/lib/vz
cd /var
mv lib lib.old; mv cache/lib .

# check with following commands
mount | grep var
df -h /
df -h /var/lib/vz

# if /var/lib/vz is the right partition (and different usage as root) move VM 500 back
mv /var/500 /var/lib/vz/images/

#control if you see all VMs/Contend in the gui - than start VM 500
If all work, you should do an reboot in the next time (and update your host!).

Udo

Code:
Udo;
Please excuse my ingorance on linux command line, some how I did not move them to the correct location, again thanks for your patience and help.
regards.

/var/lib/cache/lib/vz/images
/var/lib/cache/lib/vz/images/110
/var/lib/cache/lib/vz/images/110/vm-110-disk-1.raw
/var/lib/cache/lib/vz/images/105
/var/lib/cache/lib/vz/images/105/vm-105-disk-1.raw
/var/lib/cache/lib/vz/images/dump
/var/lib/cache/lib/vz/images/100
/var/lib/cache/lib/vz/images/100/vm-100-disk-1.raw
/var/lib/cache/lib/vz/images/501
/var/lib/cache/lib/vz/images/501/vm-501-disk-2.raw
/var/lib/cache/lib/vz/images/222
/var/lib/cache/lib/vz/images/222/vm-222-disk-1.raw
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Code:
Udo;
Please excuse my ingorance on linux command line, some how I did not move them to the correct location, again thanks for your patience and help.
regards.

/var/lib/cache/lib/vz/images
/var/lib/cache/lib/vz/images/110
/var/lib/cache/lib/vz/images/110/vm-110-disk-1.raw
/var/lib/cache/lib/vz/images/105
/var/lib/cache/lib/vz/images/105/vm-105-disk-1.raw
/var/lib/cache/lib/vz/images/dump
/var/lib/cache/lib/vz/images/100
/var/lib/cache/lib/vz/images/100/vm-100-disk-1.raw
/var/lib/cache/lib/vz/images/501
/var/lib/cache/lib/vz/images/501/vm-501-disk-2.raw
/var/lib/cache/lib/vz/images/222
/var/lib/cache/lib/vz/images/222/vm-222-disk-1.raw

Hi,
simply do all my steps I wrote in the posting before (with all characters - also an dot is very very important).

you have now moved /var/cache to /var/lib/cache

Back with (if /var/cache was recreated the fit commen rename it - so perhaps you get there an error message)
Code:
mv  /var/cache /var/cache.old
mv /var/lib/cache /var/
after that it's sould look like before and you can move /var/cache/lib again
Code:
mv /var/lib /var/lib.old2; mv /var/cache/lib /var/
Udo
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Hi,
simply do all my steps I wrote in the posting before (with all characters - also an dot is very very important).

you have now moved /var/cache to /var/lib/cache

Back with (if /var/cache was recreated the fit commen rename it - so perhaps you get there an error message)
Code:
mv  /var/cache /var/cache.old
mv /var/lib/cache /var/
after that it's sould look like before and you can move /var/cache/lib again
Code:
mv /var/lib /var/lib.old2; mv /var/cache/lib /var/
Udo
Code:
Udo;
all images are under /var/lib/lib/vz, i am trying to move vz folder to /var/lib/ with the following command line:
root@unlimitedelectro:/var/lib/lib# mv -f vz  /var/lib/
mv: cannot move `vz' to `/var/lib/vz': Device or resource busy
root@unlimitedelectro:/var/lib/lib#

do i have to stop the vms that are running? if i do will i loose the data or the data still been saved to the image file even if they are not on the correct folder?
thanks.
 
Re: Unable to list my VM's or Backups, not listed and not on the directory, plesae he

Code:
Udo;
all images are under /var/lib/lib/vz, i am trying to move vz folder to /var/lib/ with the following command line:
root@unlimitedelectro:/var/lib/lib# mv -f vz  /var/lib/
mv: cannot move `vz' to `/var/lib/vz': Device or resource busy
root@unlimitedelectro:/var/lib/lib#

do i have to stop the vms that are running? if i do will i loose the data or the data still been saved to the image file even if they are not on the correct folder?
thanks.
Hi,
why you don't copy and paste the commands I wrote???

I can't help you if you do other things...

Here is my last try.

Move the "normal" /var/lib to an save place:
Code:
mv /var/lib/lib /var/lib.org
Now do the following in one line, because pve recreate the folder if you are not fast enough!!
Code:
mv /var/lib /var/lib.old3; mv /var/lib.org /var/
Udo
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!