Servus!
1st of all i'm new to proxmox PBS and PVE (and ZFS also).
I have a playground for testing purposal and try to become warmed up with the proxmox stuff e.g. clustering, backup etc.
Currently i am testing how i can use an external usb drive as datastore for an offsite backup of important vm's (i am using a simple usb stick with 256gb capacity).
My goal:
1. simply plug in the usb drive to the pbs
2. run a backup job when i need to make the offsite backup
3. unplug and i am done
What i did:
add long term storage:
1. mounted an NFS share (yes yes, slow etc. i know)
2. created a datastore
3. added to fstab
so far so good, all fine, but that's not the problem
next i wanted to test the offsite usb stuff
1. plugged in usb drive
2. created zfs (single disk)
3. created a datastore
-> worked so far
now the trouble begins
i tested a simple shutdown of the server and unplugged the usb drive
while booting i got:
yes, reasonable. (my thoughs were: maybe zfs is not the best idea for a offsite backup storage - try directory instead)
1. ok, so i booted in rescue mode and tried to remove the zfs pool but zpool and zfs couldnt find my pool "zfs_usbstick". i do not remeber what exactly it was saying but i couldn't do a destroy because the pool could not be found. (usb device was not plugged in)
2. okay, power off the server, plugged in the usb device, boot, hope it will recognize the device
3. same message again (see image).
4. used google, and realized pbs started after minutes in background. (webgui told me that "zfs_usbstick" isnt available)
5. okay, i was thinking delete the datastore "zfs_usbstick" in webgui and trouble is gone.
6. that worked surprisingly (but afterwards i think it only deleted the entry in datastore.cfg?)
7. reboot (the shutdown took ages)
8. same message on boot again
okay, lets wait if pbs will boot in a few minutes like before, and it did.
now i was thinking i simply try to (re-)create the same zfs pool and datastore again, with same name and maybe it will work again. (i know it doenst make any sense in production but i was trying to learn troubleshooting)
so same steps again:
1. formatted the usb drive
2. created zfs with same name (single disk)
3. created the datastore
fine, that worked and was visible in webgui with no errors.
now i rebooted pbs again (shutdown took ages again)
and pbs started with the same failure i am facing all the time "Failed to start Import ZFS pool zfs_usbstick"
i think i messed up everything
how can i remove the zfs pool and get rid of this?
Or is there a "Best Practice" for offsite backup with a simple external disk?
My goal is simply
1. plug in device (on running server)
2. start backup
3. unplug usb drive
4. done
and i do not wanna have trouble when the server gets a reboot (or powerloss) and the usb drive is not connected.
1st of all i'm new to proxmox PBS and PVE (and ZFS also).
I have a playground for testing purposal and try to become warmed up with the proxmox stuff e.g. clustering, backup etc.
Currently i am testing how i can use an external usb drive as datastore for an offsite backup of important vm's (i am using a simple usb stick with 256gb capacity).
My goal:
1. simply plug in the usb drive to the pbs
2. run a backup job when i need to make the offsite backup
3. unplug and i am done
What i did:
add long term storage:
1. mounted an NFS share (yes yes, slow etc. i know)
2. created a datastore
3. added to fstab
so far so good, all fine, but that's not the problem
next i wanted to test the offsite usb stuff
1. plugged in usb drive
2. created zfs (single disk)
3. created a datastore
-> worked so far
now the trouble begins
i tested a simple shutdown of the server and unplugged the usb drive
while booting i got:
yes, reasonable. (my thoughs were: maybe zfs is not the best idea for a offsite backup storage - try directory instead)
1. ok, so i booted in rescue mode and tried to remove the zfs pool but zpool and zfs couldnt find my pool "zfs_usbstick". i do not remeber what exactly it was saying but i couldn't do a destroy because the pool could not be found. (usb device was not plugged in)
2. okay, power off the server, plugged in the usb device, boot, hope it will recognize the device
3. same message again (see image).
4. used google, and realized pbs started after minutes in background. (webgui told me that "zfs_usbstick" isnt available)
5. okay, i was thinking delete the datastore "zfs_usbstick" in webgui and trouble is gone.
6. that worked surprisingly (but afterwards i think it only deleted the entry in datastore.cfg?)
7. reboot (the shutdown took ages)
8. same message on boot again
okay, lets wait if pbs will boot in a few minutes like before, and it did.
now i was thinking i simply try to (re-)create the same zfs pool and datastore again, with same name and maybe it will work again. (i know it doenst make any sense in production but i was trying to learn troubleshooting)
so same steps again:
1. formatted the usb drive
2. created zfs with same name (single disk)
3. created the datastore
fine, that worked and was visible in webgui with no errors.
now i rebooted pbs again (shutdown took ages again)
and pbs started with the same failure i am facing all the time "Failed to start Import ZFS pool zfs_usbstick"
i think i messed up everything
how can i remove the zfs pool and get rid of this?
Or is there a "Best Practice" for offsite backup with a simple external disk?
My goal is simply
1. plug in device (on running server)
2. start backup
3. unplug usb drive
4. done
and i do not wanna have trouble when the server gets a reboot (or powerloss) and the usb drive is not connected.
Last edited: