OpenVZ Forum


Home » General » Support » pcompact can't see additional disks (pcompact not shrinking additional disks)
pcompact can't see additional disks [message #52975] Mon, 11 September 2017 09:18 Go to next message
mangust is currently offline  mangust
Messages: 34
Registered: April 2008
Location: Spain
Member
From: *red.226.225.212.procono.es
[root@node01 ~]# /usr/sbin/pcompact -t 2h
Inspect 46c9bfd6-b610-4f30-9567-ebb6ca149790
Inspect /vz/private/1716/root.hdd/DiskDescriptor.xml
Disk: /vz/private/1716/root.hdd/DiskDescriptor.xml
ploop=10240MB image=953MB data=955MB balloon=0MB
Rate: -0.0 (threshold=10)
Inspect e3df9275-fc46-4791-8631-81b326398141
Inspect /vz/private/1717/root.hdd/DiskDescriptor.xml
Disk: /vz/private/1717/root.hdd/DiskDescriptor.xml
ploop=10240MB image=955MB data=955MB balloon=0MB
Rate: -0.0 (threshold=10)
Inspect d7c09fd4-bd0a-4a58-9898-bd046a6ae6f1
Mounting the CT...
The CT has been successfully mounted.
Inspect /vz/private/820/root.hdd/DiskDescriptor.xml
Disk: /vz/private/820/root.hdd/DiskDescriptor.xml
ploop=103680MB image=46529MB data=47732MB balloon=0MB
Rate: -1.2 (threshold=10)
Unmounting the CT...
The CT has been successfully unmounted.
Inspect 56337e46-c8e9-414a-bf7e-df9836b0f10c
Mounting the CT...
The CT has been successfully mounted.
Inspect /vz/private/7104/root.hdd/DiskDescriptor.xml
Disk: /vz/private/7104/root.hdd/DiskDescriptor.xml
ploop=5184MB image=1044MB data=1179MB balloon=0MB
Rate: -2.6 (threshold=10)
Unmounting the CT...
The CT has been successfully unmounted.
Inspect 64380d60-9efc-4460-ac84-3e0f10273c09
Inspect /vz/private/1714/root.hdd/DiskDescriptor.xml
Disk: /vz/private/1714/root.hdd/DiskDescriptor.xml
ploop=5760MB image=1888MB data=1460MB balloon=0MB
Rate: 7.4 (threshold=10)
Inspect 27e52ed3-f493-42e4-944c-6a1b901153fd
Inspect /vz/private/1715/root.hdd/DiskDescriptor.xml
Disk: /vz/private/1715/root.hdd/DiskDescriptor.xml
ploop=5760MB image=1901MB data=1963MB balloon=0MB
Rate: -1.1 (threshold=10)
Inspect b2ddac4f-2f96-405f-a56b-b71bc4f6b558
Inspect /vz/private/1712/root.hdd/DiskDescriptor.xml
Disk: /vz/private/1712/root.hdd/DiskDescriptor.xml
ploop=10240MB image=2697MB data=2716MB balloon=0MB
Rate: -0.2 (threshold=10)
Inspect /vz/private/1712/data.hdd/DiskDescriptor.xml
Disk: /vz/private/1712/data.hdd/DiskDescriptor.xml
Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop38407
Failed to get discard stat: Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop38407
Inspect /vz/private/1712/var.hdd/DiskDescriptor.xml
Disk: /vz/private/1712/var.hdd/DiskDescriptor.xml
Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop41532
Failed to get discard stat: Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop41532
Inspect /vz/private/1712/var_log.hdd/DiskDescriptor.xml
Disk: /vz/private/1712/var_log.hdd/DiskDescriptor.xml
Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop45088
Failed to get discard stat: Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop45088
Inspect /vz/private/1712/var_log_frafos_cdr.hdd/DiskDescriptor.xml
Disk: /vz/private/1712/var_log_frafos_cdr.hdd/DiskDescriptor.xml
Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop51635
Failed to get discard stat: Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop51635
Inspect /vz/private/1712/var_lib_mysql.hdd/DiskDescriptor.xml
Disk: /vz/private/1712/var_lib_mysql.hdd/DiskDescriptor.xml
Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop61903
Failed to get discard stat: Error in get_dev_and_mnt (balloon.c:1167): Unable to find mount point for /dev/ploop61903
Inspect 63ec3aa3-2b48-4c81-baff-35e7f45afa86
Inspect /vz/private/1713/root.hdd/DiskDescriptor.xml
Disk: /vz/private/1713/root.hdd/DiskDescriptor.xml
ploop=10240MB image=928MB data=1040MB balloon=0MB
Rate: -1.1 (threshold=10)

Should it look for /dev/ploop51635p1 instead of /dev/ploop51635 ?
Re: pcompact can't see additional disks [message #52977 is a reply to message #52975] Mon, 11 September 2017 10:02 Go to previous messageGo to next message
mangust is currently offline  mangust
Messages: 34
Registered: April 2008
Location: Spain
Member
From: *red.226.225.212.procono.es
Further investigation show:

[root@node01 ~]# ploop-balloon discard -d /dev/ploop45088 --stat
Unable to find mount point for /dev/ploop45088
Usage: ploop-balloon discard {-d DEVICE | -m MOUNT_POINT | DiskDescriptor.xml}
{ [--automount] [--to-free SIZE] [--min-block MIN_SIZE]
[--defrag] | [--stat] }
DEVICE := ploop device, e.g. /dev/ploop0
MOUNT_POINT := path where fs living on ploop device mounted to
SIZE := NUMBER[KMGT] (maximum space to free)
MIN_SIZE := NUMBER[KMGT] (minimum size of a linear slice to be freed)
Action: discard unused blocks from the image.

[root@node01 ~]# ploop-balloon discard -d /dev/ploop45088 -m /vz/root/1712/var/log --stat
Balloon size: 0MB
Data size: 2716MB
Ploop size: 10240MB
Image size: 4242MB

I wonder how it looks for mount? I can't see any in /proc/mounts

Also what is the best way to check available space inside without logging in if I can't see mounts?

Re: pcompact can't see additional disks [message #52978 is a reply to message #52977] Mon, 11 September 2017 10:45 Go to previous messageGo to next message
mangust is currently offline  mangust
Messages: 34
Registered: April 2008
Location: Spain
Member
From: *red.226.225.212.procono.es
vzctl mount <veid>
seems mounting all drives including additional ploops and then ploops into container primary mount point. However there is no way see those mount till you start a container.

Re: pcompact can't see additional disks [message #52981 is a reply to message #52978] Mon, 11 September 2017 12:29 Go to previous message
mangust is currently offline  mangust
Messages: 34
Registered: April 2008
Location: Spain
Member
From: *red.226.225.212.procono.es

I can resize root filesystem, but not additional drives:
[root@node01 ~]# ploop resize -s 10G /vz/private/1712/root.hdd/DiskDescriptor.xml
dumpe2fs 1.42.9 (28-Dec-2013)
Changing balloon size old_size=5203034112 new_size=0
Successfully truncated balloon from 5203034112 to 0 bytes
[root@node01 ~]# ploop resize -s 10G /vz/private/1712/var.hdd/DiskDescriptor.xml
Error in ploop_mount_fs (ploop.c:1476): Can't stat balloon file /vz/private/1712/var.hdd/root.hds.mnt/.balloon-c3a5ae3d-ce7f -43c4-a1ea-c61e2b4504e8: No such file or directory
Error in ploop_mount_fs (ploop.c:1497): Can't mount file system (dev=/dev/ploop41532p1 target=/vz/private/1712/var.hdd/root.hds.mnt fstype=ext4 flags=0 data=): No such file or directory

I think I need to write bug report....


Previous Topic: yum update SPICE_SERVER_0.12.5
Next Topic: Debian 8 install hangs; config and/or dialog?
Goto Forum:
  


Current Time: Tue Dec 12 21:39:31 GMT 2017