Solaris zones - checking processes and lofs file system


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris zones - checking processes and lofs file system
# 1  
Old 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
# 2  
Old 11-02-2015
Check manual of ps command in solaris, there is -z -Z switches to show zone related process information.

'Users' have no business in global zone, only 'administrators' do.
Global zone will have access to everything in non-global zones if one has root role or user.

As for md devices, just add the device to zone, and reboot the non-global zone.
There are tricks from which you can present a disk (a md device, a raw disk, a fc lun etc.) without reboot on older releases, while newer support this in paper (haven't tried it tho).

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 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. UNIX for Dummies Questions & Answers

Checking for processes in Linux

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

3. UNIX for Dummies Questions & Answers

Finding processes on another system that have a file open

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

4. Solaris

File transferring and checking in Solaris 10

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

5. UNIX for Dummies Questions & Answers

For loop for checking processes

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

6. 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

7. 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

8. Shell Programming and Scripting

Checking before start and stop processes

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

9. UNIX for Dummies Questions & Answers

checking Processes

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

10. UNIX for Dummies Questions & Answers

fsstat: root file system needs checking

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
Login or Register to Ask a Question