Disk Arrays
cancel
Showing results for 
Search instead for 
Did you mean: 

Error trying to remove a Lun on FC60

SOLVED
Go to solution
breno sobral
Occasional Contributor

Error trying to remove a Lun on FC60

I am trying to remove a LUN Raid 5 unknown "2130381312" of our FC60, the name of the LUN "2130381312" was to be "8".
#amdsp -a fc60

Disk Group 0943EA000640DC8516:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 2130381312
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 0 KB
Disks:
1:12 2:12 3:12 4:12
Disk Group 0943EA000440DC84E5:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 7
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 16 KB
Disks:
1:11 2:11 3:11 4:11
Disk Group 0943EA000840DC8CB6:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 9
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 16 KB
Disks:
1:10 2:10 3:10 4:10
Disk Group 094CA200143DD931F9:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 3
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 16 KB
Disks:
1:9 2:9 3:9 4:9


#amcfg -D 2130381312 -V fc60
Arg out of range

#amcfg -D 8 -V fc60
GetState() command received
GetState() command started
GetState() command complete
amcfg: The specified LUN does not exist in this array

#amcfg -L B:8 -d 1:12,2:12,3:12,4:12 -r 5 -s 16 fc60
Error in command execution, "RMT_AM60ERRORSTATUS_MSG"

AM60ERR : ERR_COMMAND_FAILED
AM60ERR QUAL : CREATE_LUN
MODULE_CODE_ID : SUBSYSTEM
COMMAND STATE : A SCSI error occurred
ERROR NUMBER : 2

Sense Key = 0x05: "ILLEGAL REQUEST"
Additional Sense Code = 0x91
Additional Sense Code Qual = 0x09

Decoded SCSI Sense:
Illegal Operation with Multiple SubLUNs Defined

amcfg: Error in command execution


Why the number of the LUN is 2130381312 ??
How I remove this LUN? it is my last available LUN....

3 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: Error trying to remove a Lun on FC60

I would check to see if any of the disk are in use in a volume group.

strings /etc/lvmtab

Then I'd delete logical volumes and use vgreduce to get it out of the volume group.

If it happens to be the last disk in the volume group, you might need to use vgexport to close down the volume group.

Then you should be able to work with the lns.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
breno sobral
Occasional Contributor

Re: Error trying to remove a Lun on FC60

Hi Steven,
not have any VG for this LUN. I removed my last LUN.
I run the command again amdsp

Disk Group 0943EA00083DDA817B:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 2
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 16 KB
Disks:
1:1 2:1 3:1 4:1
Disk Group 0943EA000A3DDAA99C:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 0
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 16 KB
Disks:
1:0 2:0 3:0 4:0
Disk Group 0943EA000640DC8516:
Disk Group Type = LUN
Number of LUNs = 1
LUN(s) = 0
Remaining Capacity = 0.0 MB
RAID Level = 5
Segment Size = 0 KB
Disks:
1:12 2:12 3:12 4:12

Now I have 2 LUNs with the same name "0" and different Segment size (0 and 16). How I remove this LUN 0 (1:12 2:12 3:12 4:12) of Segment 0 KB?

thanks.........
Eric van Meenen
Occasional Visitor

Re: Error trying to remove a Lun on FC60

Here is the solution; BE CAREFUL; it will destroy ALL data on your LUNs:

Execute as root:
amutil -syswipe NFM_DATA

System will respond with :
The array has been syswiped.

Now the araay is in a sane state and ready to be rebuild using the amcfg commands (i.e.)(amcfg -R A:0 -d 1:0,2:0,3:0,4:0 -r 5 -s 16

Make sure you activate both controllers executing:

ammgr -c AA

System response: Set Controller Mode to ACTIVE_ACTIVE

Good Luck !

Eric van Meenen
Lucent Technologies