11-04-2010
First, don't EVER mount the LUN on the second system as anything but read-only. In fact, it'd be best if you could export the LUN as read-only to that system from whatever it's on.
The easiest answer is NFS. If you need to read from a file system across some kind of network, use the ubiquitous protocol designed to do just that.
If performance is an issue and you need to use a direct fiber channel connection, you really need to use a shared file system. Or you'll just have to keep doing the umount/mount on the second host.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If you have multiple hard drives and multiple mounted filesystems, how can you tell which filesystem resides on which disk? (3 Replies)
Discussion started by: jalburger
3 Replies
2. Shell Programming and Scripting
Hi
I would like to write a shell script which should first check wheather the tape is placed in the tape drive .
if the tape is there
it should rewind it like mt -f /dev/rmt/0m rew
if the tape is missing from the tape drive
then send a mail saying that the tape is missing and exit.
... (2 Replies)
Discussion started by: xiamin
2 Replies
3. UNIX for Dummies Questions & Answers
Dear All ,
Kindly I have some questions , I need hints or answers please .
I have sparc4 , sun solaries 7 , mail server . i have about 5000 users , with no login shell , or home directories for the users .
they only have mail boxes in /var/mail dir .
now , I do not have any type of... (6 Replies)
Discussion started by: tamemi
6 Replies
4. UNIX for Dummies Questions & Answers
How do you write a command to :
A text line to a file in ./DATA1/archive.log using system () in awk
TodayDate Time scriptname.ksh filename.dat
system(echo `date '+%D %T` scriptname.ksh >> ./DATA/archive.log) --> syntax error +%D
Thanks for your help (0 Replies)
Discussion started by: britney
0 Replies
5. Linux
Hi All,
We have two servers DSERV1(red hat 8.0) and DSERV2(scounix 3.2) where DSERV1 is the NFS server and DSERV2 is the NFS client. We want to reboot these servers and wanted to know the steps(precautions) we have to follow in order to do this. After reboot should we do anything specific to... (2 Replies)
Discussion started by: jisha
2 Replies
6. Solaris
I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer.
thanks (4 Replies)
Discussion started by: uuontario
4 Replies
7. Solaris
I just skimmed through the Administration Guide about LDAP and CIFS.
Well that's a whole lot of text. Does someone know a tutorial/introduction with some steps to make?
TIA (14 Replies)
Discussion started by: PatrickBaer
14 Replies
8. AIX
Hi,
I am not getiting lun id information on VIO Server. I have used the command fget_config command.
just showing # prompt.
I would like know wheather any other command is there equiv of fget_config
which will display lun id? (4 Replies)
Discussion started by: manoj.solaris
4 Replies
9. UNIX for Dummies Questions & Answers
hi all,
i'm new here and i have a question,
i wanted to know, what should happen if i delete a LUN that is already mounted on one of my initiators.
thanks! (3 Replies)
Discussion started by: slavash
3 Replies
lofs(7FS) File Systems lofs(7FS)
NAME
lofs - loopback virtual file system
SYNOPSIS
#include <sys/param.h>
#include <sys/mount.h>
int mount (const char* dir, const char* virtual, int mflag, lofs, NULL, 0);
DESCRIPTION
The loopback file system device allows new, virtual file systems to be created, which provide access to existing files using alternate
pathnames. Once the virtual file system is created, other file systems can be mounted within it, without affecting the original file sys-
tem. However, file systems which are subsequently mounted onto the original file system are visible to the virtual file system, unless or
until the corresponding mount point in the virtual file system is covered by a file system mounted there.
virtual is the mount point for the virtual file system. dir is the pathname of the existing file system. mflag specifies the mount options;
the MS_DATA bit in mflag must be set. If the MS_RDONLY bit in mflag is not set, accesses to the loop back file system are the same as
for the underlying file system. Otherwise, all accesses in the loopback file system will be read-only. All other mount(2) options are
inherited from the underlying file systems.
A loopback mount of '/' onto /tmp/newroot allows the entire file system hierarchy to appear as if it were duplicated under /tmp/newroot,
including any file systems mounted from remote NFS servers. All files would then be accessible either from a pathname relative to '/' or
from a pathname relative to /tmp/newroot until such time as a file system is mounted in /tmp/newroot, or any of its subdirectories.
Loopback mounts of '/' can be performed in conjunction with the chroot(2) system call, to provide a complete virtual file system to a
process or family of processes.
Recursive traversal of loopback mount points is not allowed. After the loopback mount of /tmp/newroot, the file /tmp/newroot/tmp/newroot
does not contain yet another file system hierarchy; rather, it appears just as /tmp/newroot did before the loopback mount was performed
(for example, as an empty directory).
Examples
lofs file systems are mounted using:
mount -F lofs /tmp /mnt
SEE ALSO
lofiadm(1M), mount(1M), chroot(2), mount(2), sysfs(2), vfstab(4), lofi(7D)
WARNINGS
Loopback mounts must be used with care; the potential for confusing users and applications is enormous. A loopback mount entry in
/etc/vfstab must be placed after the mount points of both directories it depends on. This is most easily accomplished by making the loop-
back mount entry the last in /etc/vfstab.
SunOS 5.10 10 Apr 2001 lofs(7FS)