Operating System - HP-UX
1748073 Members
4935 Online
108758 Solutions
New Discussion юеВ

Problems deleting lun on fc60

 
Keith Winger
Occasional Advisor

Problems deleting lun on fc60

Hello all

I am having receiving the following error when trying to unbind a lun that is part of an fc60 array.

/ >amcfg -D 4 -force Array1
Error in command execution, "RMT_AM60ERRORSTATUS_MSG"

AM60ERR : ERR_COMMAND_FAILED
AM60ERR QUAL : DELETE_LUN
MODULE_CODE_ID : SUBSYSTEM
COMMAND STATE : A device error was returned
DEVICE ACCESS STATUS: SCSI Device Lock Not Granted

amcfg: Error in command execution


I did find this message thread where someone else had the same issue
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=102421

I have not been able to find much information on using vxdiskadm.

Thanks in advance for your help.

Keith


Other information
The lun is no longer showing up in SAM.
I know that the device file for this LUN is /dev/dsk/c3t0d4

Ioscan for this device
/ >ioscan -f /dev/dsk/c3t0d4
Class I H/W Path Driver S/W State H/W Type Description
================================================================================
disk 7 0/2/0/0.8.0.4.0.0.4 sdisk CLAIMED DEVICE HP A5277A


Here is information on the LUN from the array
/ >amdsp -l 4 Array1

Vendor ID = HP
Product ID = A5277A
Array ID = 000600A0B805EB3A
Array Alias = Array1
-----------------------------------------
LUN Status Capacity Ctrl RAID Segment Disks
--- ----------------- --------- ---- ---- ------- -----
4 OPTIMAL 16.9 GB A 1 8 2:1
5:1


LUN WCE RCD CME CWOB WCA RCA CMA
--- --- --- --- ---- --- --- ---
4 X X X X X

/ >


The lun has been removed from the volume group.

/ >pvdisplay -v /dev/dsk/c3t0d4
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c3t0d4" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c3t0d4".

Firmware version
/ >amdload -i Array1

--- ARRAY CONTROLLER Revision Information ---
Controller HPRev Firmware Bootware
Ctrlr A HP10 04000311 04000301
Ctrlr B HP10 04000311 04000301

--- ENCLOSURE BCC Revision Information ---
BCCs are represented as
BCC FWRev
1:A HP04
2:B HP04
3:A HP04
4:B HP04
5:A HP04
6:B HP04

--- DISK Revision Information ---
Disk locations are represented as
Dsk FWRev Dsk FWRev Dsk FWRev Dsk FWRev Dsk FWRev Dsk FWRev
1:0 HP08 2:0 HP03 3:0 HP03 4:0 HP03 5:0 HP03 6:0 HP03
1:1 HP03 2:1 HP03 3:1 HP03 4:1 HP03 5:1 HP03 6:1 HP03
1:2 HP03 2:2 HP03 3:2 HP03 4:2 HP03 5:2 HP03 6:2 HP03
1:3 HP02 2:3 HP08 3:3 HP03 4:3 HP03 5:3 HP03 6:3 HP03
1:4 HP03 2:4 HP03 3:4 HP03 4:4 HP03 5:4 HP03 6:4 HP03
2 REPLIES 2
NMory
Respected Contributor

Re: Problems deleting lun on fc60

Keith:

The SCSI Device Lock Not Granted message is indicating that a process has a
lock on this LUN and will not allow it to be deleted. Before any action items,
please be certain that no I/Os are active on this LUN. This includes any file
systems or volume groups from all hosts. Then try to replace the LUN again with
the amcfg -R command.
If there truly is no I/O to this LUN, it is suggested to change the ownership
of LUN 0 to another controller if available and then try to delete the LUN to see if this has any
affect. If changing ownership of the LUN does not have any affect, go ahead and
reset the controller(s), then attempt to replace the LUN again.

There are two other ways to try to replace the LUN. The first is with the -
force option in the replace LUN command (amcfg -R -force ). An check if there is a command avaialable to delete the LUN through a serial port in the enclosure or directly from it.

NM
Keith Winger
Occasional Advisor

Re: Problems deleting lun on fc60

The problem that I was having was due to the alternate path for the disk still being part of the volume group. When I initially vgreduce I only reduced the primary path, I didnтАЩt realize that I also had to reduce the secondary path.

Keith