06-26-2009
Just confirm if the device is in use or not. If it has been removed, then unconfigure the LUNS that were removed from the SAN
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message.
Error: Internal system error: Unable to initialize standard output file
I'm guessing more info might be needed, so let me know.
Thanks (2 Replies)
Discussion started by: firkus
2 Replies
2. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
3. AIX
--------------------------------------------------------------------------------
Hello, help me please.
I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? :
Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies
4. Solaris
Hi,
One of 2 local disks on V480 running solaris 10 and SVM failed.
Now after running metadettach for submirrors on that disk, I want to unconfigure the FAULTY disk using cfgadm -c uncofigure command..and then put new one and configure that.
but surprisingly I don't see local dsk in cfgadm... (17 Replies)
Discussion started by: upengan78
17 Replies
5. Solaris
I have an issue with on T3-Lun where Veritas dont like it anymore and OS-system have issues with it too.
So I thought to unconfigure it but even that does not work
cfgadm -al | grep c17
c17::50020f230000eae0 disk connected unconfigured unkown
then I tried a
cfgadm -c unconfigure... (2 Replies)
Discussion started by: manni2
2 Replies
6. Solaris
Hi, I`m having a server, that was initially having 2 HBA`s, and dmpnodes were creates with 2 subpaths:
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:none - - online invalid
c0t1d0s2 auto:none - ... (5 Replies)
Discussion started by: masloff
5 Replies
7. UNIX for Dummies Questions & Answers
im kinda new to shell scripting so i need some help
i try to run this script and get the error code
> 5 ")syntax error: operand expected (error token is "
the code for the script is
#!/bin/sh
#
# script to see if the given value is correct
#
# Define errors
ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies
8. Solaris
Hot swapping a drive on V240.
So, I do cfgadm -c unconfigure <disk>. Then cfgadm -al reports disk as unconfigured as expected.
format then tells me there is no disk.
BUT, blue light does not come on. Done the exact same command on my V440 and blue light does come on.
V240 Server Admin... (0 Replies)
Discussion started by: psychocandy
0 Replies
9. Solaris
I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet.
... (2 Replies)
Discussion started by: christr
2 Replies
10. UNIX for Beginners Questions & Answers
I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error.
#! /bin/sh
errExit ()
{
errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies
LEARN ABOUT OPENSOLARIS
ddi_removing_power
ddi_removing_power(9F) Kernel Functions for Drivers ddi_removing_power(9F)
NAME
ddi_removing_power - check whether DDI_SUSPEND might result in power being removed from a device
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_removing_power(dev_info_t *dip);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
DESCRIPTION
The ddi_removing_power() function indicates whether a currently pending call into a driver's detach(9E) entry point with a command of
DDI_SUSPEND is likely to result in power being removed from the device.
ddi_removing_power() can return true and power still not be removed from the device due to a failure to suspend and power off the system.
PARAMETERS
The ddi_removing_power() function supports the following parameter:
dip pointer to the device's dev_info structure
RETURN VALUES
The ddi_removing_power() function returns:
1 Power might be removed by the framework as a result of the pending DDI_SUSPEND call.
0 Power will not be removed by the framework as a result of the pending DDI_SUSPEND call.
EXAMPLES
Example 1 Protecting a Tape from Abrupt Power Removal
A tape driver that has hardware that would damage the tape if power is removed might include this code in its detach(9E) code:
int
xxdetach(dev_info_t *dip, ddi_detach_cmd_t cmd)
{
...
case DDI_SUSPEND:
/*
* We do not allow DDI_SUSPEND if power will be removed and
* we have a device that damages tape when power is removed
* We do support DDI_SUSPEND for Device Reconfiguration,
* however.
*/
if (ddi_removing_power(dip) && xxdamages_tape(dip))
return (DDI_FAILURE);
...
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), cpr(7), attach(9E), detach(9E)
Writing Device Drivers
SunOS 5.11 14 March 2001 ddi_removing_power(9F)