storage.cfg

tylerdurden81

Member
Jan 8, 2011
124
0
16
My storage.cfg is blank now... on all servers in the cluster. How can i repair my storage cfg? (i dont know how it got erased)
 
find out why - maybe you tried to store to big backups here?
 
I am more concered why i lost all of my Storage info i have been trying to restore the LVM data but still cant get the VM's working. I did make a mistake when i was creating a back up job i used the local directory instead of the NFS share.. also var/log says it has 17g worth of files.. but i dont see any files that are above a few k
 
I am more concered why i lost all of my Storage info i have been trying to restore the LVM data but still cant get the VM's working. I did make a mistake when i was creating a back up job i used the local directory instead of the NFS share.. also var/log says it has 17g worth of files.. but i dont see any files that are above a few k

Yes, disappearing files normally points to hardware failure on the disk subsystems. I suggest you investigate more, if one file is gone its quite possible that also others are gone also - I would do a deep hardware check and also a re-installation.

do you got a reliable hardware raid controller with BBU (recommended as always) or do you run on a single disk?
 
Harddisks are fine.. i was able to restore the LVM for the ISCSi and NFS shares to get the VMS up and running... but i can not figure out why the pve-root is at 100%.
 
proxmoxscreen1.pngproxmoscreen.png
Here are some screen shoots ... i dunno how the hard disk got full.... I thought i had by accident used local storage for backups but i didnt .. i used the wrong NFS share wich got full .... but i don't know why that would cause this.


pvscan
PV /dev/sdc VG openfiler3 lvm2 [1.16 TB / 1.16 TB free]
PV /dev/sdb VG OPENFILER lvm2 [1.80 TB / 420.18 GB free]
PV /dev/sda2 VG pve lvm2 [74.00 GB / 4.00 GB free]
Total: 3 [3.04 TB] / in use: 3 [3.04 TB] / in no VG: 0 [0 ]

df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/pve-root 19094236 18833092 0 100% / <------------
tmpfs 993472 0 993472 0% /lib/init/rw
udev 10240 844 9396 9% /dev
tmpfs 993472 0 993472 0% /dev/shm
/dev/mapper/pve-data 49033532 5995024 43038508 13% /var/lib/vz
/dev/sda1 516040 47752 442076 10% /boot
overflow 1024 60 964 6% /tmp
192.168.2.120:/mnt/isoimages/images/ISO
137885952 15940096 121945856 12% /mnt/pve/Backups
192.168.2.89:/mnt/backups/proxmoxbackups/1
3906863104 282214272 3624648832 8% /mnt/pve/Backups-192.168.2.89
 
Ok the Kern.log is 6.1 gig in size.... is this normal?
Hi,
i would say no.

1. What is the content (more /var/log/kern.log )?
2. It seems that your logrotate don't work ( /etc/logrotate.d/rsyslog ) - is this a normal pve-installation?

To get space "mv kern.log kern.log.old; /etc/init.d/rsyslog restart" after that mv kern.log to another partition (or delete if not interesting; but save the last lines like "tail -1000 kern.log.old > kern.log.save")

To find big files ncdu is a nice tool ( "apt-get install ncdu") easy "ncdu " and select one filesystem (X) and use /.

Udo
 
Last edited:
Thanks for your help... i deleted the large log files .. but it still says 100% i am going to use the utility you showed:) Thanks!
 
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help
--- / -------------------------------------------------------------------------------------------------------------------------------------------------------
451.6MB [##########] /usr
375.0MB [######## ] /var
236.1MB [##### ] /lib
14.3MB [ ] /root
9.1MB [ ] /etc
8.7MB [ ] /emul
5.7MB [ ] /sbin
5.1MB [ ] /bin
36.0kB [ ] /mnt
28.0kB [ ] /home
e 16.0kB [ ] /lost+found
e 4.0kB [ ] /media
e 4.0kB [ ] /opt
e 4.0kB [ ] /selinux
e 4.0kB [ ] /srv
4.0kB [ ] webmin-setup.out
4.0kB [ ] .rnd
@ 0.0 B [ ] lib32
@ 0.0 B [ ] lib64
> 0.0 B [ ] /boot
> 0.0 B [ ] /dev
> 0.0 B [ ] /proc
> 0.0 B [ ] /sys
> 0.0 B [ ] /tmp

.. Hmm this is what i have been getting just going through things... i dont see anything huge here
 
Ok after restarting the log daemon everything is showing up how it should


Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/pve-root 19094236 1305684 16818620 8% /
tmpfs 993472 0 993472 0% /lib/init/rw
udev 10240 844 9396 9% /dev
tmpfs 993472 0 993472 0% /dev/shm
/dev/mapper/pve-data 49033532 5995076 43038456 13% /var/lib/vz
/dev/sda1 516040 47752 442076 10% /boot
overflow 1024 80 944 8% /tmp
192.168.2.120:/mnt/isoimages/images/ISO
137885952 15940096 121945856 12% /mnt/pve/Backups
192.168.2.89:/mnt/backups/proxmoxbackups/1
3906863104 282214272 3624648832 8% /mnt/pve/Backups-192.168.2.89