Skip to contentSkip to conversation

hang problem when umount a nfs point

DISCUSSION dahai_tian 3 participants 7 messages Nov 1, 2012 – Nov 9, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

dahai_tian

author
#0 lore raw

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

#1 lore raw

Hi all,

Anyone who can kindly give some suggestion? or we just put question to the wrong list?

Thanks.

Jack

2012/11/1 dahai_tian <[email protected]>:

Quoted 13 lines

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to a message not in the archive

2012/11/7 Martín Cigorraga <[email protected]>:

Quoted 23 lines
Quoted 19 lines · Jack Wang

Hi all,

Anyone who can kindly give some suggestion? or we just put question to the wrong list?

Thanks.

Jack

2012/11/1 dahai_tian <[email protected]>:

Quoted 8 lines

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

Quoted 7 lines

Hi Jack, use the -l (lazy) switch:

# umount -l {your mounted nfs share}

Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them) may leave shared memory a mess.
(And I would like to see how do you make to mount any NFS share again without booting)

Thanks Martin for kindly help.

umount -l did work, but why nfsv3 do not have this problem?

Jack

#4 lore raw
Quoted 27 lines · Jack Wang

2012/11/7 Martín Cigorraga <[email protected]>:

Quoted 26 lines
Quoted 19 lines · Jack Wang

Hi all,

Anyone who can kindly give some suggestion? or we just put question to the wrong list?

Thanks.

Jack

2012/11/1 dahai_tian <[email protected]>:

Quoted 8 lines

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

Hi Jack, use the -l (lazy) switch:

# umount -l {your mounted nfs share}
Quoted 8 lines
Quoted 4 lines

Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them) may leave shared memory a mess.
(And I would like to see how do you make to mount any NFS share again without booting)

Thanks Martin for kindly help.

umount -l did work, but why nfsv3 do not have this problem?

I don't know what it is exactly. But in general I wouldn't expect umount to work when the server's unavailable.

--b.

#5 lore raw

2012/11/8 J. Bruce Fields <[email protected]>:

Quoted 33 lines · Jack Wang
Quoted 32 lines

2012/11/7 Martín Cigorraga <[email protected]>:

Quoted 30 lines
Quoted 19 lines · Jack Wang

Hi all,

Anyone who can kindly give some suggestion? or we just put question to the wrong list?

Thanks.

Jack

2012/11/1 dahai_tian <[email protected]>:

Quoted 8 lines

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

Hi Jack, use the -l (lazy) switch:

# umount -l {your mounted nfs share}

Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them) may leave shared memory a mess.
(And I would like to see how do you make to mount any NFS share again without booting)

Quoted 8 lines
Quoted 3 lines

Thanks Martin for kindly help.

umount -l did work, but why nfsv3 do not have this problem?

I don't know what it is exactly. But in general I wouldn't expect umount to work when the server's unavailable.

--b.

Thanks for your time Bruce, but there are chance the server unavailable , why you think umount don't work is expected?

Jack

#6 lore raw
Quoted 38 lines · Jack Wang

2012/11/8 J. Bruce Fields <[email protected]>:

Quoted 37 lines · Jack Wang
Quoted 35 lines

2012/11/7 Martín Cigorraga <[email protected]>:

Quoted 23 lines
Quoted 19 lines · Jack Wang

Hi all,

Anyone who can kindly give some suggestion? or we just put question to the wrong list?

Thanks.

Jack

2012/11/1 dahai_tian <[email protected]>:

Quoted 8 lines

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

Quoted 7 lines

Hi Jack, use the -l (lazy) switch:

# umount -l {your mounted nfs share}

Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them) may leave shared memory a mess.
(And I would like to see how do you make to mount any NFS share again without booting)

Thanks Martin for kindly help.

umount -l did work, but why nfsv3 do not have this problem?

Quoted 7 lines
Quoted 4 lines

I don't know what it is exactly. But in general I wouldn't expect umount to work when the server's unavailable.

--b.

Thanks for your time Bruce, but there are chance the server unavailable , why you think umount don't work is expected?

It's tough for the client to deal safely with an unreachable server. Worst case it may still have data in its buffers that applications have written but that hasn't yet made it to the server.

If you don't have any opens or other state on the filesystem any more, there might be things that could be done to make it easier to umount in that case--I haven't thought it through--but I doubt that's a high priority, so it's likely up to you to write the code and persuade people it's worthwhile.

--b.

#7 lore raw

2012/11/8 J. Bruce Fields <[email protected]>:

Quoted 51 lines · Jack Wang
Quoted 38 lines

2012/11/8 J. Bruce Fields <[email protected]>:

Quoted 37 lines · Jack Wang
Quoted 35 lines

2012/11/7 Martín Cigorraga <[email protected]>:

Quoted 23 lines
Quoted 19 lines · Jack Wang

Hi all,

Anyone who can kindly give some suggestion? or we just put question to the wrong list?

Thanks.

Jack

2012/11/1 dahai_tian <[email protected]>:

Quoted 8 lines

Hi all:
I mount a local directory to a nfs server. When nfs server is
stopped
for some accidental cause, I try to umount the mount point, the umount command will hang and 'time out' messages are continually printed in the terminal. How can I avoid hanging in this case? BTW, This issue does not exist when I changed nfs version from 4 to 3.
Look forward to your response, thanks!

Quoted 7 lines

Hi Jack, use the -l (lazy) switch:

# umount -l {your mounted nfs share}

Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them) may leave shared memory a mess.
(And I would like to see how do you make to mount any NFS share again without booting)

Thanks Martin for kindly help.

umount -l did work, but why nfsv3 do not have this problem?

Quoted 7 lines
Quoted 4 lines

I don't know what it is exactly. But in general I wouldn't expect umount to work when the server's unavailable.

--b.

Thanks for your time Bruce, but there are chance the server unavailable , why you think umount don't work is expected?

It's tough for the client to deal safely with an unreachable server. Worst case it may still have data in its buffers that applications have written but that hasn't yet made it to the server.

Quoted 7 lines

If you don't have any opens or other state on the filesystem any more, there might be things that could be done to make it easier to umount in that case--I haven't thought it through--but I doubt that's a high priority, so it's likely up to you to write the code and persuade people it's worthwhile.

--b.

Thanks for explaination.

Jack