Storage - USB - Festplatte

hackmann

Renowned Member
Jan 6, 2013
223
12
83
Hallo, ich habe einen Proxmox 5 Server. An diesem ist eine externe USB Festplatte angeschlossen.
Leider habe ich Probleme in der Console zu sehen, wie dieses gemountet wurde?!

Diese wurde eingebunden über

Code:
mkdir /usb-external
Im Webfrontend unter Storage als Directory eingebunden. Soweit so gut.

Code:
lsscsi
disk    Toshiba  External USB 3.0 0     /dev/sdd

------

lsusb
Bus 001 Device 003: ID 0480:a007 Toshiba America Inc External Disk USB 3.0

Wenn ich Backups von den VMS mache, können diese VMS auch in diesem Verzeichnis gespeichert werden.

und ein

Code:
fdisk -l /dev/sdd
Disk /dev/sdd: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 80437155-CD6A-A94C-BB7D-3AB619C70286

Device          Start        End    Sectors   Size Type
/dev/sdd1        2048 1953507327 1953505280 931.5G Solaris /usr & Apple ZFS
/dev/sdd9  1953507328 1953523711      16384     8M Solaris reserved 1

sehe ich, dass es ein ZFS Dateisystem ist.

Leider sehe ich diese USB Platte nicht unter mount, noch zpool status noch zfs list..
Nach einem Reboot des Servers ist die USB Platte vorhanden. Ich stehe gerade voll auf dem Schlauch!.

Ich hatte das mal vor Monaten eingerichtet, leider hatte ich mir keine Notiz dazu gemacht und mit einem zpool history oder history konnte ich auch nichts finden.

Hat jemand einen Tipp?

Code:
ls -ls /

9 drwxr-xr-x   2 root root  172 Apr 17 11:25 bin
 9 drwxr-xr-x   5 root root   19 Apr 17 11:27 boot
 9 drwxr-xr-x  11 root root   11 Apr 27 10:01 datenproxmox
 0 drwxr-xr-x  22 root root 4700 Apr 27 10:20 dev
 9 drwxr-xr-x 111 root root  210 Apr 24 07:53 etc
 1 drwxr-xr-x   2 root root    2 Jul 13  2017 home
 9 drwxr-xr-x  20 root root   34 Apr 17 11:27 lib
 1 drwxr-xr-x   2 root root    3 Apr 17 11:25 lib64
 1 drwxr-xr-x   2 root root    2 Aug 10  2017 media
 1 drwxr-xr-x   3 root root    3 Dec  6 11:27 mnt
 1 drwxr-xr-x   3 root root    3 Dec 15 12:13 opt
 0 dr-xr-xr-x 319 root root    0 Apr 27 10:20 proc
 9 drwx------   8 root root   21 Apr 27 10:25 root
 1 drwxr-xr-x   5 root root    5 Dec  6 13:34 rpool
 0 drwxr-xr-x  31 root root 1440 Apr 27 10:21 run
 9 drwxr-xr-x   2 root root  242 Apr 17 11:27 sbin
 1 drwxr-xr-x   2 root root    2 Aug 10  2017 srv
 0 dr-xr-xr-x  13 root root    0 Apr 27 10:20 sys
25 drwxrwxrwt   9 root root    9 Apr 27 10:39 tmp
 1 drwxr-xr-x   3 root root    3 Apr 24 07:48 usb-backup
 9 drwxr-xr-x  10 root root   10 Aug 10  2017 usr
 9 drwxr-xr-x  12 root root   14 Dec 15 11:50 var
 1 -rw-r--r--   1 root root    0 Nov 16 13:08 zfs

vielen dank
 

Attachments

  • storage.png
    storage.png
    14.5 KB · Views: 50
  • storage-backup.png
    storage-backup.png
    30.9 KB · Views: 48
Hallo, diese war wohl offentsichtlich als ZFS Formatiert, jedoch nicht als Pool eingebunden.
Nach dem Einbinden wird diese nun richtig erkannt!

Code:
root@zfs-first:~# zpool iostat
                capacity     operations     bandwidth
pool          alloc   free   read  write   read  write
------------  -----  -----  -----  -----  -----  -----
datenproxmox   125G  1.69T    443     12  46.8M   283K
rpool          186G  45.6G    461     13  42.0M   206K
usb-extern    24.5G   903G      0    224   1023  27.8M
------------  -----  -----  -----  -----  -----  -----
schönes wochenende
 
Für alle die, die sich fragen was im Hintergrund passiert ist:
Die Kommandos für das Einbinden ins System sind normalerweise

Code:
zpool import

Dann den Pool ablesen den man importieren will und diesen dann importieren:

Code:
zpool import usb-extern

Ist vergleichbar mit dem Mounten eines Dateisystems
 
Wer das ganze Prozedere inkl. Storage usw. gerne automatisiert haben möchte, installiert sich den pve5-usb-automount.
Code:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2FAB19E7CCB7F415
echo "deb https://apt.iteas.at/iteas stretch main" > /etc/apt/sources.list.d/iteas.list
apt update
apt install pve5-usb-automount
Nun wird jedes an PVE angeschlossenes USB Storagedevice "sync" gemounted und eine Storage temporär erstellt. Ein unmount oder löschen deaktivieren der Storage ist also nicht notwendig.
 
Hallo, ich habe das
pve5-usb-automount installiert, aber wie sehe ich nun meine externe Festplatte?

Code:
 mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10094896k,nr_inodes=2523724,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=2022788k,mode=755)
/rpool/ROOT/pve-1 on / type zfs (rw,relatime,xattr,noacl)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1129)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/rpool on /rpool type zfs (rw,noatime,xattr,noacl)
/rpool/ROOT on /rpool/ROOT type zfs (rw,noatime,xattr,noacl)
/rpool/data on /rpool/data type zfs (rw,noatime,xattr,noacl)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=2022784k,mode=700)
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)

danke
 

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!