Hello everyone.
I have been using Proxmox for several month now and I am trying to learn as I go by searching the forums and Google for what I need. but I had a system failure couple of weeks back that I have been trying to recover from and that is what brings me here today. I had no real backup to speak of so recovering the setup was/is a top priority for me. now that I am back and can get to the data I want to do this properly but can not find the info I need so far.
this is a single node home server. it pulls a double duty as Proxmox Server AND as File server for other use.
here is my old setup: a Dual Opteron based system with 49GB RAM
Proxmox VE 5.1 on dual 120GB SSD in ZFS mirrored setup.
also have an extra ZFS pool with dual 1TB spinners in zfs mirror for extra system local storage.
this is all related to system setup. in a gui main boot volume and the extra storage volume configured as local_storage.
my main data storage (user data) is on several ZFS pools I have configured manually after the system setup, at the time WebGUI did not support zfs management so CLI manual work.
all pools are ZFS mirror.
pool0 is 6x2TB drives --- holds all main folders for use with file server and other VM/LXI
pool1 is 4x3TB drives --- holds a back up of several main folders from pool0
pool2 is 2x4TB drives --- empty and ready for use
specific folders from each pool is bind-mount (BM) to containers for use.
as in , the pool0 "emblib" is BM into "/mnt/embylib" in emby container and than used like
{ rsync -av --recursive "/mnt/embylib/" "/mnt/embylibbk/" } where ""/mnt/embylibbk/"" is BM from pool1
after my setup went down. I upgraded the server with Dual Xenon MB and 128GB ram.
which I now can start on an older kernel (Linux pve2 4.15.17-2-pve #1 SMP PVE 4.15.17-10 )
any of 4.15.18- kernels still get stuck on empty screen with blinking cursor no matter what I try.
SO, what I am thinking is, if I can configure a good setup of the current system and figure out how to make a full working setup of everything. I can dump the config and re do the system from scratch without worying about loosing data or VMs.
can someone help me do the proper backup of everything.
my thoughts:
I have a 5TB external USB drive. it is GPT formated with a single EXT4 partition.
I had attached it to the server and mount by label into /media/extbk
also changed fstab to have line "LABEL=EXT_BK /media/extbk ext4 defaults 0 0"
to automount the disk on reboot by label.
all backups I want should be going there
I guess for main user data backup I can run "rsync -av --recursive source_pool#_folder target_folder "
to make a full copy of all data I have on my pools this is a one time run for now but I will want to setup a back up job later to have all data up to date.
but how do I backup the system and VM and containers so I can blow the whole system away and rebuild from scratch without loosing a working VM/LXC.
all LXC use zfs subvol as system disks how do I backup that?
Thank for all your help.
I have been using Proxmox for several month now and I am trying to learn as I go by searching the forums and Google for what I need. but I had a system failure couple of weeks back that I have been trying to recover from and that is what brings me here today. I had no real backup to speak of so recovering the setup was/is a top priority for me. now that I am back and can get to the data I want to do this properly but can not find the info I need so far.
this is a single node home server. it pulls a double duty as Proxmox Server AND as File server for other use.
here is my old setup: a Dual Opteron based system with 49GB RAM
Proxmox VE 5.1 on dual 120GB SSD in ZFS mirrored setup.
Code:
pool: rpool
state: ONLINE
scan: scrub repaired 0B in 0h4m with 0 errors on Sun Sep 9 00:28:32 2018
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-INTEL_SSDSC2BW120H6_CVTR52060450120AGN-part2 ONLINE 0 0 0
ata-SanDisk_SDSSDA120G_161443400890-part2 ONLINE 0 0 0
also have an extra ZFS pool with dual 1TB spinners in zfs mirror for extra system local storage.
this is all related to system setup. in a gui main boot volume and the extra storage volume configured as local_storage.
my main data storage (user data) is on several ZFS pools I have configured manually after the system setup, at the time WebGUI did not support zfs management so CLI manual work.
all pools are ZFS mirror.
pool0 is 6x2TB drives --- holds all main folders for use with file server and other VM/LXI
pool1 is 4x3TB drives --- holds a back up of several main folders from pool0
pool2 is 2x4TB drives --- empty and ready for use
specific folders from each pool is bind-mount (BM) to containers for use.
as in , the pool0 "emblib" is BM into "/mnt/embylib" in emby container and than used like
{ rsync -av --recursive "/mnt/embylib/" "/mnt/embylibbk/" } where ""/mnt/embylibbk/"" is BM from pool1
after my setup went down. I upgraded the server with Dual Xenon MB and 128GB ram.
which I now can start on an older kernel (Linux pve2 4.15.17-2-pve #1 SMP PVE 4.15.17-10 )
any of 4.15.18- kernels still get stuck on empty screen with blinking cursor no matter what I try.
SO, what I am thinking is, if I can configure a good setup of the current system and figure out how to make a full working setup of everything. I can dump the config and re do the system from scratch without worying about loosing data or VMs.
can someone help me do the proper backup of everything.
my thoughts:
I have a 5TB external USB drive. it is GPT formated with a single EXT4 partition.
I had attached it to the server and mount by label into /media/extbk
also changed fstab to have line "LABEL=EXT_BK /media/extbk ext4 defaults 0 0"
to automount the disk on reboot by label.
all backups I want should be going there
I guess for main user data backup I can run "rsync -av --recursive source_pool#_folder target_folder "
to make a full copy of all data I have on my pools this is a one time run for now but I will want to setup a back up job later to have all data up to date.
but how do I backup the system and VM and containers so I can blow the whole system away and rebuild from scratch without loosing a working VM/LXC.
all LXC use zfs subvol as system disks how do I backup that?
Thank for all your help.