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
rem_drv(1M)															       rem_drv(1M)

NAME
rem_drv - remove a device driver from the system SYNOPSIS
rem_drv [-b basedir] device_driver The rem_drv command informs the system that the device driver device_driver is no longer valid. If possible, rem_drv unloads device_driver from memory. rem_drv also updates the system driver configuration files. If rem_drv has been executed, the next time the system is rebooted it automatically performs a reconfiguration boot (see kernel(1M)). The following options are supported: -b basedir Sets the path to the root directory of the diskless client. Used on the server to execute rem_drv for a client. The client machine must be rebooted to unload the driver. Note - The root file system of any non-global zones must not be referenced with the -b option. Doing so might damage the global zone's file system, might compromise the security of the global zone, and might damage the non-global zone's file system. See zones(5). Example 1: Removing the sd Driver The following example removes the sd driver from use: example% rem_drv sd Example 2: Removing a Diskless Client The following example removes the driver from the sun1 diskless client. The driver is not uninstalled or unloaded until the client machine is rebooted. example% rem_drv -b /export/root/sun1 sd Note the caveat on the use of the -b option in the description of that option, above. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ add_drv(1M), kernel(1M), update_drv(1M), attributes(5), devfs(7FS) 6 Apr 2005 rem_drv(1M)
All times are GMT -4. The time now is 06:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy