*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[SOLVED] TFTP Server and Service

TFTP and PXE related.
Forum rules
Set-Up GuideFAQsForum Rules
GianDO76
Starter
Starter
Posts: 52
Joined: 14 Jul 2015 08:29
Status: Offline

Re: TFTP Server and Service

#31

Post by GianDO76 » 30 Sep 2015 13:08

daoyama wrote:
GianDO76 wrote:So, if I mount /mnt/repo with nfsv4 disabled from normal linux desktop installed it's ok. Now i'd like to know how I can export on Nas4Free the paths following

/mnt/repo/tftpboot/swdrep/CentOS7EL_R
/mnt/repo/tftpboot/swdrep/Fedora21_R
It's simple. You need only add "/" as NFSv4 root directory.
In my case, all directory under /mnt/data can be mounted.

Code: Select all

aoyama@u14:~$ ls -al /mnt
合計 8252
drwxrwxrwx  6 nobody nogroup    1024  6月 14 21:00 .
drwxr-xr-x 23 root   root       4096  4月  8 18:13 ..
drwxrwxr-x  2 nobody nogroup     512 12月  4  2014 .snap
-r--------  1 nobody nogroup 8388608 12月  4  2014 .sujournal
-rw-------  1 nobody nogroup      42  7月  9 23:38 .websrv_htpasswd
drwxr-xr-x  2 nobody nogroup     512 12月 14  2014 conf
drwxr-xr-x  7 nobody nogroup    1024  6月 15 02:30 samba4
drwxrwxrwx  2 nobody nogroup     512  6月 14 21:00 tmp
aoyama@u14:~$ sudo umount /mnt
aoyama@u14:~$ sudo mount -t nfs 172.18.0.140:/mnt/data/samba4 /mnt
aoyama@u14:~$ df
Filesystem                    1K-blocks     Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root    31613844 15143000  14841868  51% /
none                                  4        0         4   0% /sys/fs/cgroup
udev                             503000        4    502996   1% /dev
tmpfs                            102596     1080    101516   2% /run
none                               5120        0      5120   0% /run/lock
none                             512980      152    512828   1% /run/shm
none                             102400       44    102356   1% /run/user
/dev/sda1                        240972    64700    163831  29% /boot
172.18.0.140:/mnt/data/samba4   1015424   360576    573568  39% /mnt
aoyama@u14:~$ ls -al /mnt
合計 2144
drwxr-xr-x  7 nobody nogroup   1024  6月 15 02:30 .
drwxr-xr-x 23 root   root      4096  4月  8 18:13 ..
-rw-------  1 nobody nogroup 421888  6月 12 18:55 account_policy.tdb
-rw-r--r--  1 nobody nogroup  40200  6月 15 02:29 brlock.tdb
-rw-r--r--  1 nobody nogroup    231  6月 15 02:30 browse.dat
-rw-------  1 nobody nogroup    696  6月 14 21:03 dbwrap_watchers.tdb
-rw-r--r--  1 nobody nogroup 430080  6月 15 02:33 gencache.tdb
-rw-r--r--  1 nobody nogroup    696  7月 10 14:01 gencache_notrans.tdb
-rw-------  1 nobody nogroup    696  6月 12 18:55 group_mapping.tdb
drwxr-xr-x  2 nobody nogroup    512  6月 15 02:33 lck
-rw-r--r--  1 nobody nogroup    696  6月 15 02:29 leases.tdb
-rw-r--r--  1 nobody nogroup  40200  6月 15 02:29 locking.tdb
-rw-------  1 nobody nogroup    696  6月 14 02:54 messages.tdb
drwx------  2 nobody nogroup    512  6月 15 02:33 msg
-rw-------  1 nobody nogroup    696  7月 10 14:01 mutex.tdb
-rw-r--r--  1 nobody nogroup    696  6月 15 02:29 notify.tdb
-rw-r--r--  1 nobody nogroup    696  6月 15 02:29 notify_index.tdb
-rw-r--r--  1 nobody nogroup    696  6月 14 15:00 printer_list.tdb
drwxr-xr-x  2 nobody nogroup    512  6月 14 02:54 printing
drwxr-xr-x  6 nobody nogroup    512  6月 14 02:55 private
-rw-------  1 nobody nogroup 528384  6月 14 02:54 registry.tdb
-rw-r--r--  1 nobody nogroup   8192  6月 15 02:33 serverid.tdb
-rw-------  1 nobody nogroup 421888  6月 14 02:54 share_info.tdb
-rw-r--r--  1 nobody nogroup    650  6月 12 18:55 smb4.conf.created
-rw-------  1 nobody nogroup    696  6月 15 02:29 smbXsrv_open_global.tdb
-rw-------  1 nobody nogroup    696  6月 15 02:29 smbXsrv_session_global.tdb
-rw-------  1 nobody nogroup    696  6月 15 02:29 smbXsrv_tcon_global.tdb
-rw-------  1 nobody nogroup  16384  6月 15 02:29 smbXsrv_version_global.tdb
drwxrwx---  3 nobody nogroup    512  6月 12 18:55 sysvol
If you don't want export from all, you can limit like /mnt/repo as v4 root.
In this case, you can mount /tftpboot/swdrep/CentOS7EL_R as nfs path.
So you cannot mount above /mnt/repo (v4 root) directory.

I feel NFSv4 is simple and easy than NFSv3.

Note:
NFSv4 user map is domain base. (user@localhost by default under NAS4Free)
If your domain is not same, you might need Name = "nfsuserd_flags" and Value = "-domain YOURDOMAIN" in System|Advanced|rc.conf.

You don't mind about UID/GID like NFS v3.
Thank you for suggestions, By linux desktop virtual machine, nfs is mounted correctly and it also mounted correctly by virtual machine with netboot, but appears "No suitable image". Also i'd know if "Default" file is correct. See attachment.
You do not have the required permissions to view the files attached to this post.

GianDO76
Starter
Starter
Posts: 52
Joined: 14 Jul 2015 08:29
Status: Offline

Re: TFTP Server and Service

#32

Post by GianDO76 » 04 Oct 2015 02:28

The problem seems be solved. Everything occured with NFSv4. I made a test without NFSv4 and the problem is disappeared.
With NFSv4 the filesystem was mounted, but mounting that from another linux desktop, it was unreadable.

Why This problem happens with NFSv4?

Using the previous version of NFS, everything runs correctly.

Post Reply

Return to “TFTP”