Sponsored Content
Operating Systems Solaris Cleanup special files create via device match in a whole root zone Post 302831171 by hugo_perez on Wednesday 10th of July 2013 10:48:02 AM
Old 07-10-2013
Cleanup special files create via device match in a whole root zone

I added in the configuration file of a whole root zone the following device match entries:
<device match="/dev/rmt/*"/>
<device match="/dev/sg/*"/>
after the reboot the zone was able to see all the devices of its global zone, and let under /dev/rmt and /dev/sg the special files created with mknod instead of links to /devices (that did not exist).

Now, I want to clean up all the tapes from the whole root zone but not from its global zone. I tried to remove the device match lines and rebooted in several (including touch /reconfigure in the whole root zone and reboot -- -r) ways without luck; I tried going to single user mode and do rm -f and they did not get removed.

Note: I also halted the zone and then I tried to see if the devices were under its <zone rootpath>/root/rmt but they are empty until I boot the zone.

Any idea
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies

2. HP-UX

Need to make disk device files match

Hi, I was wondering if there was a way to change the disk device files ex. /dev/dsk/cxtxd0 ? What I have are two HPUX 11.0 servers using MC Service Guard 11.13. A consultant attached a SAN and both servers had created the same identical LUN device files. Now I could begin creating my volume... (0 Replies)
Discussion started by: mvizza
0 Replies

3. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies

4. UNIX for Dummies Questions & Answers

awk to match multiple regex and create separate output files

Howdy Folks, I have a list that looks like this: (file2.txt) AAA BBB CCC DDD and there are 24 of these short words. I am matching these patterns to another file with 755795 lines (file1.txt). I have this code for matching: awk -v f2=file2.txt ' BEGIN { while(... (2 Replies)
Discussion started by: heecha
2 Replies

5. Shell Programming and Scripting

To cleanup the root entries in lastlog

Hi Folks, Is there a way to cleanup the root entries in the Linux server from the lastlog. For AIX and SUN server, this has been done Via the fwtmp command. (1 Reply)
Discussion started by: gsiva
1 Replies

6. Solaris

Emcpower0a device/lun is not visible in non global zone

Hi All Please find my zone configuration after add emcpower0a device zonecfg -z zone1 export create -b set zonepath=/zone/zone1 set autoboot=true set ip-type=shared add net set address=192.168.1.11/24 set physical=nxge2 set defrouter=192.168.1.1 end add device set... (4 Replies)
Discussion started by: sb200
4 Replies

7. Solaris

Wrong time zone for non root user

I have a Solaris-11 zone, which is newely build. Since I am in PST time zone, so I set it with this command. It shows me date correctly with correct time zone, but when I switch it to a non root user and run below java command, it is not showing correct time zone. Not sure, how to set it.... (2 Replies)
Discussion started by: solaris_1977
2 Replies

8. UNIX for Advanced & Expert Users

Backup files cleanup

Hello, I've been able to keep a certain number of backup files with the find -mtime command, but is there a way to add the last 4 Sunday's or any other day? I checked the man page and forums, but couldn't find anything. Any help would be appreciated. Thanks (8 Replies)
Discussion started by: Ramsez
8 Replies

9. Shell Programming and Scripting

Matching two fields in two csv files, create new file and append match

I am trying to parse two csv files and make a match in one column then print the entire file to a new file and append an additional column that gives description from the match to the new file. If a match is not made, I would like to add "NA" to the end of the file Command that Ive been using... (6 Replies)
Discussion started by: dis0wned
6 Replies

10. Shell Programming and Scripting

awk to create subdirectory based on match between two files

In the below awk I am trying to mkdir based of an exact match between file2 line starting with R_2019.... and file1 line starting with R_2019. When a match is found there is a folder located at /home/cmccabe/run with the same name as the match where each $2 in file1 is a new subdirectory in that... (2 Replies)
Discussion started by: cmccabe
2 Replies
zcons(7D)							      Devices								 zcons(7D)

NAME
zcons - Zone console device driver DESCRIPTION
The zcons character driver exports the console for system zones. The driver is comprised of two "sides:" a master side with which applica- tions in the global zone communicate, and a slave side, which receives I/O from the master side. The slave side is available in the global zones. Applications must not depend on the location of /dev or /devices entries exported by zcons. Inside a zone, the zcons slave side is fronted by /dev/console and other console-related symbolic links, which are used by applications that expect to write to the system console. The zcons driver is Sun Private, and may change in future releases. FILES
/dev/zcons/<zonename>/masterconsole Global zone master side console for zone <zonename>. /dev/zcons/<zonename>/slaveconsole Global zone slave side console for zone <zonename>. /dev/zconsole Non-global zone console (slave side). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ | Interface Stability |Sun Private | +-----------------------------+-----------------------------+ SEE ALSO
zoneadm(1M), zonecfg(1M), attributes(5), zones(5) SunOS 5.10 24 Aug 2003 zcons(7D)
All times are GMT -4. The time now is 01:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy