Rene C. <mailto:ope...@dokbua.com>
Wednesday, January 21, 2015 6:47 AM
I've gone through all containers and actually some of them work
correctly, only some are messed up like this.
Take for example this one:
[root@server22 ~]# vzctl restart 2201
Restarting container
Stopping container ...
Container was stopped
Unmounting file system at /vz/root/2201
Unmounting device /dev/ploop27939
Container is unmounted
Starting container...
Opening delta /vz/private/2201/root.hdd/root.hdd
Adding delta dev=/dev/ploop27939
img=/vz/private/2201/root.hdd/root.hdd (ro)
Adding delta dev=/dev/ploop27939
img=/vz/private/2201/root.hdd/root.hdd.{7a09b730-f2d6-4b21-b856-0bd6ca420a6e}
(rw)
Mounting /dev/ploop27939p1 at /vz/root/2201 fstype=ext4
data='balloon_ino=12,'
Container is mounted
Adding IP address(es): (redacted)
Setting CPU limit: 400
Setting CPU units: 50
Setting CPUs: 4
Container start in progress...
So apparently the ploop device should be /dev/ploop/27939.
Everything seems to work, inside the container this device is
referred by /proc/mounts
[root@server22 ~]# vzctl exec 2201 cat /proc/mounts
/dev/ploop27939p1 / ext4
rw,relatime,barrier=1,data=ordered,balloon_ino=12 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev tmpfs rw,relatime,mode=755 0 0
none /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
But the device is actually missing:
[root@server22 ~]# vzctl exec 2201 ls -l /dev/ploop27939p1
ls: /dev/ploop27939p1: No such file or directory
In fact, there doesn't seem to be ANY /dev/ploop devices in this
container
[root@server22 ~]# vzctl exec 2201 ls -l /dev/ploop*
ls: /dev/ploop18940: No such file or directory
ls: /dev/ploop18940p1: No such file or directory
ls: /dev/ploop26517: No such file or directory
ls: /dev/ploop26517p1: No such file or directory
ls: /dev/ploop27379: No such file or directory
ls: /dev/ploop27379p1: No such file or directory
ls: /dev/ploop27939: No such file or directory
ls: /dev/ploop27939p1: No such file or directory
ls: /dev/ploop50951: No such file or directory
ls: /dev/ploop50951p1: No such file or directory
ls: /dev/ploop52860: No such file or directory
ls: /dev/ploop52860p1: No such file or directory
ls: /dev/ploop58415: No such file or directory
ls: /dev/ploop58415p1: No such file or directory
Why does it shows devices when there are none present?
Obviously something is messed up, how can we fix this?
_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org>
https://lists.openvz.org/mailman/listinfo/users
Rene C. <mailto:ope...@dokbua.com>
Tuesday, January 20, 2015 12:04 PM
No takers?
_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org>
https://lists.openvz.org/mailman/listinfo/users
Rene C. <mailto:ope...@dokbua.com>
Tuesday, January 13, 2015 12:00 PM
Hm, well I removed the scripts, now I get the error:
repquota: Can't stat() mounted device /dev/ploop50951p1: No such
file or directory
I don't know if this is related at all, it kinda started after a
recent update to the latest kernel 2.6.32-042stab102.9
Now if I go into any container on this hardware node, the
/dev/ploopXXX devices listed in /proc/mount doesn't exist.
For example:
root@vps2202 [~]# cat /proc/mounts
/dev/ploop50951p1 / ext4
rw,relatime,barrier=1,stripe=256,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group
0 0
/dev/simfs /backup simfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev tmpfs rw,relatime,size=7992992k,nr_inodes=1998248 0 0
none /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
root@vps2202 [~]# ll /dev/ploop50951p1
/bin/ls: /dev/ploop50951p1: No such file or directory
There are quite a few /dev/ploop* devices under /dev, but not the
one linked in /proc/mounts.
This goes for all containers on this hardware node. Other nodes
not yet upgraded to the latest kernel do not have this problem.
Any ideas?
_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org>
https://lists.openvz.org/mailman/listinfo/users
Kir Kolyshkin <mailto:k...@openvz.org>
Friday, December 26, 2014 6:31 PM
No, the script (and its appropriate symlinks) is (re)created on
every start (actually mount)
of a simfs-based container. It is a conversion process that
should get rid of it, unfortunately
vzctl doesn't do it currently, so has to be done manually. Feel
free to file a bug for vzctl.
Kir.
_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org>
https://lists.openvz.org/mailman/listinfo/users
Scott Dowdle <mailto:dow...@montanalinux.org>
Friday, December 26, 2014 12:46 PM
Greetings,
----- Original Message -----
What I understood Kir to say was that the script was created as
part of the conversion process and should have been automatically
removed (like it was automaically created) after the conversion
was complete. Why it wasn't removed I don't know... but you can
back up the file somewhere else... and remove it... and if you
have problems... you could copy it back. I don't think any of
that would be necessary but who knows.
TYL,