Encrypt /var/lib/vz on another volume?

jkoral

New Member
Dec 8, 2016
7
0
1
52
I have just got done installing Proxmox 4.3-1 and would like to encrypt /var/lib/vz, which I will have on another volume. My server is setup using hardware RAID; 2 drives setup as RAID 1 for the OS (/dev/sda) and 12 drives setup as RAID 10 to be dedicated for /var/lib/vz (/dev/sdb). I know REDHat and CentOS, but am new to debian.

First, I try to apt-get cryptsetup, but get the error that "Package cryptsetup si not available, but it referred to by another package"..."However the following packages replace it: bash-completion". So can I install cryptsetup? If not, is there another package that I should use for hard drive encryption?

Second, will I then be able to move the mount point for /var/lib/vz to /dev/sdb?

Thanks,
Joe
 
I think I got it. I ran the updates from the proxmox web browser. After the updates, I was able to run apt-get install cryptsetup. Not sure why I had to run updates from proxmox web browser as opposed to apt-get update.