Re: How To Create /home on a Network Drive
Anthony Messina wrote, On 05/10/2009 02:39 AM: no, you're right about that, but i was thinking about this yesterday too. how does one use their linux laptop like some of the coporate folks use their windows laptops? when they're at the office, they use the profile on the server; when they're away, they use the "roaming" copy of the profile. does such a thing exist for us? i got to thinking about some crazy rsync script that would run just before disconnecting and right after reconnecting to the "home" network, but that's a kludge. anyone doing something like the linux road warrior? Another (probably) crazy solution might be coda http://www.coda.cs.cmu.edu/ http://www.coda.cs.cmu.edu/misc/stability.html http://www.coda.cs.cmu.edu/maillists/coda-announce/0083.html I have not used it yet, but it has always looked neat. -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How To Create /home on a Network Drive
Anthony Messina writes: > how does one use their linux laptop like some of the coporate folks > use their windows laptops? when they're at the office, they use the > profile on the server; when they're away, they use the "roaming" copy > of the profile. Here is how I do it: Append this to the end of /etc/sysconfig/autofs after tweaking the IP addresses and server name to your setup. #!/bin/sh ### ## ## ## File: autofs-away## ## Author: Wolfgang S. Rupprecht ## ## Created: Sun Oct 5 15:00:55 PDT 2008 ## ## Contents: autofs automatic switch from using NFS-ed /home to linked ## ## ## ## Copyright (c) 2008 Wolfgang S. Rupprecht.## ## All rights reserved. ## ## ## ## $Id$ ## ### # attempt #1 was to use fallback mounts in /etc/autofs.home as such. This # caused a very long timeout till the first mount. # aaron -fstype=nfs4,hard,intr,nodev,nosuid arbol.wsrcc.com(1),(10):/u/& # The second try was to force a choice at boot time via a server name # set as a variable variable # append this file to the end of /etc/sysconfig/autofs HOMENET="192.83.197." # HOMENET="1.2.3." HOMESERVER="arbol.wsrcc.com" # HOMESERVER="192.83.197.1" if $(ifconfig | grep --quiet $HOMENET) then # echo "Configuring autofs for home." echo -n "(home) " OPTIONS+="-DHOMESERVER=$HOMESERVER" else # echo "Configuring autofs for away." echo -n "(away) " #OPTIONS+="-DHOMESERVER=localhost /etc/auto.master-away" OPTIONS+="-DHOMESERVER=localhost" fi # # end # Then create /etc/auto.home: # HOMESERVER is defined in /etc/sysconfig/autofs via a "-Dvar=val" # define. it is switched at runtime when the starup script notices # that we aren't on the home net. wolfgang-fstype=nfs4,hard,intr,nodev,nosuid $HOMESERVER:/u/& user2 -fstype=nfs4,hard,intr,nodev,nosuid $HOMESERVER:/u/& user3 -fstype=nfs4,hard,intr,nodev,nosuid $HOMESERVER:/u/& # # end # And then reference this file in /etc/auto.master: # # for wsrcc homes: uncomment # /home /etc/auto.home # # end wsrcc # Now when the machine is booted at home it uses the home directory on the server (located at /u/wolfgang) and when booted off-line will use the local copy of /u/wolfgang. I periodically merge the laptop and server versions of things by hand. This auto.master has other stuff that needs to be snipped out while on the road one can also have a pared down version of that (as the comment in /etc/sysconfig/autofs indicates. -wolfgang -- Wolfgang S. Rupprecht http://www.full-steam.org/ (ipv6-only) You may need to config 6to4 to see the above pages. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How To Create /home on a Network Drive
On Sun, 2009-05-10 at 01:39 -0500, Anthony Messina wrote: > On Saturday 09 May 2009 10:30:37 pm Robert L Cochran wrote: > > >> I have two Fedora laptops. I would like to have my /home partition as a > > >> separate partition on a network drive, such that when each laptop user > > >> logs in, his or her /home/[user] directory is mounted from the network > > >> drive. But I don't know how to do this. Suggestions? > > >> > > > > > > > > > might not be a good idea if the laptop is detached from the network > > > but... > > > > > > man nfs > > > > > > man auto.home > > > man auto.master > > > > > > I know that Red Hat Enterprise documentation covers this pretty well and > > > there might be some documentation on Fedora Wiki but I haven't looked. > > > > > > Craig > > > > > > > I think my brain must have shut down for the night. I wouldn't have such > > an easy time mounting /home in a restaurant, would I? > > > > Thanks... > > no, you're right about that, but i was thinking about this yesterday too. > how > does one use their linux laptop like some of the coporate folks use their > windows laptops? when they're at the office, they use the profile on the > server; when they're away, they use the "roaming" copy of the profile. > > does such a thing exist for us? i got to thinking about some crazy rsync > script that would run just before disconnecting and right after reconnecting > to the "home" network, but that's a kludge. > > anyone doing something like the linux road warrior? well, not really but in anticipation of that and also to support the various storage facilities I typically do this... On the Main NFS server I have local hard drives which provide the basic / file system. For storage, I typically mount /home/storage from whatever (SAS, iSCSI, etc.) and this main server is also my main LDAP server. LDAP users (which is just about everybody) are mounted at /home/storage/users and the main file shares are in /home/storage/files which are automounted via LDAP automounts. The only users who have homes in /home are local user accounts which are very few and only created for specific applications or daemons. Thus on the laptop of some roaming user, I could have a local user with the same uid and as his LDAP posix account but his home directory still in /home which would still 'automount' the above users and files and thus an rsync is certainly possible. I suppose it's possible to have a generated, pre-shared ssh key so a user could sync his local /home from his laptop to his $HOME directory on the main NFS server but I tend to specifically not allow normal users to ssh into servers for security reasons. Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How To Create /home on a Network Drive
On Saturday 09 May 2009 10:30:37 pm Robert L Cochran wrote: > >> I have two Fedora laptops. I would like to have my /home partition as a > >> separate partition on a network drive, such that when each laptop user > >> logs in, his or her /home/[user] directory is mounted from the network > >> drive. But I don't know how to do this. Suggestions? > >> > > > > > > might not be a good idea if the laptop is detached from the network > > but... > > > > man nfs > > > > man auto.home > > man auto.master > > > > I know that Red Hat Enterprise documentation covers this pretty well and > > there might be some documentation on Fedora Wiki but I haven't looked. > > > > Craig > > > > I think my brain must have shut down for the night. I wouldn't have such > an easy time mounting /home in a restaurant, would I? > > Thanks... no, you're right about that, but i was thinking about this yesterday too. how does one use their linux laptop like some of the coporate folks use their windows laptops? when they're at the office, they use the profile on the server; when they're away, they use the "roaming" copy of the profile. does such a thing exist for us? i got to thinking about some crazy rsync script that would run just before disconnecting and right after reconnecting to the "home" network, but that's a kludge. anyone doing something like the linux road warrior? -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E signature.asc Description: This is a digitally signed message part. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How To Create /home on a Network Drive
On 05/09/2009 11:16 PM, Craig White wrote: On Sat, 2009-05-09 at 22:35 -0400, Robert L Cochran wrote: I have two Fedora laptops. I would like to have my /home partition as a separate partition on a network drive, such that when each laptop user logs in, his or her /home/[user] directory is mounted from the network drive. But I don't know how to do this. Suggestions? might not be a good idea if the laptop is detached from the network but... man nfs man auto.home man auto.master I know that Red Hat Enterprise documentation covers this pretty well and there might be some documentation on Fedora Wiki but I haven't looked. Craig I think my brain must have shut down for the night. I wouldn't have such an easy time mounting /home in a restaurant, would I? Thanks... Bob -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How To Create /home on a Network Drive
On Sat, 2009-05-09 at 22:35 -0400, Robert L Cochran wrote: > I have two Fedora laptops. I would like to have my /home partition as a > separate partition on a network drive, such that when each laptop user > logs in, his or her /home/[user] directory is mounted from the network > drive. But I don't know how to do this. Suggestions? might not be a good idea if the laptop is detached from the network but... man nfs man auto.home man auto.master I know that Red Hat Enterprise documentation covers this pretty well and there might be some documentation on Fedora Wiki but I haven't looked. Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
How To Create /home on a Network Drive
I have two Fedora laptops. I would like to have my /home partition as a separate partition on a network drive, such that when each laptop user logs in, his or her /home/[user] directory is mounted from the network drive. But I don't know how to do this. Suggestions? Thanks Bob -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines