Hello everyone,
I was attempting to format a couple of unused ZFS drives by using fdisk (g then w), and just like it warns you not to, I wrote a blank GPT partition to the drive that stores my LXC images. This drive was originally partitioned with LVM, and all that seems to be intact. I only have one container that I care about, and thankfully it's still running with all the data accessible. What can I do to get this container back into a state where shutting it down won't delete all my data?
Some more information. Running "lsof | grep deleted" yields the following results:
Please let me know what additional information is needed. I've done some research but it seems to be meant for KVM VMs, so I wanted to see if there was a way specifically for LXC.
Thanks!
Caleb
I was attempting to format a couple of unused ZFS drives by using fdisk (g then w), and just like it warns you not to, I wrote a blank GPT partition to the drive that stores my LXC images. This drive was originally partitioned with LVM, and all that seems to be intact. I only have one container that I care about, and thankfully it's still running with all the data accessible. What can I do to get this container back into a state where shutting it down won't delete all my data?
Some more information. Running "lsof | grep deleted" yields the following results:
Code:
root@mercury:~# lsof | grep deleted
none 929 root txt REG 0,1 16840 30261 / (deleted)
lxc-start 1240 root 14u REG 253,0 0 13 /var/lib/lxc/100/rootfs/.lxc-keep (deleted)
smbd 1972 root 2w REG 253,0 1049107 524754 /var/log/samba/samba.log.old (deleted)
smbd 1972 root 9w REG 253,0 1049107 524754 /var/log/samba/samba.log.old (deleted)
cleanupd 1974 root 2w REG 253,0 1046790 525899 /var/log/samba/samba.log.old (deleted)
cleanupd 1974 root 22w REG 253,0 1046790 525899 /var/log/samba/samba.log.old (deleted)
Please let me know what additional information is needed. I've done some research but it seems to be meant for KVM VMs, so I wanted to see if there was a way specifically for LXC.
Thanks!
Caleb