• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Watchdog extension disk moniroting error - "is not block device"

EveMauta

Basic Pleskian
Hi,
I'm using watchdog extention to check disk space of the server:
disk_status__notcheck.gif
/dev/mapper/vg01-lv_root /
-
-
-
disk_status__normal.gif
/dev/sda1 /boot
80%
80%
-


As filesystem are lvm2, extention give me an error:
"Erreur: The /dev/mapper/vg01-lv_root is not block device"

In cli same problem:
/usr/local/psa/admin/bin/modules/watchdog/wd --monit-disk=/dev/mapper/vg01-lv_root
The /dev/mapper/vg01-lv_root is not block device

Have you some idea how to set up this check ?

Best regards
Vince

PS:
df -vh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg01-lv_root 38G 3,2G 33G 9% /
tmpfs 935M 12K 935M 1% /dev/shm
/dev/sda1 477M 71M 381M 16% /boot

[root@assprem ~]# lvdisplay
--- Logical volume ---
LV Path /dev/vg01/lv_root
LV Name lv_root
VG Name vg01
LV UUID A3lbwC-JaIV-doXD-iJK3-lj3i-biug-ByLe0X
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2014-06-04 09:36:01 +0100
LV Status available
# open 1
LV Size 38,50 GiB
Current LE 9857
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/vg01/lv_swap
LV Name lv_swap
VG Name vg01
LV UUID 84fxkS-CSFt-5Wcd-KGh8-G84g-xjCG-ZBnYtb
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2014-06-04 09:36:05 +0100
LV Status available
# open 1
LV Size 1,00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
 
Hi,
Anyone have some idea about this ?
Does extention are suported by Parallels/Odin ?
Best regards
Vince
 
I've also experienced this issue. As in the post you had above you can workaround it by editing the database directly. I'm not exactly sure why Parallels doesn't fix this.
 
Your right !
Thanks

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e 'INSERT INTO `module_watchdog_disk` VALUES ("","/dev/mapper/vg01-lv_root",80,"percent",80,"percent",NULL);'

/usr/local/psa/admin/bin/modules/watchdog/wd --disk-status=/dev/mapper/vg01-lv_root
normal
 
Could we have a official answer about this please ?
(lvdisplay could be used too, to check if it's a device to be checked...).
Vince
 
Back
Top