Interoperability Between automount Implementations?
vinay asks: "We are trying to integrate our Sun Solaris machines
with new Linux servers. One major issue we currently have is to have
a single set of automount files that will work for both environments.
After going through all of the HOWTOs and the FAQs for Linux automount,
we were troubled to see that Linux automount has a very basic feature
set, and isn't very compatible with Solaris automount." Might
it be possible for Linux to emulate the missing features offered in
Solaris automount via expert use of short scripts?
It's the same thing with all of the software we have installed, we can mount the Linux software in a different tree, but in that case all startup files (.cshrc, .bash_profile, etc) will have to different for each OS (or some other messy workarounds). The way I would prefer to handle this is to install Solaris software in /software/SunOS, and Linux in /software/Linux and mount them via variable substitution in the automount file:
Also, Linux automount recommends that you avoid mounting in the root directory area, but the automount from other vendors don't seem to have this limitation, and make use of the '/-' key."
"We are primarily interested in how to take care of '/-' key and variable substitution. Currently, one can call a map like:
and in auto.direct can have entry like/- auto.direct mount-options
Now this map will not work for Linux. The best one can do is mount the projects tree as /linux/projects and make some softlinks. However, this becomes very messy as the number of machines grows (and this is only for one directory path)./project1 -some_options FileServer:/projects/project1
It's the same thing with all of the software we have installed, we can mount the Linux software in a different tree, but in that case all startup files (.cshrc, .bash_profile, etc) will have to different for each OS (or some other messy workarounds). The way I would prefer to handle this is to install Solaris software in /software/SunOS, and Linux in /software/Linux and mount them via variable substitution in the automount file:
This way users will have a single startup file and they will only mount the binaries of their current OS in exactly same path./software -options FileServer:/software/$OSNAME
Also, Linux automount recommends that you avoid mounting in the root directory area, but the automount from other vendors don't seem to have this limitation, and make use of the '/-' key."
While, I'm all for compatibility, it's not unreasonable to expect programs like "automount" to vary between implementations. Has anyone figured out a work around for this situation that isn't so "messy"? Would preprocessing the automount options file right before invocation be possible, in this case? And are there plans to make Linux automount more compatible with some of the options available to the Solaris version?
and use a csh/bash script.
Linux autofs is missing many, many features, such as being able to specify multiple redundant servers for one mount point. I use amd, packaged in am-utils. It has almost everything you need, but no direct maps (I think it's a Linux limitation: the automounter has to take the whole directory, not just entries in it).
/nfs, then putting symbolic links in root, such as /shares -> /nfs/shares. Of course, you then have to maintain those links.
You can simulate this by having a real mount point, like
You still may need different map formats. For total compatibility, you might have to make executable maps that read and reformat the real maps. I gave in and just keep two sets of maps, one for Linux and one for IRIX.
Home directory mounts have not been a problem, and I still use autofs for those, becuase it's a bit faster.
Why have I been receiving emails from some guy called "CmdrTaco," in which he seems to be speaking in some kind of code language?
Good Lord. What is "Taco-snotting?"
Ewwwwww. So, can I stop receiving these emails?
I can't stop receiving these emails from CmdrTaco!?
Have you ever been Taco-Snotted?
That's horrible. Does "Taco-snotting" have anything to do with CmdrTaco's "special taco"?
Does Jon Katz get involved in any of this? I thought he was a pædophile, not a homosexual.
No, thanks. I'm already CmdrTaco's boi toi.
________________________________________ RECENT READER COMMENTSOnce comments have been archived by Slashdot, they're removed from the Official Taco-Snotting FAQ. However much I would like to paste 200k crapfloods into Slashdot, my browser is a piece of shit and won't let me!
-
Re:Taco-Powered Christmas Snot (Score:0)
by Anonymous Coward on 2001.12.15 7:05 (#2707493)
-
Re:Bye bye Windows! (Score:0)
by Anonymous Coward on 2001.12.15 5:12 (#2707245)
-
Re:That's my department, boy! (Score:-1, Troll)
by Anonymous Coward (actually afree87) on 2001.12.15 2:51 (#2706921)
-
Re:CmdrTaco BANNED FOR LIFE from Taco Bell!!!!!! (Score:-1)
by WeatherTroll on 2001.12.15 2:48 (#2706907)
-
Re:Snottle OSnotX, BSnotD, and Snottan Snottard (Score:0)
by Anonymous Coward (actually afree87) on 2001.12.15 2:47 (#2706900)
-
Re:Bye bye Windows! (Score:-1, Offtopic)
by Anonymous Coward on 2001.12.15 1:35 (#2706675)
-
Re:Bye bye Windows! (Score:-1)
by JonKatz on on 2001.12.15 0:29 (#2706495)
-
Important Information For Slashdot Users (Score:-1, Troll)
by Anonymous Coward on 2001.12.14 3:09 (#2702660)
-
Re:Snotback: Snotto, Snotz, Snottion (Score:0)
by Anonymous Coward on 2001.12.14 2:44 (#2702581)
-
Re:Italics are yummy! (Score:-1, Troll)
by Super Mario Troll on 2001.12.14 2:33 (#2702535)
-
Re:Italics are yummy! (Score:-1, Offtopic)
by Anonymous Coward on 2001.12.14 1:41 (#2702370)
-
Re:The WIPO Troll Announces Portable Snotbox (Score:-1, Offtopic)
by Anonymous Coward on 2001.12.07 7:58 (#2669658)
-
Re:The WIPO Troll Announces Portable Snotbox (Score:-1, Troll)
by Anonymous Coward on 2001.12.07 5:48 (#2669422)
-
Re:The WIPO Troll Announces Portable Snotbox (Score:-1)
by GaylordFucker on 2001.12.07 5:39 (#2669394)
-
Re:Portable Snotcube! (Score:-1, Offtopic)
by Anonymous Coward on 2001.12.07 3:58 (#2669117)
-
Re:Yum yum taco-snotting! (Score:-1, Offtopic)
by Anonymous Coward on 2001.12.02 22:15 (#2644499)
-
This is getting old (Score:-1, Troll)
by Anonymous Coward on 2001.12.02 20:14 (#2644227)
-
Fucking hilarious too bad it didnt get a 5:Funny (Score:-1, Offtopic)
by Anonymous Coward on 2001.12.02 19:01 (#2644105)
-
Re:Taco-snotting@Home! (Score:-1, Offtopic)
by Dark_Cobra87 on 2001.12.01 23:03 (#2642180)
-
Re:Fuck Linux! Fuck him hard! (Score:-1)
by Fecal Troll Matter on 2001.12.01 20:55 (#2641791)
-
Look (Score:-1)
by ArchieBunker on 2001.12.01 20:19 (#2641679)
-
Re:Congratulations! You have been WIPO'd!! (Score:0)
by Anonymous Coward on 2001.12.01 8:37 (#2640602)
________________________________________Has this been submitted to linuxdoc.org yet?
That may be true, but have you made love to a wombat today?
Wow, WipoTroll, you really know how to snot! And you can scramble Slashdot's HTML, too! I love boys who do that! Come over to my place sometime!
CmdrTaco only goes to Taco Bell to get their hot sauce, and to solicit hot sauce enemas from underage male employees. He makes his own tacos.
We love you, WipoTroll! We want you to snot us, WipoTroll!
I want some Taco-snot! Where can I get some?
Please, please, please Taco-snot me. I know I would love it almost as much as fucking young boys. Pleadingly, JonKatz
It has recently come to my attention that the entire Slashdot crew engage in homosexual activities. CmdrTaco is one such person, and has dedicated his life to spreading the ideals of Taco-Snotting while enjoying the benefits of it. For further information on Taco-Snotting please refer to George WIPO Bush's Taco-Snotting FAQ which can be easily found by searching for the Slashdot journal of George WIPO Bush or by looking in the comments of Slashdot articles (Usually modded -1).
It has also come to my attention that CmdrTaco has other interests besides homosexuality (Believe it or not). One such interest includes a budding music career with a song titled "Gaping Anus". The details are sketchy on this topic but I do know that besides the lead vocals of CmdrTaco, it includes Timothy and CowboyNeal (Also members of the Slashdot crew). There has been no release date set for this album or which record label it will be produced under. I believe CmdrTaco is planning to set up his own label, Taco-Snotting Records, with the intention of releasing the song on a cd-single with various remixes as soon as possible (To catch the current popularity of the Taco-Snotting fad). On a side note, I would not believe this fad will ever wear out (like a Snotted-out-geek); I am sorry to say Taco-Snotting is here to stay :-(. Various remixes of Gaping Anus will include: "Extra Jizz", "Snot Me Baby One More Time", "www.Goatse.cx", and "Once You Taco-Snot, You Can't Stop". I am sure many, many, more are sure to come. I predict this album will be a very hot seller this holiday season, especially with in or out of closet homosexuals, and with those who have no self-respect (Readers of Slashdot).
Through a good, non-homosexual friend of mine, I have recieved a copy of the lyrics to the Gaping Anus musical composition. Included after the lyrics is a very speical tribute written by yours truely. Perhaps CmdrTaco will ask me to provide the vocals. Please feel free to read the lyrics and post your comments and disgust. E-mail CmdrTaco with this disgust also.
BTW, please do not reply with the intention of flaming me because the lyrics are a rip-off of Insane Clown Posse's "Slim Anus". For more information on ICP and Slim Anus refer here and here. CmdrTaco is the author of this fine musical work and not me. So, it is obviously he who has ripped off ICP and not me. Thank you.
Read the rest of this shit...
you know, every time i read this i want to punch you more and more. the taco snotting thing is old, lame, boring, and over done. it never was remotely funny or good though. it sounds like a 10th grader wrote it too. so please, go play in traffic or shut the fuck up so real trolls can post.
Keep up the good work! Educate the masses to the dangers of Taco-Snotting!
It's a me, the Super Mario Troll! Would you like to see my gaping troll anusWIPO - Man you trolls are shit compared to Egg Trolls troll's. Egg Man is just so much more original.
That leaky sound you hear is CmdrTaco pissing himself after seeing this.
Slashdot trolling just got a whole lot easier...
http://www.geocities.com/frostpist/
Spread the word!
Q: Is CmdrTaco gay?
A: He Mos' certainly is!
not to mention... The WIPO Troll used himself as a test subject to try out the portable snotbox... i await your results and hope your product gets approved...
Regards, GayGet that rats nest off your head, you numbskull -- Wesley Willis
stfu. no one really cares about your lame little "troll". make some new material (not that anything you've ever said is worth a damn..)
Dear SLASH crew - this post makes it clear why you need to add a new category - "tell it like it is (+1)"
Hey dicksuck, why don't you come up with new troll material? Everyone has seen the tacosnotting 100 times already. Fuckwit. Assholage. Gay. Lick my anal nectar.
this is good shit man
Oops, forgot to check that Taco-snot option...
Mmmmmmm, Taco Sauce...
Sig (appended to the end of comments you post, 120 chars)
I love trolling but this shit is getting old, fast. At least start mixing them up a little bit. How about the 'How OSM was Freed' series?
http://www.naawp.org/
Stop posting this! I've got hangover and Taco Snotting doesn't make me feel any better.
I'm really glad that Taco Snotting is illegal here in Europe.
J. Wipo Troll, Esq.
Crapflooder Associates
Slashdot.org
For the full-featured automounters (Solaris, IRIX), I then use a map looking like this:
make vortex:/sda7/pack-$OSNAME-$OSREL-$CPU/make-3.74 make-3.74 vortex:/sda7/pack-$OSNAME-$OSREL-$CPU/& binutils vortex:/sda7/pack-$OSNAME-$OSREL-$CPU/binutils-2.
The plain pack is for linux x86, the rest should be self-explanatory.
Because of the /pack system, I know that apache on a box, can always be restarted by doing /pack/apache/bin/apachectl restart, or even apachectl restart when I use /coll, and have /coll/local/bin and /coll/local/sbin first in my path.
Other than that, I set PATH and MANPATH (and some other stuff), differently with a case structure based on $OSNAME in .bashrc
It works pretty well./Styx
At work, we have an NIS server which contains all of our data. In our case, we mount the /home directory. Here are our relevants files:
/etc/auto.master:
/home auto.home -nobrowse
/etc/nsswitch.conf:
/home yp auto.home"
# Master map for automounter
#
+auto.master
Relevants entries in
netgroup: nis
auto.home: nis
auto.master: nis
And we start it as "/sbin/automount
See, all of the info is just an NIS field:
[tux-6] ~$ ypcat auto.master
auto.home
-hosts -nosuid
auto.home is also an NIS field that has all the rest of the stuff
We are using whatever automounter that comes with Solaris (I'm assuming. I never looked at it too hard) and Autofs 4.0.0pre10 or something like that on linux, and they both work. The config files are almost the same too.
1, 1, 2, 3, 5, 8, 13, 21 -- Mathematics is the Language of Nature.
What about the uname command wouldn't it be fairly easy to put something like
.cshrc .tcshrc etc..."
./newfiles/$file
./newfiles/$file
./newfiles/$file
./linux/$file >> ./newfiles/$file
./newfiles/$file
./solaris/$file >> ./newfiles/$file
./newfiles/$file
CUR_OS=`uname`
if test "$CUR_OS" == "Linux"
then
<paste linux parms here>
else
<paste solaris parms here>
fi
It seems to me this would be fairly easy if you already have two working implimentations of each to just make a file like this for mast all the files you currently have that run as shell scripts. You could even create them with a nice shell script by mounting the two dirs then running something like.
filelist=".bashrc
for file in filelist
do
echo "CUR_OS=\`uname\`" >
echo "if test \"\$CUR_OS\" == \"Linux\" >>
echo " then" >>
cat
echo " else" >>
cat
echo " fi" >>
done
Seems like it wouldn't be that hard or complicated. You could even use something like this to set MOUNT_PARMS for linux as well as one for linux then call automount $MOUNT_PARMS and have it run just like you want.
*disclaimer* - this is _not_ expert advice...
But, how about giving intermezzo a try
http://www.inter-mezzo.org