A Quark of A Different Spin. (adameros) wrote,
A Quark of A Different Spin.

Linux bug?

I have two redundant fileservers mounted as /fs1 and /fs2. I have a symbolic link of /fs pointing to one of them (in this case /fs1. I have a script that if the filesystem the link is pointing at should go down, it will remve the symbolic link and point it at the other drive.

The weird thing is, if I try to remove the symbolic link it locks up, like it is trying to stat the drive the link is currently pointing at. As I understand, a synbolic link is just pointer, so removing the link should never effect what it points at. It should only stat the target of the link if I try t go through the link.

If this is the case, why is this timing out. I've tried rm'ing the link and doing an "ln -sf" over the link.

To recap, /web is a symbolic link to /fs1 which is an nfs mount. If /fs1 goes down, suddenly I can not remove or overwrite the symbolic link on the local filesystem.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded