I've created a zpool of an entire disk at
Later on, I've noticed I can't set individual pruning settings per VM. Settings exist per datastore only.
I can set up Cronjobs to do VM-specific pruning (e.g.
This is my current datastore:
I would like to move this datastore with all its content to a subdirectory
and then edit
... to:
Is my plan viable? Do I need to stop PBS in between the process, to avoid any problems? (How to do that?)
/mnt/datastore/mypool
using the PBS GUI.Later on, I've noticed I can't set individual pruning settings per VM. Settings exist per datastore only.
I can set up Cronjobs to do VM-specific pruning (e.g.
/usr/bin/proxmox-backup-client prune vm/126 --keep-last 3 --quiet 1 --repository root@pam@127.0.0.1:mypool
), but prefer doing the settings in the GUI as intended.This is my current datastore:
Bash:
cd /mnt/datastore/mypool/
ls -la
total 8271
drwxr-xr-x 4 backup backup 6 Feb 24 20:33 .
drwxr-xr-x 4 root root 4 Nov 22 13:57 ..
drwxr-x--- 65538 backup backup 65538 Nov 21 17:26 .chunks
-rw-r--r-- 1 backup backup 352 Feb 24 20:33 .gc-status
-rw-r--r-- 1 backup backup 0 Nov 21 17:26 .lock
drwxr-xr-x 7 backup backup 7 Feb 25 05:00 vm
I would like to move this datastore with all its content to a subdirectory
mydatastore1
and create another subdirectory for a second datastore mydatastore2
. I imagine something like this:
Bash:
cd /mnt/datastore/mypool/
mkdir mydatastore1
mv -r * mydatastore1
mkdir mydatastore2
and then edit
/etc/proxmox-backup/datastore.cfg
by changing the following...
Code:
datastore: mypool
gc-schedule 20:30
keep-daily 2
keep-hourly 22
keep-last 8
path /mnt/datastore/mypool
prune-schedule *:0/30
... to:
Code:
datastore: mydatastore1
gc-schedule 20:30
keep-daily 2
keep-hourly 22
keep-last 8
path /mnt/datastore/mypool/mydatastore1
prune-schedule *:0/30
datastore: mydatastore2
gc-schedule 20:30
keep-last 3
path /mnt/datastore/mypool/mydatastore2
prune-schedule *:0/30
Is my plan viable? Do I need to stop PBS in between the process, to avoid any problems? (How to do that?)