Lofs


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Lofs
# 1  
Old 12-14-2006
Lofs

Does anyone use lofs (loopback file systems)? I'm not looking for any deep details, but are there actually any advantages to using lofs? If anyone knows, what are the basic advantages?

Thanks.
-S
# 2  
Old 12-14-2006
i only use loopback when mounting iso's
# 3  
Old 12-14-2006
Sowser, you need specify what OS you are using. There are at least two very different kinds of loopback filesystems.
# 4  
Old 12-14-2006
2 types? no kidding? Solaris 8 is the version. I see it used in this new environment. It is simply a standard to use it. No one can give me a good reason for it. I was hoping for any type of info.

Thanks.

-S
# 5  
Old 12-14-2006
The Solaris style of loopback filesystem is an alternative to symbolic links. Let's assume that you have / and /usr filesystems and they are somewhat full but you want to create a /usr/local hierarchy. And let's assume that you have a /export filesystem with plenty of space. You could create a directory called, say, /export/usr.local then create a symbolic link called /usr/local that points to it. Symbolic links have various problems though. As one example:
cd /usr/local/
cd ..
might place you in /export or it might place you in /usr. Some shells like ksh have a "cd -L" and a "cd -P" so they can do either. Other shells might do one or the other. But now instead of a symlink, we can make a directory called /usr/local and do a loopback mount of /export/usr.local on it. Now, /usr/local has only one parent directory, which is /usr. That is pretty much it. It removes the screwy side effects of symlinks.
# 6  
Old 12-14-2006
One other interesting thing to note is what happens when using the automounter.

lets say you have auto_home like this:
Code:
/home/* homeserver:/export/home/&

Now if you log into a server other than homeserver it will NFS mount the home directory from /export/home/<username> on homeserver.

If however you do the same thing on homeserver it will resolve this an perform a loopback mount /export/home/<username> on /home/username.
# 7  
Old 12-18-2006
Is this analogous to what linux can do with remount?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

LOFS in Solaris zone, privileges

Hi all Can i check, if I have a lofs filesystem in my local zone (myzone) for - e.g. global-zone -> /db/myzone (/dev/dsk/c0t0d0s6 ufs) myzone-> /myzone (lofs filesystem) zonecfg -z myzone (add fs set dir=/myzone set special=/db/myzone set type=lofs )q1) If I have install... (0 Replies)
Discussion started by: javanoob
0 Replies

2. Solaris

Solaris zones - checking processes and lofs file system

Hi all, q1) If i am in a global-zone, is there any command or anyway to check if a particular process in "ps -ef" output is running in which zone ? q2) if i have created and mount a lofs filesystem/mountpoint for my non-global zone, can i say the following e.g. /dev/md/dsk/d60 /data --... (1 Reply)
Discussion started by: javanoob
1 Replies

3. Solaris

df error for lofs file system in local zone.

I 've a zone which is running oracle db instance. We have exported the SAN file system from the global zone as following fs: dir: /oradb special: /oradb raw not specified type: lofs options: from global zone #df -h | grep oradb... (7 Replies)
Discussion started by: fugitive
7 Replies

4. Solaris

LOFS file system

Hi All, Can you please help me in understanding the lofs file system or point me towards some link which can help ? Thanks (1 Reply)
Discussion started by: kumarmani
1 Replies

5. Solaris

Normal LOFS behaviour?

I've got one directory LOFS mounted on top of another (this is to help move from an older standard that we used to follow to a newer one that we will be). Something like this: bash-3.00# df -k | grep /x /dev/md/dsk/d4 77449687 88172 76587019 1% /x /x ... (1 Reply)
Discussion started by: blowtorch
1 Replies

6. Solaris

lofs

Hi all, I am unable to comprehend these instructions. please help if ; then /usr/sbin/mount -O -F lofs $MOE /lib/libc.so.1 Thanks (1 Reply)
Discussion started by: wrapster
1 Replies

7. Solaris

lofs

hi all, I was going through the /lib/svc/methods/fs-root file and found this command /usr/sbin/mount -O -F lofs $MOE /lib/libc.so.1 can anyone please explain to me what it does. i know what lofs does what lib.so.1 and what mount is , but am not able to interpret it as its written in the... (1 Reply)
Discussion started by: wrapster
1 Replies

8. UNIX for Advanced & Expert Users

auto mount lofs

Hi All, I want to mount one directory to other. i.e /export/home/dju to /dju It's like a link ( link -s ). but I don't want to use this( link method ) . I try to use : mount -F lofs /export/home/dju /dju the question is, how do I use this mount method with automount ,... (1 Reply)
Discussion started by: mdjuarsa
1 Replies

9. UNIX for Dummies Questions & Answers

Lofs

Hi gang! I've just tried to build a Loopback FS, and I used the option "ro" not knowing what it was meaning, as in the example I have for this feature... mount -F lofs -o ro /my_rep /my_image_rep and of course now I'm stuck with my LOFS which is read-only... not really what I want to have... (7 Replies)
Discussion started by: Lomic
7 Replies
Login or Register to Ask a Question