Difference between revisions of "OVZ: container "disappeared" fix"
Line 8: | Line 8: | ||
Take a look who use it and kill: | Take a look who use it and kill: | ||
− | lsof /vz/private/<CID>.tmp/ | + | #lsof /vz/private/<CID>.tmp/ |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | ||
tar 850690 root cwd DIR 8,3 4096 57544151 /vz/private/33224.tmp | tar 850690 root cwd DIR 8,3 4096 57544151 /vz/private/33224.tmp | ||
− | kill 850690 | + | #kill 850690 |
Make a backup somewhere first : | Make a backup somewhere first : | ||
− | cp -avr /vz/private/33224.tmp/ /tmp/CID_BCP/ | + | #cp -avr /vz/private/33224.tmp/ /tmp/CID_BCP/ |
And copy to the correct place: | And copy to the correct place: | ||
− | cp -avr /vz/private/33224.tmp/ /vz/private/33224/ | + | #cp -avr /vz/private/33224.tmp/ /vz/private/33224/ |
After that start container | After that start container | ||
− | vzctl start | + | #vzctl start |
"[[Category:Admin area]]" | "[[Category:Admin area]]" |
Latest revision as of 01:00, 26 June 2014
This issue could be detected in some cases after OS reinstall on VPS. Anyway this way show how to try to restore container in case of it's folder appears with .tmp
vzlist -a | grep <CID> #or by name anyway you can't find it
#ll /vz/private/ | grep <CID> drwx------ 3 root solusvm 4096 Jun 7 19:25 <CID>.tmp
Take a look who use it and kill:
#lsof /vz/private/<CID>.tmp/ COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME tar 850690 root cwd DIR 8,3 4096 57544151 /vz/private/33224.tmp #kill 850690
Make a backup somewhere first :
#cp -avr /vz/private/33224.tmp/ /tmp/CID_BCP/
And copy to the correct place:
#cp -avr /vz/private/33224.tmp/ /vz/private/33224/
After that start container
#vzctl start
""