11-02-2015
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 -- globalzone
mkdir -p /data/myzone/newinfo
mount -F lofs /data/myzone/newinfo /zones/myzone/root/data/newinfo
- there is a possibility that users might delete files in the localzone FROM the globalzone
- there is no way in for a localzone to view/delete files from lofs filesystem that belong to the globalzone
right ?
q3) is there anway i can isolate device/harddisk to localzone, so that users in globalzone, is not able to go directly into the filesystem/path to delete folders.
-- to export entire fs to a localzone (add fs set special/set raw etc..)
-- to export endire disk to a localzone (add device / set match)
right ?
Regards,
Noob
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My server was shutdown improperly. Upon restart the system loads the kernel txt ok, but the .data load slowly. the boot up process stoppted and asked if ok to check the root file sytem y/n?
i selected y. then appears htfs file system:
root file system
... (0 Replies)
Discussion started by: mbco
0 Replies
2. UNIX for Dummies Questions & Answers
I have aix version 5.1
I was wondering how I can check all running processes?
I have used several ps commands but have been unsuccessful at it. I can see all with {ps aux } I have a little trouble knowing what I am looking for also. I should be looking at length of time and processor usage? I am... (3 Replies)
Discussion started by: rocker40
3 Replies
3. Shell Programming and Scripting
Hi,
I have 2 start and stop sh.
Start sh
--------
This will start few processes.
Example code:
echo "start process : lgz200 /pipe=test_jobs"
nohup lgz200 /db=test/test1@test1 /pipe=test_jobs > ../log/lgz200_j.log &
echo "echo \"stop process (pid=$!): lgz200 /pipe=test_jobs\"" >>... (3 Replies)
Discussion started by: maldini
3 Replies
4. Solaris
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
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
6. UNIX for Dummies Questions & Answers
Hi Gang,
I need part of my script to be able to loop, check for processes running and if they aren't running, start them. It needs to loop 5 times, do a check each time, and make sure a process starts, and if its running; skip it.
I've worked with loops and checking for processes before,... (8 Replies)
Discussion started by: jeffs42885
8 Replies
7. Solaris
Hi all. I'm trying to write a script in bash or perl which can let server transfer files to all its clients, like broadcast. After then, it can generate a log file showing which client's transfer is successful and which is failed.
The OS is Solaris 10 u8, could anyone provide any idea please?... (2 Replies)
Discussion started by: gundamwings
2 Replies
8. UNIX for Dummies Questions & Answers
I am familiar with using "lsof <filename>" or "fuser <filename>" to determine what process has a given file (usually a .nfs) open. However, I recently used this command and it returned a blank list. I suspect the process that has the .nfs file open might be on another system. Is there a way... (2 Replies)
Discussion started by: Special_K
2 Replies
9. UNIX for Dummies Questions & Answers
I want to check processes on my Linux server
Normally we do a ps-ef|grep "search code"
Now we want to check for certain processes which are up and running and we want to get an email, whenever the processes we are checking goes down?
How can i implement this? (1 Reply)
Discussion started by: saggiboy10
1 Replies
10. Solaris
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
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)