Changing pdisk and hdisk numbers – Compex Systems Advanced SerialRAID Adapters SA33-3285-02 User Manual

Page 346

Advertising
background image

Changing Pdisk and Hdisk Numbers

Pdisk and hdisk numbers are assigned automatically when the using system is
configured. To help in system administration, it is sometimes useful to change these
numbers. If you want to change the numbers, use the following procedure:

1. Find the pdisk or hdisk number that you want to change, and select a new (unused)

name.

2. Give the command:

lsdev -Cl [disknumber] -Fconnwhere

where

[disknumber]

is the pdisk or hdisk number (for example, pdisk0) that you

want to change.

The command returns a ConnectionLocation number (for example,
004AC5119E000D).

3. Make a note of this number; you will need it later in this procedure.

4. Give the command:

lsdev -Cl [disknumber] -Ftype

where

[disknumber]

is the pdisk or hdisk number (for example, pdisk0) that you

want to change.

The command returns the device Type for the disk.

5. Make a note of this device type; you will need it later in this procedure.

6. Remove the existing pdisk or hdisk number from the configuration. Give the

command:

rmdev -l [disknumber] -d

where

[disknumber]

is the pdisk or hdisk number (for example, pdisk0) that you

want to remove.

7. Give the command:

mkdev -pssar -t [Type] -c [Class] -s ssar -w [ConnectionLocation] -l [NewDiskName]

where:

[Type]

is the disk type that you noted in step 5.

[Class]

is pdisk for a pdisk, or disk for an hdisk.

[ConnectionLocation]

is the number that you noted in step 3.

[NewDiskName]

is the pdisk or hdisk number (for example, pdisk0) that you want

for the disk.

For example:

mkdev -p ssar -t scsd -c pdisk -s ssar -w 004AC5119E000D -l pdisk50

326

User’s Guide and Maintenance Information

Advertising