Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
We have added some NFS shares to the fstab and now the server is not rebooting. I don't think the mount points had been created! Would this stop the server ...
  1. #1
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301

    fstab, nfs, mount points and rebooting

    We have added some NFS shares to the fstab and now the server is not rebooting. I don't think the mount points had been created!

    Would this stop the server booting?
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    Unfortunately, yes.

    Your options are: local console, remote management, live cd, ..
    and comment the new lines in /etc/fstab
    But you know that
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    As a further step, a autofs based setup might help:

    Roughly like this:
    21.2.2.*Mounting NFS File Systems using autofs

    a) booting will succeed
    b) the mountpoint is only there, if it is needed
    You must always face the curtain with a bow.

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Yes,I'll second autofs.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  5. #5
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    Quote Originally Posted by Irithori View Post
    Unfortunately, yes.

    Your options are: local console, remote management, live cd, ..
    and comment the new lines in /etc/fstab
    But you know that
    I was mostly sure but didn't know if adding NFS into the equation would change things; it wasn't the only change made.

    Ah well, that means someone gets a day out on Monday.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  6. #6
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    Quote Originally Posted by Lakshmipathi View Post
    Yes,I'll second autofs.
    NFS is only a temporary solution. It is going to be replaced with an incron based system as our other servers are rebuilt.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  7. #7
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Elija, I've read many of your posts, and learned from you more than once. Having shot dumb holes in my foot more than once, I share your pain and probable embarrassment.

    Hope it will make you feel better that I just learned about incron because of this post. Was unaware of it until just now. Lots of possibilities for things I've scripted around my elbow to get to.

  8. #8
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    incrond is a start, but the real fun starts with lsyncd
    You must always face the curtain with a bow.

  9. #9
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    Quote Originally Posted by greyhairweenie View Post
    Elija, I've read many of your posts, and learned from you more than once. Having shot dumb holes in my foot more than once, I share your pain and probable embarrassment.

    Hope it will make you feel better that I just learned about incron because of this post. Was unaware of it until just now. Lots of possibilities for things I've scripted around my elbow to get to.
    It's the first time I've done it at work and in fairness, it took two of us to really screw it up

    Quote Originally Posted by Irithori View Post
    incrond is a start, but the real fun starts with lsyncd
    But I understand incron and I've proved it works. I don't want to go through that again
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  10. #10
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    If it already works, fine

    But the basics are the same.
    incrond and lsyncd react on fileevents for a given directory.
    Such as create, move, delete, etc and can do defineable actions for them.

    But incrond only works on one directory level, while lsyncd can monitor recursively.
    The possible actions are much more advanced, it is lua based scripting.
    Plus, you get
    - logging
    - queuing before action
    - multiple targets
    - exclude patterns
    - etc

    And while the name lsyncd indicates syncing (and yes, this is the primary purpose), lsyncd can trigger arbitrary actions
    You must always face the curtain with a bow.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...