Professional Web Applications Themes

Automount problem (structure below mount point) - Linux Setup, Configuration & Administration

I have a RH8 machine "everest" with some NFS exports: /home 192.168.7.0/24(ro,sync) /data/alpha 192.168.7.0/24(ro,sync) /data/beta 192.168.7.0/24(ro,sync) (NB Each of these is a separate disk partition: I can't just export /data because NFS does pay attention to partition boundaries and prunes /data/alpha & /data/beta... which are the only things in /data. There seems to be a "nohide" export option which might disable this behaviour, but "man exports" gives good reasons for not using it). Anyway, I want to mount these on another machine, where I have /etc/auto.master: /mnt/everest /etc/auto.everest -secure,hard,bg,intr and, currently, /etc/auto.everest: home everest:/home data.alpha everest:/data/alpha data.beta everest:/data/beta This gives ...

  1. #1

    Default Automount problem (structure below mount point)

    I have a RH8 machine "everest" with some NFS exports:
    /home 192.168.7.0/24(ro,sync)
    /data/alpha 192.168.7.0/24(ro,sync)
    /data/beta 192.168.7.0/24(ro,sync)
    (NB Each of these is a separate disk partition: I can't just export
    /data because NFS does pay attention to partition boundaries and prunes
    /data/alpha & /data/beta... which are the only things in /data. There
    seems to be a "nohide" export option which might disable this behaviour,
    but "man exports" gives good reasons for not using it).

    Anyway, I want to mount these on another machine,
    where I have /etc/auto.master:
    /mnt/everest /etc/auto.everest -secure,hard,bg,intr
    and, currently, /etc/auto.everest:
    home everest:/home
    data.alpha everest:/data/alpha
    data.beta everest:/data/beta

    This gives me:
    /mnt/everest/home
    /mnt/everest/data.alpha
    /mnt/everest/data.beta
    all containing exactly what I'd expect them to. Hurrah... except
    that those dots are a cop out and I'd really really REALLY rather have:
    /mnt/everest/home
    /mnt/everest/data/alpha
    /mnt/everest/data/beta
    but there doesn't seem to be any way of mounting anywhere except immediately
    below the /mnt/everest mountpoint. Replacing the dots with slashes in
    the auto.everest doesn't do what I'd hope (at least not on Linux; there
    are plenty of example configurations on the web doing exactly what I want
    but they all seem to be using something called "direct maps" on Sun's
    Solaris automounter).

    man 5 autofs's UNSUPPORTED section seems to suggest I'm out of luck
    (direct maps are unsupported), or does anyone here know different ? Am
    I missing some trick with wildcards perhaps ?

    Thanks for any help, pointers for what to RTFM etc
    Tim

    Tim Day Guest

  2. #2

    Default Re: Automount problem (structure below mount point)

    Hi,
    > This gives me:
    > /mnt/everest/home
    > /mnt/everest/data.alpha
    > /mnt/everest/data.beta
    > all containing exactly what I'd expect them to. Hurrah... except
    > that those dots are a cop out and I'd really really REALLY rather have:
    > /mnt/everest/home
    > /mnt/everest/data/alpha
    > /mnt/everest/data/beta
    Why not mount them somewhere else as "whatever you feel like", and create
    softlinks in the places you want the mounts to appear in a manually created
    directory "data"?

    Example: Mount on /mnt/.hidden/home, /mnt/.hidden/data.alpha,
    /mnt/.hidden/data.beta, then create /mnt/everest and /mnt/everest/data as
    "plain" directories and create softlinks from /mnt/everest/home to
    /mnt/.hidden/home, /mnt/everest/data/alpha to /mnt/.hidden/data.alpha etc?

    Greetings,
    Thomas
    Thomas Richter Guest

Similar Threads

  1. USB key mount problem with 4.11
    By Louis LeBlanc in forum FreeBSD
    Replies: 2
    Last Post: February 22nd, 08:26 PM
  2. DFS Mount Point/Fileset Question
    By Tiglath in forum AIX
    Replies: 0
    Last Post: August 12th, 08:27 PM
  3. automount permissions problem
    By Neal Lippman in forum Debian
    Replies: 2
    Last Post: July 27th, 11:10 AM
  4. Mount Point Problems
    By ragnus2003 in forum Sun Solaris
    Replies: 1
    Last Post: July 27th, 05:58 AM
  5. Mount Point
    By Tony Curtis in forum Sun Solaris
    Replies: 2
    Last Post: July 26th, 10:39 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139