Error Message.. did search and cant find any information. Illegal division by zero

tylerdurden81

Member
Jan 8, 2011
124
0
16
ERROR: Illegal division by zero at /usr/share/perl5/PVE/HTMLServices.pm line 154.

This is the error message i am getting.... Everything seems to be working as it should .. but wanted to know what it was.

This is on proxmox ve 1.7
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

Seems the capacity of the boot disk is not correctly detected. YOu created that VM via the web interface?
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

Yes from web. This error shows up next to master node under the cluster link.
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

What is the output of

# df -P /

on that node?
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

Filesystem 1024-blocks Used Available Capacity Mounted on
rootfs 19094236 1062300 17062004 6% /
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

Filesystem 1024-blocks Used Available Capacity Mounted on
rootfs 19094236 1062300 17062004 6% /

What is 'rootfs'? That does not look like a standard PVE installation?
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

This is a standard install from your ISO. It looks like it might be my ISCSI? THe size looks right.
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

This is a standard install from your ISO.

Are you sure. A standard install should show the following:

Code:
# df -P /
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/pve-root  99083868  18665068  75385636      20% /
Note: '/dev/mapper/pve-root' instead of your 'rootfs'


It looks like it might be my ISCSI? THe size looks right.

Size looks OK.
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

Yes i am 100% sure ... how can i fix it?
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
UUID=dd1817ac-1f63-44f0-8f77-31b6dc2fd54e /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
192.168.2.119:/ / nfs defaults
192.168.2.119:/ / nfs defaults
192.168.2.119:/mnt/isoimages/images/ISO/ /mnt/isoimages/images/ISO/ nfs defaults
192.168.2.119:/mnt/isoimages/ /mnt/isoimages/images/ISO/ nfs defaults
192.168.2.119:/ / nfs defaults
192.168.2.119:/ / nfs defaults
192.168.2.119:ISO /mnt/isoimages/ nfs defaults
192.168.2.119:ISO /mnt/isoimages/ nfs defaults
192.168.2.119:ISO/ /mnt/isoimages/ nfs defaults
192.168.2.119:/ISO/ /mnt/isoimages/ nfs defaults
192.168.2.119:/ISO/ /mnt/isoimages nfs defaults
192.168.2.119:/isoimages/images/ISO/ /mnt nfs defaults
192.168.2.119:/isoimages/images/ISO/ /mnt/ nfs defaults
192.168.2.119:isoimages/images/ISO/ /mnt/ nfs defaults
192.168.2.119:ISO /mnt/isoimages/images/ nfs defaults
192.168.2.119:/mnt/ /mnt/ nfs defaults
192.168.2.119:/mnt /mnt nfs defaults
192.168.2.119:/mnt /mnt nfs defaults
192.168.2.119:/mnt/isoimages/ /mnt/isoimages/ nfs defaults
https://192.168.2.119:/mnt/isoimages/ /mnt/isoimages/ nfs defaults
http://192.168.2.119:/mnt/isoimages/ /mnt/isoimages/ nfs defaults
192.168.2.119:/mnt/isoimages/ /mnt/isoimages/ nfs defaults




proxmox1:~# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
vm-101-disk-1 OPENFILER -wi-a- 30.00G
vm-101-disk-2 OPENFILER -wi-a- 200.00G
vm-102-disk-1 OPENFILER -wi-a- 30.00G
vm-103-disk-1 OPENFILER -wi-a- 30.00G
data pve -wi-ao 47.51G
root pve -wi-ao 18.50G
swap pve -wi-ao 4.00G
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

I have 2 NFS mounts i am using one for CD images and One For backups. I am not sure why there are so many.. i am not familiar enough with linux to know witch ones i need and ones i dont need :(
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

What is the output of

# pveversion -v
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

pve-manager: 1.7-10 (pve-manager/1.7/5323)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.7-9
pve-kernel-2.6.32-4-pve: 2.6.32-30
pve-kernel-2.6.35-1-pve: 2.6.35-9
qemu-server: 1.1-28
pve-firmware: 1.0-10
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-10
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.13.0-3
ksm-control-daemon: 1.0-4
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

Here is the out put of PVECA -l

CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---DISK
Illegal division by zero at /usr/bin/pveca line 115.
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

What is the output of

# md5sum /bin/df

and

# cat /proc/mounts
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

d4ff6aa26f575585943e0d4c4a511fb8 /bin/df

rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,relatime,size=10240k,mode=755 0 0
/dev/mapper/pve-root / ext3 rw,relatime,errors=remount-ro,barrier=0,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/mapper/pve-data /var/lib/vz ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/sda1 /boot ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
192.168.2.120:/mnt/isoimages/images/ISO /mnt/pve/Openfilerimages nfs rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=65535,timeo=600,retrans=2,sec=sys,mountport=65535,mountproto=,addr=192.168.2.120 0 0
192.168.2.120:/mnt/isoimages/images/backups /mnt/pve/Backups nfs rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=65535,timeo=600,retrans=2,sec=sys,mountport=65535,mountproto=,addr=192.168.2.120 0 0
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

/dev/pve/root / ext3 errors=remount-ro 0 1
192.168.2.119:/ / nfs defaults

You mount 2 fs on your /

Remove this line or mount it elsewhere :
192.168.2.119:/ / nfs defaults
 
Re: Error Message.. did search and cant find any information. Illegal division by zer

proxmox1:~# df -P /
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/pve-root 19094236 1331404 16792900 8% /


Ok this is the output of df -P / now.

I know what the problem was.. I had changed the I.P. Address of my NFS mounts when i moved my Cluster from the lab to the production Datacenter. Even though i had deleted the old NFS mounts from the web console they were still there. I deleted them from FSTAB and now all is fine.

This is the new FSTAB

# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
UUID=dd1817ac-1f63-44f0-8f77-31b6dc2fd54e /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0


Now what i dont understand is why the Old mounts were put here but the new ones are not?
 

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!