Proxmox/FreeNAS11 question/problem

vikozo

Renowned Member
May 4, 2014
781
30
93
suisse
www.wombat.ch
Hello
i have a Proxmox/FreeNAS11 question/problem

in FreeNAS 11
i created a storage (Dataset)
i created a share (SMB)
i created a user (got all right to write)
when i do conect from my pc i will and login as user i can see the share and created a directory or file this works

in Proxmox
Datacenter - Storage
i did add Directory
i did add the path
i did add the right for isofile and Backup

----------------
so the first strange thing
in Proxmox Storage summary it show only 120G but should be over 5TB

it is possible to upload ISO File an create a backup of a VM, but when i went into the directory there is no files added, so i am a bit confused. But on the Proxmox Storage Summary i see that the Usage of the space changed.

i did nothing do in the CLI only used the GUI on both system!

any sugestions what i did wrong?

have a nice day
vinc
 
So you add the smbmountpoint to you fstab? If not that can't work! There is no possibility to add smb to Proxmox in the storagetab. SMB is not supportet. But you can do this with CMD:

In the fstab you must set the an line, for example:
Code:
//10.70.30.28/sicherung /mnt/pve/sicherung cifs credentials=/root/.smbcredentials,auto,vers=3.0      0 0
In Kernel 4.13.x is an nice smbbug. Since that kernel only "vers=1.0" is working. Don't forget to add credentials like this:
Code:
username=admin
password=geheim
domain=local
then say "mount -a". After that you should see your share at cmd with "df -h". Now it is time do bind this to pve, for example like this:
Code:
pvesm add dir sicherung -path /mnt/pve/sicherung -is_mountpoint 1 -shared -maxfiles 5 -content vztmpl,iso,backup
The important option is "-is_mountpoint 1" that say that this directorystorage must be mounted, if not, it will be greyed out in the webinterface.
 
@fireon - thanks a lot - just funny is is not possible to do it in the Proxmox GUI

//10.70.30.28/sicherung (This part is it the IP on the Proxmox or the FreeNAS?)
/mnt/pve/sicherung (This looks like to be the path in FreeNAS, hope i am right

have a nice day
vinc
 
IP of Freenas and sharename //10.70.30.28/sicherung
/mnt/pve/sicherung = localmountpath in proxmox.
 
Merci @fireon
mount -a
mount error(2): No such file or directory

and my looks longer
//10.147.42.73/mnt/NAS-04vol/share_bkp-srv03 /mnt/NAS-04vol/share_backup_srv03 cifs credentials=/root/.smbcredentials,auto,vers=3.0 0 0
but both directorys exist and i can login with the backupuser i crated!

have a nice day
vinc
 
//10.147.42.73/mnt/NAS-04vol/share_bkp-srv03
Not the whole path, only the share samba sharename. For example
Code:
//10.147.42.73/share_bkp-srv03  /mnt/NAS-04vol/share_backup_srv03 cifs credentials=/root/.smbcredentials,auto,vers=1.0 0 0
1.0 is better because of samba kernelbug in 4.13.x
 
@fireon thanks for your patience

mount -a
mount error(13): Permission denied

if i do a

rlogin -l user 10.147.42.73
and enter the password i got a error too

but if i conect with my Win7 PC to the NAS and enter
der user name and Passwort it will login to the correct share on my NAS
:confused:
 
Strange. Please post the following infos:

Code:
smbclient -L hostnameipofyournas
cat /etc/fstab
 
a strange thing - Enter root's password: asking for a password - no different to hit enter or enter the root password ;-)

Code:
smbclient -L 10.147.42.73
Enter root's password:
Domain=[HOME] OS=[Windows 6.1] Server=[Samba 4.7.0]

        Sharename       Type      Comment
        ---------       ----      -------
        share_ISOfiles  Disk
        share_backup    Disk
        share_bkp-srv03 Disk
        share_fotos     Disk
        share_gu-vi     Disk
        share_music     Disk
        share_video     Disk
        IPC$            IPC       IPC Service (NAS-04 - FreeNAS Server)
Domain=[HOME] OS=[Windows 6.1] Server=[Samba 4.7.0]

        Server               Comment
        ---------            -------
        FRITZ-NAS            FRITZ!Box
        NAS-04-FREENAS       NAS-04 - FreeNAS Server

        Workgroup            Master
        ---------            -------
        HOME                 FRITZ-NAS

cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
UUID=4ca6097f-f6fe-41b8-ae85-dff081b12699 /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
//10.147.42.73/share_bkp-srv03 /mnt/NAS-04vol/share_backup_srv03 cifs credentials=/root/.smbcredentials,auto,vers=1.0 0 0
 
It must work. Maybe an problem with sambaversions. Test it without the credentialsoption:
Code:
//10.147.42.73/share_bkp-srv03 /mnt/NAS-04vol/share_backup_srv03 cifs username=u-bkpsrv03,auto,vers=1.0 0 0
 
Code:
:/etc# mount -a
Password for u-bkpsrv03@//10.147.42.73/share_bkp-srv03:  *********
root@srv03:/etc#
Code:
root@srv03:/etc# df -h
Filesystem                                   Size  Used Avail Use% Mounted on
udev                                          10M     0   10M   0% /dev
tmpfs                                        6.3G   25M  6.3G   1% /run
/dev/dm-0                                     95G   40G   51G  44% /
tmpfs                                         16G   43M   16G   1% /dev/shm
tmpfs                                        5.0M  4.0K  5.0M   1% /run/lock
tmpfs                                         16G     0   16G   0% /sys/fs/cgroup
/dev/sda2                                    486M  283M  179M  62% /boot
/dev/mapper/pve-data                         2.6T  1.6T  1.1T  60% /var/lib/vz
cgmfs                                        100K     0  100K   0% /run/cgmanager/fs
/dev/fuse                                     30M   16K   30M   1% /etc/pve
10.147.42.73:/mnt/NAS-04vol/share_bkp-srv03  8.3T  256K  8.3T   1% /mnt/pve/NAS-04
tmpfs                                        3.2G     0  3.2G   0% /run/user/0
//10.147.42.73/share_bkp-srv03               8.3T  176K  8.3T   1% /mnt/NAS-04vol/share_backup_srv03

where this part comes from
10.147.42.73:/mnt/NAS-04vol/share_bkp-srv03 8.3T 256K 8.3T 1% /mnt/pve/NAS-04
i don't know

it would work so far....
 
know i will have to rephrase this ;)
pvesm add dir sicherung -path /mnt/pve/sicherung

pvesm add dir share_bkp-srv03 -path /mnt/NAS-04vol/share_backup_srv03 -is_mountpoint 1 -shared -maxfiles 5 -content vztmpl,iso,backup

works fine to me now!
 
Last edited:
hello again
i tried to change the name and broke something so i thought to remove it and add it again.
so i have done a
# pvesm remove share_bkp-srv03
which worked but then ...
# pvesm add dir share_bkp-srv03 -path /mnt/NAS-04vol/share_backup_srv03 -is_mountpoint 1 -shared -maxfiles 5 -content vztmpl,iso,backup
create storage failed: mkdir /mnt/NAS-04vol/share_backup_srv03: File exists at /usr/share/perl5/PVE/Storage/DirPlugin.pm line 96.
 

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!