USB hub with 2 drives attached to router/server

Hi there,
I have a modem/router Linksys WRT32X with OpenWrt 19.07.8 and 2 WD element USB3 storage attached through a HaetFire USB 3.0 Hub Splitter 4 Port.
I use nfs to share the storage drives.
With only one storage drive, this is working fine but with the both, I have an issue as follow.
Server-side config

~# uci show fstab
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='0'
fstab.@global[0].anon_mount='1'
fstab.@mount[0]=mount
fstab.@mount[0].target='/mnt/hd6'
fstab.@mount[0].uuid='c6584879-c77b-42c6-9acf-a3996fb15442'
fstab.@mount[0].enabled='1'
fstab.@mount[1]=mount
fstab.@mount[1].enabled='1'
fstab.@mount[1].uuid='d7d5bc17-1fa1-4d16-966b-a2240d4b114e'
fstab.@mount[1].target='/mnt/hd7'

~# ls /mnt/hd6
lost+found  media
~# ls /mnt/hd7
lost+found  share

~# showmount -e 192.168.1.1
Export list for 192.168.1.1:
/mnt/hd7 192.168.1.0/255.255.255.0
/mnt/hd6 192.168.1.0/255.255.255.0


Everything looks good so far
Computer/client-side config, Opensuse Leap 15.2

~> cat /etc/auto.misc
...
HD6        -fstype=nfs        192.168.1.1:/mnt/hd6
HD7        -fstype=nfs        192.168.1.1:/mnt/hd7

~> sudo showmount -e 192.168.1.1
Export list for 192.168.1.1:
/mnt/hd7 192.168.1.0/255.255.255.0
/mnt/hd6 192.168.1.0/255.255.255.0

~> ls /mnt/HD6
lost+found  media
~> ls /mnt/HD7
lost+found  media

As you can see ls /mnt/HD7 shows media instead of share subdir.

Question: Do you have any experience with a USB hub? Is it my mistake or is it not possible to use the hub with 2 drives in the same time?

Many thanks

Hi
Very likely it can’t handle two devices on one port…

The specs show;


One(1) USB 3.0 port
One(1) Combo eSATA/USB 2.0 port

Suggest you use the eSATA port for one device…

WD Element has USB3 connection, not eSATA, so I can’t connect it.

I don’t understand this behaviour because I can ssh the server and access the drives without issue. See ls above
About my present config; Is it possible to export a subdir from the server? I mean
/mnt/hd6/media
/mnt/hd7/share
and mount them in the client? Will it work?

Hi
I wonder if using the UUID would help to differentiate the two devices on the client.

Where I could use it? I’ll try

Hi
So, looks like a fsid issue… See NFS mounting incorrect NFS export | Support | SUSE I would use the UUID for the fsid.

I never tried this. However I found that drives attached through USB are easily accessed through cifs mounts:

erlangen:~ # grep fritz /etc/fstab
//fritz.box/FRITZ.NAS                      /fritz.box              cifs   noauto,username=ftpuser,vers=1.0  0  0
erlangen:~ # 

You may try to attach each of the two drives directly to the Linksys WRT32X USB 3.0 and eSATA/USB 2.0 ports. Then search for nfs exports and shares of OpenWrt.

I tried as said in the Suse link above and some other (IBM, man page)

~# cat /etc/exports
#/mnt/hd6    192.168.1.0/255.255.255.0(fsid="c6584879c77b42c69acfa3996fb15442" rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd7    192.168.1.0/255.255.255.0(fsid="d7d5bc171fa14d16966ba2240d4b114e" rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd6    192.168.1.0/255.255.255.0(fsid='c6584879c77b42c69acfa3996fb15442' rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd7    192.168.1.0/255.255.255.0(fsid='d7d5bc171fa14d16966ba2240d4b114e' rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd6    192.168.1.0/255.255.255.0(fsid=c6584879c77b42c69acfa3996fb15442 rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd7    192.168.1.0/255.255.255.0(fsid=d7d5bc171fa14d16966ba2240d4b114e rw,all_squash,async,no_subtree_check,fsid=0)
/mnt/hd6    192.168.1.0/255.255.255.0(fsid=6 rw,all_squash,async,no_subtree_check,fsid=0)
/mnt/hd7    192.168.1.0/255.255.255.0(fsid=7 rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd6    192.168.1.0/255.255.255.0(rw,all_squash,async,no_subtree_check,fsid=0)
#/mnt/hd7    192.168.1.0/255.255.255.0(rw,all_squash,async,no_subtree_check,fsid=0)
~# exportfs -ra
exportfs: /etc/exports:1: syntax error: bad option list


I tried all lines with # by pair and got the error for all with the fsid= option.
I think I run nfs ver4.
It looks like a bug!?

CIF is for Win environment, I run only Linux and Linux based OS
I tried to get some info on OpenWRT forum but after 3 days still no answer. Maybe with the new info I got here, I will get some attention.

Hi
Remove the fsid=0 entry.

The share //fritz.box/FRITZ.NAS in the above example is provided by FRITZ!OS 6.35, which is a linux derivative. It’s mounted with option cifs by latest Tumbleweed.

:good:, It’s working!!!
I did 2 mistakes in the last export file change; Forgot to place a “,” as option delimiter and didn’t notice the last fsid=0 as mentioned by malcolmlewis

Thank you all for your valuable help.
I wish you a happy new year

There is USB 2.0/eSATA combo port.