Opened 2 years ago
Closed 2 years ago
#294 closed defect (fixed)
Unable to specify multiple networks for NFS shares
| Reported by: | johnpletka | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Backend | Version: | 8.0-RC5 |
| Keywords: | nfs | Cc: |
Description
When the GUI writes out the /etc/exports file, it adds a "-network" <Whatever you typed in>. That works fine if you specify a single network, but if you specify multiple networks, it breaks and none of them can log in.
For example:
/mnt/tank/xen_nfs -alldirs -mapall=root:wheel -network 10.1.1.20/30 10.1.1.78/30 10.1.1.104/30
gives permissions problems to everyone trying to log in
but
/mnt/tank/xen_nfs -alldirs -mapall=root:wheel 10.1.1.20 10.1.1.78 10.1.1.104
works.
You can get around it by editing the exports file directly, this is probably something the GUI should support
Change History (2)
comment:1 Changed 2 years ago by jpaetzel
comment:2 Changed 2 years ago by jpaetzel
- Resolution set to fixed
- Status changed from new to closed
Fixed in 8.0-RELEASE

exports doesn't support multiple networks. It will let you specify a list of hosts, and that is something the GUI doesn't support. You can't mix and match -network with individual hosts either.
The feature enhancement would be to allow a list of hosts to be entered, and that being mutually exclusive with specifying a network.
In this example case, you would have to specify 10.1.1.0/25 for the network, which depending on the setup might be too broad.