* I/O Wait on exportfs
@ 2012-01-17 14:29 Bertrand Jacquin
2012-01-17 15:09 ` J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: Bertrand Jacquin @ 2012-01-17 14:29 UTC (permalink / raw)
To: linux-nfs
Hi,
For a specific case I have /etc/exports with 1281 entries as I need
mount --bind to be exported to NFS Clients too.
Since I have ~1100 entries, reexporting /etc/exports have some bad
effects to connected clients, load rise to ~500 for 4/5 minutes, this is
always reproducible.
This was using 'exportfs -ra'. I did try with 'exportfs
192.168.0.1:/srv/mail/1234' to avoid reexport every directories, and
the sync process but the result is the same.
/etc/exports options look like :
/srv/mail 192.168.0.0/24(rw,async,no_wdelay,secure,no_root_squash,insecure_locks,no_subtree_check,nohide,crossmnt)
/srv/mail/1234 192.168.0.0/24(rw,async,no_wdelay,no_root_squash,insecure_locks,no_subtree_check,nohide,crossmnt)
NFS is mounted like this on client :
192.168.0.1:/srv/mail on /var/mail type nfs (rw,nosuid,sync,remount,noatime,nodiratime,nfsvers=3,rsize=8192,wsize=8192,hard,intr,proto=udp,nolock,actimeo=3)
Server versions:
Kernel: 2.6.32-bpo.5-amd64 (debian)
nfs-utils: 1.1.2
Client versions:
Kernel: 2.6.26-2-amd64 (debian)
nfs-utils: 1.1.2
Am I in a huge case not really intended or a configuration mistake ?
Thanks,
Bertrand
--
Bertrand Jacquin, EXOSEC (http://www.exosec.fr/)
ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS
Tel: +33 1 30 67 60 65 - Fax: +33 1 75 43 40 70
GSM: +33 6 71 01 70 30 - mailto:bjacquin@exosec.fr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I/O Wait on exportfs
2012-01-17 14:29 I/O Wait on exportfs Bertrand Jacquin
@ 2012-01-17 15:09 ` J. Bruce Fields
2012-01-17 15:43 ` Bertrand Jacquin
0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2012-01-17 15:09 UTC (permalink / raw)
To: Bertrand Jacquin; +Cc: linux-nfs
On Tue, Jan 17, 2012 at 03:29:45PM +0100, Bertrand Jacquin wrote:
> For a specific case I have /etc/exports with 1281 entries as I need
> mount --bind to be exported to NFS Clients too.
Could you explain what you mean by that?
> Since I have ~1100 entries, reexporting /etc/exports have some bad
> effects to connected clients, load rise to ~500 for 4/5 minutes, this is
> always reproducible.
>
> This was using 'exportfs -ra'. I did try with 'exportfs
> 192.168.0.1:/srv/mail/1234' to avoid reexport every directories, and
> the sync process but the result is the same.
Does a -t option (see rpc.mountd(8)) help?
> /etc/exports options look like :
>
> /srv/mail 192.168.0.0/24(rw,async,no_wdelay,secure,no_root_squash,insecure_locks,no_subtree_check,nohide,crossmnt)
> /srv/mail/1234 192.168.0.0/24(rw,async,no_wdelay,no_root_squash,insecure_locks,no_subtree_check,nohide,crossmnt)
Why do you need to export both?
--b.
>
> NFS is mounted like this on client :
>
> 192.168.0.1:/srv/mail on /var/mail type nfs (rw,nosuid,sync,remount,noatime,nodiratime,nfsvers=3,rsize=8192,wsize=8192,hard,intr,proto=udp,nolock,actimeo=3)
>
> Server versions:
> Kernel: 2.6.32-bpo.5-amd64 (debian)
> nfs-utils: 1.1.2
>
> Client versions:
> Kernel: 2.6.26-2-amd64 (debian)
> nfs-utils: 1.1.2
>
> Am I in a huge case not really intended or a configuration mistake ?
>
> Thanks,
> Bertrand
>
> --
> Bertrand Jacquin, EXOSEC (http://www.exosec.fr/)
> ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS
> Tel: +33 1 30 67 60 65 - Fax: +33 1 75 43 40 70
> GSM: +33 6 71 01 70 30 - mailto:bjacquin@exosec.fr
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I/O Wait on exportfs
2012-01-17 15:09 ` J. Bruce Fields
@ 2012-01-17 15:43 ` Bertrand Jacquin
2012-01-17 16:40 ` J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: Bertrand Jacquin @ 2012-01-17 15:43 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: linux-nfs
Le mardi 17 janvier 2012 à 16h09, « J. Bruce Fields » a écrit :
> On Tue, Jan 17, 2012 at 03:29:45PM +0100, Bertrand Jacquin wrote:
> > For a specific case I have /etc/exports with 1281 entries as I need
> > mount --bind to be exported to NFS Clients too.
>
> Could you explain what you mean by that?
In this case, I need /srv/mail to be exported to clients. But for a 1
month period, I need folders present in /srv/mail2 to be accessible in
/srv/mail.
We are moving datas to a SAN, and to avoid modifying any mail configuration
(and the long list depending on it), I mount /srv/mail2 subdirectory to
/srv/mailsubdirectory until all subdirectory are migrated :
# mount /dev/drbd5 /srv/mail
# mount /dev/mapper/iqn.dXX:san1.target0-lun0 /srv/mail2
# <moving data from /srv/mail/user1 to /srv/mail2/user1>
# mount --bind /srv/mail2/user1 /srv/mail/user1
To make /srv/mail2/user1 data visible for NFS client, I need to use
crossmnt options in /etc/exports as nohide is client per client.
exports(5) say :
Thus when a child filesystem "B" is mounted on a parent "A", setting
crossmnt on "A" has the same effect as setting "nohide" on B.
But I can't say that this had work at all, but adding child filesystem
in /etc/export, then 'mount -o remount' NFS partition on client fix
that. I'm maybe wrong, but my tests put me in that way.
> > Since I have ~1100 entries, reexporting /etc/exports have some bad
> > effects to connected clients, load rise to ~500 for 4/5 minutes, this is
> > always reproducible.
> >
> > This was using 'exportfs -ra'. I did try with 'exportfs
> > 192.168.0.1:/srv/mail/1234' to avoid reexport every directories, and
> > the sync process but the result is the same.
>
> Does a -t option (see rpc.mountd(8)) help?
This is interesting
Bertrand
--
Bertrand Jacquin, EXOSEC (http://www.exosec.fr/)
ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS
Tel: +33 1 30 67 60 65 - Fax: +33 1 75 43 40 70
GSM: +33 6 71 01 70 30 - mailto:bjacquin@exosec.fr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I/O Wait on exportfs
2012-01-17 15:43 ` Bertrand Jacquin
@ 2012-01-17 16:40 ` J. Bruce Fields
2012-01-17 16:53 ` Bertrand Jacquin
0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2012-01-17 16:40 UTC (permalink / raw)
To: Bertrand Jacquin; +Cc: linux-nfs
On Tue, Jan 17, 2012 at 04:43:19PM +0100, Bertrand Jacquin wrote:
> Le mardi 17 janvier 2012 à 16h09, « J. Bruce Fields » a écrit :
> > On Tue, Jan 17, 2012 at 03:29:45PM +0100, Bertrand Jacquin wrote:
> > > For a specific case I have /etc/exports with 1281 entries as I need
> > > mount --bind to be exported to NFS Clients too.
> >
> > Could you explain what you mean by that?
>
> In this case, I need /srv/mail to be exported to clients. But for a 1
> month period, I need folders present in /srv/mail2 to be accessible in
> /srv/mail.
>
> We are moving datas to a SAN, and to avoid modifying any mail configuration
> (and the long list depending on it), I mount /srv/mail2 subdirectory to
> /srv/mailsubdirectory until all subdirectory are migrated :
>
> # mount /dev/drbd5 /srv/mail
> # mount /dev/mapper/iqn.dXX:san1.target0-lun0 /srv/mail2
> # <moving data from /srv/mail/user1 to /srv/mail2/user1>
> # mount --bind /srv/mail2/user1 /srv/mail/user1
>
> To make /srv/mail2/user1 data visible for NFS client, I need to use
> crossmnt options in /etc/exports as nohide is client per client.
>
> exports(5) say :
>
> Thus when a child filesystem "B" is mounted on a parent "A", setting
> crossmnt on "A" has the same effect as setting "nohide" on B.
>
> But I can't say that this had work at all, but adding child filesystem
> in /etc/export, then 'mount -o remount' NFS partition on client fix
> that. I'm maybe wrong, but my tests put me in that way.
That's a bug, it should be enough just to export /srv/mail, and the
mounts underneath should then automatically be exported.
Hm--there have been a couple fixes in that area recently. You might try
building the most recent nfs-utils.
Then you shouldn't need to list every subexport explicitly in
/etc/exports.
(That may not solve your performance problem, though.)
--b.
>
> > > Since I have ~1100 entries, reexporting /etc/exports have some bad
> > > effects to connected clients, load rise to ~500 for 4/5 minutes, this is
> > > always reproducible.
> > >
> > > This was using 'exportfs -ra'. I did try with 'exportfs
> > > 192.168.0.1:/srv/mail/1234' to avoid reexport every directories, and
> > > the sync process but the result is the same.
> >
> > Does a -t option (see rpc.mountd(8)) help?
>
> This is interesting
>
> Bertrand
>
> --
> Bertrand Jacquin, EXOSEC (http://www.exosec.fr/)
> ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS
> Tel: +33 1 30 67 60 65 - Fax: +33 1 75 43 40 70
> GSM: +33 6 71 01 70 30 - mailto:bjacquin@exosec.fr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I/O Wait on exportfs
2012-01-17 16:40 ` J. Bruce Fields
@ 2012-01-17 16:53 ` Bertrand Jacquin
0 siblings, 0 replies; 5+ messages in thread
From: Bertrand Jacquin @ 2012-01-17 16:53 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: linux-nfs
Le mardi 17 janvier 2012 à 17h40, « J. Bruce Fields » a écrit :
> On Tue, Jan 17, 2012 at 04:43:19PM +0100, Bertrand Jacquin wrote:
> > Le mardi 17 janvier 2012 à 16h09, « J. Bruce Fields » a écrit :
> > > On Tue, Jan 17, 2012 at 03:29:45PM +0100, Bertrand Jacquin wrote:
> > > > For a specific case I have /etc/exports with 1281 entries as I need
> > > > mount --bind to be exported to NFS Clients too.
> > >
> > > Could you explain what you mean by that?
> >
> > In this case, I need /srv/mail to be exported to clients. But for a 1
> > month period, I need folders present in /srv/mail2 to be accessible in
> > /srv/mail.
> >
> > We are moving datas to a SAN, and to avoid modifying any mail configuration
> > (and the long list depending on it), I mount /srv/mail2 subdirectory to
> > /srv/mailsubdirectory until all subdirectory are migrated :
> >
> > # mount /dev/drbd5 /srv/mail
> > # mount /dev/mapper/iqn.dXX:san1.target0-lun0 /srv/mail2
> > # <moving data from /srv/mail/user1 to /srv/mail2/user1>
> > # mount --bind /srv/mail2/user1 /srv/mail/user1
> >
> > To make /srv/mail2/user1 data visible for NFS client, I need to use
> > crossmnt options in /etc/exports as nohide is client per client.
> >
> > exports(5) say :
> >
> > Thus when a child filesystem "B" is mounted on a parent "A", setting
> > crossmnt on "A" has the same effect as setting "nohide" on B.
> >
> > But I can't say that this had work at all, but adding child filesystem
> > in /etc/export, then 'mount -o remount' NFS partition on client fix
> > that. I'm maybe wrong, but my tests put me in that way.
>
> That's a bug, it should be enough just to export /srv/mail, and the
> mounts underneath should then automatically be exported.
>
> Hm--there have been a couple fixes in that area recently. You might try
> building the most recent nfs-utils.
>
> Then you shouldn't need to list every subexport explicitly in
> /etc/exports.
With nfs-utils 1.2.5 this is fine.
Thanks for your help.
Bertrand
--
Bertrand Jacquin, EXOSEC (http://www.exosec.fr/)
ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS
Tel: +33 1 30 67 60 65 - Fax: +33 1 75 43 40 70
GSM: +33 6 71 01 70 30 - mailto:bjacquin@exosec.fr
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-17 16:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-17 14:29 I/O Wait on exportfs Bertrand Jacquin
2012-01-17 15:09 ` J. Bruce Fields
2012-01-17 15:43 ` Bertrand Jacquin
2012-01-17 16:40 ` J. Bruce Fields
2012-01-17 16:53 ` Bertrand Jacquin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).