USB Disk as backup

jensie

Active Member
Dec 15, 2020
46
3
28
49
Dear community,

I'm a newbie to Proxmox and I love the environment so far. Hence I wanted to setup a backup to an external disk. I followed the following tutorial https://www.youtube.com/watch?v=lZjMxdBPH7M

Steps followed :
  1. Formatting to ext 4
  2. Create director in /mnt called /mnt/usb-drive
  3. Finding the uuid with ls -l /dev/disk/by-uuid/*
  4. Adding to /etc/fstab the following /dev/disk/by-uuid/31010205-a0ed-4e74-ac98-a68f66bcd06e /mnt/usb-drive ext4 defaults 0
  5. Using mount -a to mount the disk
  6. In UI : Datacenter - storage - add Directory
Questions :
  1. How can I revert back without "breaking" anything ?
  2. Would it be possible to add a part of the number of TBs to a VM as a secondary drive (store video, image files) ?
Thank you so much,
Jens
 
hi,

How can I revert back without "breaking" anything ?
what do you want to revert?

Would it be possible to add a part of the number of TBs to a VM as a secondary drive (store video, image files) ?
yes, you can passthrough the partition to the VM (but you won't be able to migrate the VM to another node with this setup)

something like this should work:
Code:
qm set VMID -scsi1 /dev/yourdisk

scsi1 can be changed according to your vm config (can be seen with qm config VMID)
 
hi,


what do you want to revert?


yes, you can passthrough the partition to the VM (but you won't be able to migrate the VM to another node with this setup)

something like this should work:
Code:
qm set VMID -scsi1 /dev/yourdisk

scsi1 can be changed according to your vm config (can be seen with qm config VMID)
@oguz Thank you for your quick reply. Based on what you wrote, it doesn't look like something I want to keep the storage capacity as I defined it. What would be the procedure to get ride of what I've done ?
 
still not sure what you want to revert but you can pretty much follow the steps backwards:

1. remove the directory storage from the UI
2. umount /mnt/usb-drive
3. remove the line from /etc/fstab

and you should be back to step 1 with an ext4 formatted usb