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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT OPENDARWIN
rem_drv
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)