OpenVZ Forum


Home » General » Support » cannot remove a coppy of root.hdd
cannot remove a coppy of root.hdd [message #52020] Tue, 28 April 2015 09:42
kuene is currently offline  kuene
Messages: 4
Registered: May 2007
Junior Member
hello
I have copied a ploop device from backup:
cp -a root.hdd/ /tmp

the I have mounted it:
mount -t ploop  root.hdd/DiskDescriptor.xml /mnt/
then I have copied out my files.

the I have unmounted it:
umount /mnt


then I wanted to delete the folder:
rm -r /tmp/root.hdd
rm: cannot remove `/tmp/root.hdd_/root.hdd.{75ff4d1c-1adf-4df1-915b-462e5011fdff}': Operation not permitted
rm: cannot remove `/tmp/root.hdd_/root.hdd': Operation not permitted

when I try to mount it again:
I copy the description files:
cp -a /virtual/vz/private/2035/root.hdd/D* root.hdd

and then:
mount -t ploop  root.hdd/DiskDescriptor.xml /mnt/
Error in ploop_mount_image (ploop.c:1882): Image /tmp/root.hdd/root.hdd already used by device /dev/ploop27192
ploop mount -m /mnt /tmp/root.hdd/DiskDescriptor.xml command failed

how can I delete the folder /tmp/root.hdd ?

Thanks for your help!

[Updated on: Tue, 28 April 2015 09:44]

Report message to a moderator

Previous Topic: Ploop: suspend -> dump -> snapshot -> resume: is it as efficient as "vzctl snapshot <ctid>" ?
Next Topic: VSwap and dump creation
Goto Forum:
  


Current Time: Sun Aug 17 17:14:55 GMT 2025

Total time taken to generate the page: 0.28962 seconds