Unix Technical Forum

How to make disk device "Available"?

This is a discussion on How to make disk device "Available"? within the AIX Operating System forums, part of the Unix Operating Systems category; --> How do I make a disk device marked as "Defined" "Available"? $> lsdev -Cc disk -s scsi hdisk0 Available ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:51 PM
Christian Eriksson
 
Posts: n/a
Default How to make disk device "Available"?

How do I make a disk device marked as "Defined" "Available"?

$> lsdev -Cc disk -s scsi
hdisk0 Available 00-07-A1-3,0 2.0 GB SCSI Disk Drive
hdisk1 Available 00-07-A1-4,0 2.0 GB SCSI Disk Drive
hdisk2 Available 00-07-A1-5,0 Bull 4.2 GB 16 Bit SCSI Disk Drive.
hdisk3 Available X0-01-01-0,0 Bull DiskArray RAID 5 Disk Group
hdisk4 Defined X0-01-01-0,1 Bull DiskArray RAID 5 Disk Group

I think hdisk3 and hdisk4 "points at" an external disk cabinet because
smit -> Devices -> Fixed Disk -> DiskArray Storage-System Manager
shows:

tty1 Available 00-00-S2-00 Asynchronous Terminal
tty2 Available 00-00-S3-00 Asynchronous Terminal

and choosing tty1 gives:

SP A
SP SCSI ID 0 Sat Mar 6 02


1. Presentation Utility

2. Bind Logical Units

3. Unbind Logical Units

4. View Maintenance Information

5. Change Parameters

6. View Cache Statistics

and choice 1 shows:

SP A Presentation Utility (*)
SP SCSI ID 0 Sat Mar 6 02:29:10 2004

PROM Revision
8.02

| ENA 0 | 0
FAN A OK | ENA 0 | 1 Microcode
Revision
FAN B OK | ENA 0 | 2
09.26.21
| ENA 0 | 3
VSC A OK | ENA 0 | 4 Statistics
Logging
VSC B OK A
DISABLED

| RDY 1 | 0 Peer
SP
BBU OK | RDY 1 | 1
PRESENT
| RDY 1 | 2
ADP 0% | RDY 1 | 3 Requests
Completed
BDP 0% | RDY 1 | 4
5194395
UDP 0% B

I think hdisk 3 is lun A above and hdisk4 lun B. Is that right?

Regards Christian Eriksson
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:51 PM
FlossyFloss
 
Posts: n/a
Default Re: How to make disk device "Available"?

Christian Eriksson wrote:

> How do I make a disk device marked as "Defined" "Available"?
>
> $> lsdev -Cc disk -s scsi
> hdisk0 Available 00-07-A1-3,0 2.0 GB SCSI Disk Drive
> hdisk1 Available 00-07-A1-4,0 2.0 GB SCSI Disk Drive
> hdisk2 Available 00-07-A1-5,0 Bull 4.2 GB 16 Bit SCSI Disk Drive.
> hdisk3 Available X0-01-01-0,0 Bull DiskArray RAID 5 Disk Group
> hdisk4 Defined X0-01-01-0,1 Bull DiskArray RAID 5 Disk Group
>
> I think hdisk3 and hdisk4 "points at" an external disk cabinet because
> smit -> Devices -> Fixed Disk -> DiskArray Storage-System Manager
> shows:
>
> tty1 Available 00-00-S2-00 Asynchronous Terminal
> tty2 Available 00-00-S3-00 Asynchronous Terminal
>
> and choosing tty1 gives:
>
> SP A
> SP SCSI ID 0 Sat Mar 6 02
>
>
> 1. Presentation Utility
>
> 2. Bind Logical Units
>
> 3. Unbind Logical Units
>
> 4. View Maintenance Information
>
> 5. Change Parameters
>
> 6. View Cache Statistics
>
> and choice 1 shows:
>
> SP A Presentation Utility (*)
> SP SCSI ID 0 Sat Mar 6 02:29:10 2004
>
> PROM Revision
> 8.02
>
> | ENA 0 | 0
> FAN A OK | ENA 0 | 1 Microcode
> Revision
> FAN B OK | ENA 0 | 2
> 09.26.21
> | ENA 0 | 3
> VSC A OK | ENA 0 | 4 Statistics
> Logging
> VSC B OK A
> DISABLED
>
> | RDY 1 | 0 Peer
> SP
> BBU OK | RDY 1 | 1
> PRESENT
> | RDY 1 | 2
> ADP 0% | RDY 1 | 3 Requests
> Completed
> BDP 0% | RDY 1 | 4
> 5194395
> UDP 0% B
>
> I think hdisk 3 is lun A above and hdisk4 lun B. Is that right?
>
> Regards Christian Eriksson


If the device does not have any problems in the error
report, then use this command:

mkdev -l hdisk4'

Usually if it is not available by default it might have
a problem or is only defined for a reason, like a hardware
problem or the driver is incorrect or some other reason.

I cannot tell from that output if that is the LUN you are
talking about. You can use this command to see if the
LUN ids match:

lscfg -vl hdisk4



--
--Flossy
###########################
Cooler than a polar bear's
toe-nails....
--Big Boi
Outkast
###########################
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 09:52 PM
Christian Eriksson
 
Posts: n/a
Default Re: How to make disk device "Available"?

FlossyFloss <flossyflossmail-news@yahoo.com> wrote in message news:<c2daev$5fv$1@charly.heeg.de>...
> Christian Eriksson wrote:
>
> > How do I make a disk device marked as "Defined" "Available"?
> >
> > $> lsdev -Cc disk -s scsi
> > hdisk0 Available 00-07-A1-3,0 2.0 GB SCSI Disk Drive
> > hdisk1 Available 00-07-A1-4,0 2.0 GB SCSI Disk Drive
> > hdisk2 Available 00-07-A1-5,0 Bull 4.2 GB 16 Bit SCSI Disk Drive.
> > hdisk3 Available X0-01-01-0,0 Bull DiskArray RAID 5 Disk Group
> > hdisk4 Defined X0-01-01-0,1 Bull DiskArray RAID 5 Disk Group
> >
> > I think hdisk3 and hdisk4 "points at" an external disk cabinet because
> > smit -> Devices -> Fixed Disk -> DiskArray Storage-System Manager
> > shows:
> >
> > tty1 Available 00-00-S2-00 Asynchronous Terminal
> > tty2 Available 00-00-S3-00 Asynchronous Terminal
> >
> > and choosing tty1 gives:
> >
> > SP A
> > SP SCSI ID 0 Sat Mar 6 02
> >
> >
> > 1. Presentation Utility
> >
> > 2. Bind Logical Units
> >
> > 3. Unbind Logical Units
> >
> > 4. View Maintenance Information
> >
> > 5. Change Parameters
> >
> > 6. View Cache Statistics
> >
> > and choice 1 shows:
> >
> > SP A Presentation Utility (*)
> > SP SCSI ID 0 Sat Mar 6 02:29:10 2004
> >
> > PROM Revision
> > 8.02
> >
> > | ENA 0 | 0
> > FAN A OK | ENA 0 | 1 Microcode
> > Revision
> > FAN B OK | ENA 0 | 2
> > 09.26.21
> > | ENA 0 | 3
> > VSC A OK | ENA 0 | 4 Statistics
> > Logging
> > VSC B OK A
> > DISABLED
> >
> > | RDY 1 | 0 Peer
> > SP
> > BBU OK | RDY 1 | 1
> > PRESENT
> > | RDY 1 | 2
> > ADP 0% | RDY 1 | 3 Requests
> > Completed
> > BDP 0% | RDY 1 | 4
> > 5194395
> > UDP 0% B
> >
> > I think hdisk 3 is lun A above and hdisk4 lun B. Is that right?
> >
> > Regards Christian Eriksson

>
> If the device does not have any problems in the error
> report, then use this command:
>
> mkdev -l hdisk4'
>
> Usually if it is not available by default it might have
> a problem or is only defined for a reason, like a hardware
> problem or the driver is incorrect or some other reason.
>
> I cannot tell from that output if that is the LUN you are
> talking about. You can use this command to see if the
> LUN ids match:
>
> lscfg -vl hdisk4


How do I read the error report for the device?

Output from "lscfg -vl" for hdisk 4 and hdisk3:

$> lscfg -vl hdisk4
DEVICE LOCATION DESCRIPTION

hdisk4 X0-01-01-0,1 Bull DiskArray RAID 5 Disk Group
$> lscfg -vl hdisk3
DEVICE LOCATION DESCRIPTION

hdisk3 X0-01-01-0,0 Bull DiskArray RAID 5 Disk Group

Manufacturer................DGC
Machine Type and Model......RAID 5
ROS Level and ID............0926
Serial Number...............SAUNA CONTROLLER


The SCSI ID 0 match X0-01-01-_0_,1 and the LUN ID 1 also match
X0-01-01-0,_1_.

SP A
SP SCSI ID _0_
............
| RDY _1_ | 0
.............

This LUN (LUN 1) is not owned by SP A though but from SP B it shows

SP B Presentation Utility ( )
SP SCSI ID 1 Sun Mar 7 18:34:27 2004

PROM Revision
8.02

| RDY 0 | 0
FAN A OK | RDY 0 | 1 Microcode
Revision
FAN B OK | RDY 0 | 2
09.26.21
| RDY 0 | 3
VSC A OK | RDY 0 | 4 Statistics
Logging
VSC B OK A
DISABLED

| ENA 1 | 0 Peer
SP
BBU OK | ENA 1 | 1
PRESENT
| ENA 1 | 2
ADP 93% | ENA 1 | 3 Requests
Completed
BDP 0% | ENA 1 | 4 190
UDP 0% B
Cache
States
Write:
ENABLED
Enter ? for HELP, ^ to GO TO MAIN MENU Read:
ENABLED


Selecting one of the disks in LUN 1 shows:

Description: 1.0 GB SCSI Disk
State: ENABLED and SNIFFING 22 Percent Complete
Unit Number (hex): 1
Unit Type: RAID-5 Group (Individual Access Array)

Stripe Element Size: 128 Sectors
Maximum Rebuild Time: 4 Hours

Statistics logging is disabled.


Shouldn't the system be able to access this LUN 1 on the RAID-5 Group?
I tried:

$> mkdev -l hdisk4
hdisk4 Defined
$> echo $?
0
$> lsdev -Cc disk
hdisk0 Available 00-07-A1-3,0 2.0 GB SCSI Disk Drive
hdisk1 Available 00-07-A1-4,0 2.0 GB SCSI Disk Drive
hdisk2 Available 00-07-A1-5,0 Bull 4.2 GB 16 Bit SCSI Disk Drive.
hdisk3 Available X0-01-01-0,0 Bull DiskArray RAID 5 Disk Group
hdisk4 Defined X0-01-01-0,1 Bull DiskArray RAID 5 Disk Group

For your information:

$> uname -a
AIX R0231868 3 4 00921402A000

Now I see something here. From SP B the SCSI ID is 1. Does this mean I
have to set up a device with adress X0-01-01-1,1 to get an "Available"
device for LUN 1?

Regards Christian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com