Again running smartctl after all is said and done:
smartctl --all /dev/sda
ddrescue-smartctl-after-rescue.png ddrescue-smartctl-2.png
Yet an old drive in itself, I run the wheels off of them, and monitor regularly as anyone should.
Add tun device to LXC
Shutdown container:
Where 100 is the container ID
pct shutdown 100
Move into your container config file:
vi /etc/pve/lxc/100.conf
Add the following to the end of the file:
Type lthe letter i to edit in vi
i
Add the following into the file:
lxc.hook.autodev: /var/lib/lxc/100/tuntap
lxc.cgroup.devices.allow = c 10:200 rwm
Save changes and exit:
Tap esc key to leave edit insert mode:
Then, Write and Quit saving the changes
:wq
Create the tun device:
vi /var/lib/lxc/100/tuntap
Enter the following into the new file:
#!/bin/bash
cd ${LXC_ROOTFS_MOUNT}/dev
mkdir net
mknod net/tun c 10 200
chmod 0666 net/tun
Save and quit
You are good to restart the container.
Type :
ip a
To view the devices, remembering the tun device will not be available until you start a script such as openvpn. Or manually start the device for whatever reason.