Add disk to Proxmox Backup Server

tylko

Member
Jun 29, 2016
5
0
21
54
Hi, I'm new to PBS. I have installed PBS to separate physical machine, connected to it an iscsi disk (making lvm, adding to a new vg, created fs and mounted). I can see mounted disks
Code:
root@pbs:~# df
Filesystem                1K-blocks    Used  Available Use% Mounted on
udev                       12288836       0   12288836   0% /dev
tmpfs                       2462984    8988    2453996   1% /run
/dev/mapper/pbs-root      114528412 2281564  106386088   3% /
tmpfs                      12314916       0   12314916   0% /dev/shm
tmpfs                          5120       0       5120   0% /run/lock
tmpfs                      12314916       0   12314916   0% /sys/fs/cgroup
tmpfs                       2462980       0    2462980   0% /run/user/0
/dev/mapper/iscsi-netapp 4215933576   90140 4001615468   1% /iscsi

but the only one is ready to be used by PBC
Code:
root@pbs:~# proxmox-backup-manager disk list
┌──────┬──────┬─────┬───────────┬──────────────┬────────────────┬─────────┬────────┐
│ name │ used │ gpt │ disk-type │         size │ model          │ wearout │ status │
╞══════╪══════╪═════╪═══════════╪══════════════╪════════════════╪═════════╪════════╡
│ sda  │ lvm  │   1 │ hdd       │ 145999527936 │ Logical_Volume │       - │ passed │
└──────┴──────┴─────┴───────────┴──────────────┴────────────────┴─────────┴────────┘
root@pbs:~#
How to make the second, iscsi disk, available to PBS
 
sry i'm also new to PBS so i don't know if my question is bullshit :)

have you already added a Datastore with the /iscsi Path?
I would think, that the proxmox-backup-manager command just shows the disks which are configured as a storage
 
No I have not because I believe that first I have to see iscsi volume as a disk in gui or by using proxmox-backup-manager command.
 
if you manually mount your filesystem, you do not need to go via our disk management. this is intentionally limited to local disks and simple setups
(since there are basically infinite ways to configure storage)

if you have your target storage mounted and setup, simply add a datastore in that directory (or a subdirectory)
 
Anyone new that sees this thread; you can use the follow steps to 1) Mount 2) Create a Datastore w/ the new drve:
1) Select 'Storage/Disks' under the Administration module
2) Select 'Directory' tab
a) Create: Directory
3) Select the new drive (Should auto-populate) give it a name/ID
4) Select the Filesystem
a) Add as Datastore should be checked by default
5) Select 'Create'

This will Format, Mount, and create the Disk as a Datastore for you via ProxMox BS GUI.

From there you just need to point your PVE/PVE Cluster to the PBS and wham bam you're good to setup a backup schedule.
 
sry i'm also new to PBS so i don't know if my question is bullshit :)

have you already added a Datastore with the /iscsi Path?
I would think, that the proxmox-backup-manager command just shows the disks which are configured as a storage
Sorry not related to this thread; but do you find it worth the money to have a ProxMox Sub? I'm very curious what the Pros/Cons are from the Non-Subsrciption side are.
 
So I'm having a strange issue after following steps in #6 above. I removed a PBS datastore (named "backup") and now trying to recreate - I was testing creation of an encrypted destination for PVE backups.

I have removed the existing datastore:

Code:
systemctl disable mnt-datastore-backup.mount

proxmox-backup-manager datastore remove backup

rm /etc/systemd/system/mnt-datastore-backup.mount

umount /dev/sdd1

rm -rf /mnt/datastore/backup

systemctl restart proxmox-backup proxmox-backup-proxy

sgdisk --zap-all /dev/sdd

And confirmed in UI and:

Code:
root@pve:~# proxmox-backup-manager disk list
┌─────────┬────────────┬─────┬───────────┬───────────────┬────────────────────────┬─────────┬────────┐
│ name    │ used       │ gpt │ disk-type │          size │ model                  │ wearout │ status │
╞═════════╪════════════╪═════╪═══════════╪═══════════════╪════════════════════════╪═════════╪════════╡
│ nvme0n1 │ lvm        │   0 │ ssd       │  256060514304 │ KBG40ZNV256G KIOXIA    │  0.00 % │ passed │
├─────────┼────────────┼─────┼───────────┼───────────────┼────────────────────────┼─────────┼────────┤
│ sda     │ mounted    │   1 │ ssd       │  128035676160 │ LITEONIT_LCT-128M3S    │       - │ passed │
├─────────┼────────────┼─────┼───────────┼───────────────┼────────────────────────┼─────────┼────────┤
│ sdb     │ filesystem │   0 │ hdd       │ 2000398934016 │ WDC_WD2002FAEX-007BA0  │       - │ passed │
├─────────┼────────────┼─────┼───────────┼───────────────┼────────────────────────┼─────────┼────────┤
│ sdc     │ filesystem │   0 │ hdd       │ 2000398934016 │ WDC_WD2000FYYZ-01UL1B1 │       - │ passed │
├─────────┼────────────┼─────┼───────────┼───────────────┼────────────────────────┼─────────┼────────┤
│ sdd     │ unused     │   0 │ hdd       │ 2000398933504 │ WDC_WD2002FAEX-007BA0  │       - │ passed │
└─────────┴────────────┴─────┴───────────┴───────────────┴────────────────────────┴─────────┴────────┘
root@pve:~#

Now when I go into PBS and attempt to create a directory:

Screen Shot 2022-07-21 at 10.17.03 am.png

Screen Shot 2022-07-21 at 10.17.16 am.png

Screen Shot 2022-07-21 at 10.07.30 am.png

I attempted again without selecting option to create datastore:

Screen Shot 2022-07-21 at 10.10.16 am.png
Looking at logs:

Code:
root@pve:~# tail /var/log/proxmox-backup/tasks/archive
UPID:pve:0000036E:00002555:00000018:62D85EC0:prunejob:backup:root@pam: 62D85ECF OK
UPID:pve:0000036E:00002555:00000019:62D8848D:prunejob:backup:root@pam: 62D8848D OK
UPID:pve:0000036E:00002555:0000001A:62D8862A:prune:backup\x3a:root@pam: 62D8862A OK
UPID:pve:00000321:00002561:00000000:62D891A8:create-datastore:backup:root@pam: 62D891A8 unable to create chunk store 'backup' at "/dev/sdd1" - ENOTDIR: Not a directory
UPID:pve:00000321:00002561:00000001:62D89222:dircreate:backup:root@pam: 62D89239 OK
UPID:pve:00002E29:00053BC9:00000000:62D896C8:dircreate:backup01:root@pam: 62D896C8 unknown
UPID:pve:0000032B:0000255B:00000000:62D898B7:dircreate:backup:root@pam: 62D898B7 unknown
UPID:pve:0000032B:0000255B:00000001:62D8995D:create-datastore:backup:root@pam: 62D8995D unable to create chunk store 'backup' at "/dev/sdd1" - ENOTDIR: Not a directory
UPID:pve:0000032B:0000255B:00000002:62D89992:dircreate:backup:root@pam: 62D89992 unknown
UPID:pve:0000032B:0000255B:00000003:62D89AE0:termproxy::root@pam: 62D89AE4 OK

Datastore config file empty:

Code:
root@pve:~# cat /etc/proxmox-backup/datastore.cfg
root@pve:~#
Not sure what to do from here. I have trying restarting PBS host with no luck.
 
Last edited:
So I have resolved my issue. In case someone else comes across this....

sgdisk --zap-all /dev/sdd did NOT remove all GPT metadata. I had to run gdisk /dev/sdd, select x (Expert) and select z (Zap). I was then able to create directory and add Datastore via UI.
 

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!