iSCSI storage with PBS on Debian LXC

Singman

Active Member
Sep 13, 2019
20
0
41
57
Hi,

The actual documentation is really unclear about mixing iSCSI and pbs storage.

Here is my problem :
- I have a Freenas iSCSI disk ready for backup
- I've build a LXC with PBS over Debian 10 on my PVE
Now, I should link the two points to make PBS use storage on the NAS. Because PBS is running as LXC, I think I should add the iSCSI storage first on PVE, then share it with my LXC. But it's really unclear because there is a new storage pool type added (pbs) on PVE but I should first add my iSCSI disk somewhere before that.
So, what are the steps to reach my goal ?
 
More informations because I still searching how PBS is working and I don't understand.
Because nobody know how to mount a iSCSI disk to use with PBS (!!!), I'm trying to use NFS instead.

So, I mount a NFS volume on PVE, add the "Features nesting=1" and that volume to CT config :
Code:
root@pve:~# df
Filesystem                          1K-blocks      Used  Available Use% Mounted on
udev                                 16435800         0   16435800   0% /dev
tmpfs                                 3292120      9568    3282552   1% /run
/dev/mapper/pve-root                 69659896  14286304   51792052  22% /
tmpfs                                16460592     46800   16413792   1% /dev/shm
tmpfs                                    5120         0       5120   0% /run/lock
tmpfs                                16460592         0   16460592   0% /sys/fs/cgroup
/dev/fuse                               30720        20      30700   1% /etc/pve
192.168.0.17:/mnt/Pool_1/Store_NFS 1179777664 117097472 1062680192  10% /mnt/pve/BackupNFS
tmpfs                                 3292116         0    3292116   0% /run/user/0

root@pve:~# cat /etc/pve/lxc/110.conf
arch: amd64
cores: 2
features: nesting=1
hostname: backup
memory: 2048
mp0: /mnt/pve/BackupNFS,mp=/mnt/backup-NFS,backup=0,replicate=0
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=C2:CE:A6:AA:69:DF,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: Stockage:vm-110-disk-0,size=8G
swap: 2048
unprivileged: 1

On CT side, I could check if the volume is mounted, check disks and try to create the datastore :
Code:
root@backup:~# df
Filesystem                            1K-blocks      Used  Available Use% Mounted on
/dev/mapper/Storage-vm--110--disk--0    8191416   1454872    6300732  19% /
192.168.0.17:/mnt/Pool_1/Store_NFS   1179778048 117097600 1062680448  10% /mnt/backup-NFS
none                                        492         4        488   1% /dev
udev                                   16435800         0   16435800   0% /dev/tty
tmpfs                                  16460592         0   16460592   0% /dev/shm
tmpfs                                  16460592      8264   16452328   1% /run
tmpfs                                      5120         0       5120   0% /run/lock
tmpfs                                  16460592         0   16460592   0% /sys/fs/cgroup

root@backup:~# proxmox-backup-manager disk list
error getting zfs devices: command "zpool" "list" "-H" "-p" "-P" "-v" failed - status code: 1 - /dev/zfs and /proc/self/mounts are required.
Try running 'udevadm trigger' and 'mount -t proc proc /proc' as root.

+======+==============+=====+===========+===============+=======+=========+=========+
| name | used         | gpt | disk-type |          size | model | wearout | status  |
+======+==============+=====+===========+===============+=======+=========+=========+
| sda  | devicemapper |   0 | hdd       |  293563949056 |       |       - | unknown |
+------+--------------+-----+-----------+---------------+-------+---------+---------+
| sdb  | devicemapper |   0 | hdd       | 1200187203584 |       |       - | unknown |
+======+==============+=====+===========+===============+=======+=========+=========+

root@backup:~# proxmox-backup-manager datastore create Storage1 /mnt/backup-NFS/store
Error: unable to create chunk store 'Storage1' at "/mnt/backup-NFS/store" - EINVAL: Invalid argument

root@backup:~# mkdir /mnt/backup-NFS/store
mkdir: cannot create directory '/mnt/backup-NFS/store': File exists

root@backup:~# l /mnt/backup-NFS/
dump/     images/   store/    template/

Still have no clue to solve that problem...
 
Last edited:
Hi,

The actual documentation is really unclear about mixing iSCSI and pbs storage.

Here is my problem :
- I have a Freenas iSCSI disk ready for backup
- I've build a LXC with PBS over Debian 10 on my PVE
Now, I should link the two points to make PBS use storage on the NAS. Because PBS is running as LXC, I think I should add the iSCSI storage first on PVE, then share it with my LXC. But it's really unclear because there is a new storage pool type added (pbs) on PVE but I should first add my iSCSI disk somewhere before that.
So, what are the steps to reach my goal ?
Hi,

as I showed in my short description the best way to handle NFS is inside LXC, to enable NFS you need to log in as root@pam and enable NFS as an option to the CT.

From the other horizon I did something else from the beginnins on the FreeNAS instead.

I'm actually running a Debian VM on the FreeNAS host and have added a ZVOL locally to the said VM as storage.
It's a bit of a strugle to get Debian installed at first but then my description is somewhat useful for this scenario as well.

Here there is no worries about PBS speed to write at least. :)

Best regards,

Rickard
 

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!