Is this is potential bug in vzdump/vzrestore?
Here is what I did:
Install sl6 precreated template from openvz.org
vzctl enter 101
- yum update
- yum install iotop
- exit
vzctl enter 101
- iotop [works fine]
- exit
vzdump --stop --dumpdir /root 101
vzctl destroy 101
vzrestore /root/vzdump-openvz-101-2011_08_25-05_03_20.tar 101
INFO: restore openvz backup '/root/vzdump-openvz-101-2011_08_25-05_03_20.tar' using ID 101
INFO: extracting archive '/root/vzdump-openvz-101-2011_08_25-05_03_20.tar'
INFO: Total bytes read: 621721600 (593MiB, 17MiB/s)
INFO: extracting configuration to '/etc/vz/conf/101.conf'
INFO: restore openvz backup '/root/vzdump-openvz-101-2011_08_25-05_03_20.tar' successful
vzctl start 101
vzctl enter 101
- ping google.com [works fine]
- vim [works fine]
- yum update [works fine]
- top [works fine]
- iotop
[root@mycontainer /]# iotop
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in <module>
main()
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 541, in main
main_loop()
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 531, in <lambda>
main_loop = lambda: run_iotop(options)
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 446, in run_iotop
return curses.wrapper(run_iotop_window, options)
File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 437, in run_iotop_window
taskstats_connection = TaskStatsNetlink(options)
File "/usr/lib/python2.6/site-packages/iotop/data.py", line 113, in __init__
self.family_id = controller.get_family_id('TASKSTATS')
File "/usr/lib/python2.6/site-packages/iotop/genetlink.py", line 54, in get_family_id
m = self.conn.recv()
File "/usr/lib/python2.6/site-packages/iotop/netlink.py", line 190, in recv
raise err
OSError: Netlink error: No such file or directory (2)
[root@mycontainer /]# exit
Not sure why iotop doesn't work in a container restored with vzrestore. I tried also a lot of other commands, but so far only iotop showed a problem.
I also tried to restore with a different VMID, but same problem.
Any idea what the problem could be?
Here is what I did:
Install sl6 precreated template from openvz.org
vzctl enter 101
- yum update
- yum install iotop
- exit
vzctl enter 101
- iotop [works fine]
- exit
vzdump --stop --dumpdir /root 101
vzctl destroy 101
vzrestore /root/vzdump-openvz-101-2011_08_25-05_03_20.tar 101
INFO: restore openvz backup '/root/vzdump-openvz-101-2011_08_25-05_03_20.tar' using ID 101
INFO: extracting archive '/root/vzdump-openvz-101-2011_08_25-05_03_20.tar'
INFO: Total bytes read: 621721600 (593MiB, 17MiB/s)
INFO: extracting configuration to '/etc/vz/conf/101.conf'
INFO: restore openvz backup '/root/vzdump-openvz-101-2011_08_25-05_03_20.tar' successful
vzctl start 101
vzctl enter 101
- ping google.com [works fine]
- vim [works fine]
- yum update [works fine]
- top [works fine]
- iotop
[root@mycontainer /]# iotop
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in <module>
main()
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 541, in main
main_loop()
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 531, in <lambda>
main_loop = lambda: run_iotop(options)
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 446, in run_iotop
return curses.wrapper(run_iotop_window, options)
File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 437, in run_iotop_window
taskstats_connection = TaskStatsNetlink(options)
File "/usr/lib/python2.6/site-packages/iotop/data.py", line 113, in __init__
self.family_id = controller.get_family_id('TASKSTATS')
File "/usr/lib/python2.6/site-packages/iotop/genetlink.py", line 54, in get_family_id
m = self.conn.recv()
File "/usr/lib/python2.6/site-packages/iotop/netlink.py", line 190, in recv
raise err
OSError: Netlink error: No such file or directory (2)
[root@mycontainer /]# exit
Not sure why iotop doesn't work in a container restored with vzrestore. I tried also a lot of other commands, but so far only iotop showed a problem.
I also tried to restore with a different VMID, but same problem.
Any idea what the problem could be?