Can´t mount USB device/can´t add LVM

Hello!

I try to add an usb-stick to one node of our five-node Cluster with ceph.
I used the doku from here: https://pve.proxmox.com/wiki/Storage_Model
My usb device is 8 GB and i want to copy all /etc files from my nodes to the extern media usb device.

At the Point to create lvm over the gui, the lvm volume "usb-stick" is not shown in the tab "Volume Group". i marked only the node where the usb stick is plugged.

Can anyone tell me why?

Thanks in advance,

Roman
 
Hi!

To be sure I understand you correctly want exactly do you want to do? Backing up the configuration directories (/etc) of you Nodes?

You would need to mount it to a mountpoint and then you could copy everything to the stick, e.g.:
Code:
# create directory where we mount the stick
mkdir /mnt/usb

# mount it (replace sdX with the respective device, e.g. exec dmesg to see which device the usb stick is)
mount /dev/sdX /mnt/usb

# copy files
cp -R /etc /mnt/usb

# unmount it when done
umount /mnt/usb

After you mounted the stick could also add it as a storage to PVE through the GUI, this could be useful if you want to make a backup from a VM to the stick.
But for backing up the nodes /etc the above shown method is needed.
 
Last edited:
Thanks for you answer Thomas!

I have one question about the filesystem on the usb stick. Yes, u r right, to copy all important files from the nodes to the stick!
When i try to mount the stick, this error is shown:


Code:
Device  Boot Start  End  Sectors  Size Id Type
/dev/sdf1  2048 15730687 15728640  7.5G 83 Linux

root@HUSKY04:/# mount /dev/sdf1 /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
  missing codepage or helper program, or other error

  In some cases useful info is found in syslog - try
  dmesg | tail or so.

root@HUSKY04:/# dmesg | tail
[2232776.521226] sd 10:0:0:0: Attached scsi generic sg5 type 0
[2232776.521845] sd 10:0:0:0: [sdf] 15730688 512-byte logical blocks: (8.05 GB/7.50 GiB)
[2232776.522482] sd 10:0:0:0: [sdf] Write Protect is off
[2232776.522484] sd 10:0:0:0: [sdf] Mode Sense: 23 00 00 00
[2232776.523147] sd 10:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[2232776.526863]  sdf: sdf1
[2232776.528772] sd 10:0:0:0: [sdf] Attached SCSI removable disk
[2234294.974184]  sdf:
[2234372.424490]  sdf: sdf1
[2255060.020732]  sdf: sdf1
root@HUSKY04:/#


What i am doing wrong, or is the stick not ok?

Thanks,

Roman
 
Hi,

What i am doing wrong, or is the stick not ok?

Hmm, I'd say the latter one, the commands where correct, does the stick work fine on a desktop PC?
Else you could also format it with vfat to allow windows/linux/mac compatibility:

Code:
mkfs.fat /dev/sdf1

If it still has problems write a new partition table before formatting again, e.g. with fdisk or gdisk or format the drive on a desktop PC with GUI programs (e.g. Gparted) which may be easier and safer if no experience with the command line tools.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!