Hello,
enter the command
# lsdev -C -c disk
In my system the output is:
hdisk0 Available 04-C0-00-0,0 Other SCSI Disk Drive
04-C0-00- identify the scsi adapter (location, channel..).
0,0 is the scsi address of your devices. The address is
the fisrt 0 (before comma), the second is the logical units
(usually not used in simple devices ).
eg
# lsdev -C -s scsi
hdisk0 Available 04-C0-00-0,0 Other SCSI Disk Drive
cd0 Available 04-C0-00-3,0 SCSI Multimedia CD-ROM Drive
the address of cdrom is 3.
When you have retrived scsi address of hdisk1, by one of these command, put you attention at physical disks:
look for the devices that has set this address. If your
disks are external, probably there is a knob showing the address. If disks are internal (to risc or a storage system), this can be more difficult. In this case the address is set by jumpers: for each disk (they can be not equal each to other) retrieve the meaning of jumper position, and label each disk with the scsi address.
When yoy have found the physical disk with adrress = hdisk1-adress, you can remove it.
Halt ! Don't do it now.
enter the command
lspv
( in my system
# lspv
hdisk0 009260800c32f43f rootvg
)
If the disk is a member of a vg (Volume group), this is
not the moment to do this action.
Case 1:
-------
# lspv
hdisk0 009260800c32f43f rootvg
hdisk1 9983749328498327 none
OK :
enter
rmdev -l hdisk1 -d
shutdown the system, make hardware ops, then boot.
CASE 2:
-------
# lspv
hdisk0 009260800c32f43f rootvg
hdisk1 9983749328498327 myvg
If you know the content oh myvg
(enter lsvg -l myvg )
and you don't need them or you have baked up, enter
( if there are secondary paging spaces, mark them to
not be used at next reboot, reboot, remove sec.(s) ps.
Use "smitty pgsp" to do this).
Then
exportvg myvg ( use smit for right flags )
This command deletes all references to myvg and its jfs
from the ODM ( system DNA ); moreover, you can use this
disk with its data in an othe system after an importvg.
At this step you are in the situation of CASE 1, continue.
CASE 3: (more difficult)
-------
# lspv
hdisk0 009260800c32f43f rootvg
hdisk1 9983749328498327 myvg
hdisk2 9983749328498327 myvg
the disk that I want remove is not alone in the VG.
Enter:
# lspv -l hdisk1
( in my system )
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd5 1 1 01..00..00..00..00 N/A
temp 40 40 20..19..01..00..00 /home/temp
hd6 32 32 00..32..00..00..00 N/A
lv00 21 21 00..21..00..00..00 /usr/catia
lv01 7 7 00..07..00..00..00 /home/catadm
hd3 32 32 00..30..02..00..00 /tmp
hd8 1 1 00..00..01..00..00 N/A
hd4 1 1 00..00..01..00..00 /
hd2 66 66 00..00..66..00..00 /usr
hd9var 4 4 00..00..04..00..00 /var
hd1 1 1 00..00..01..00..00 /home
A) remove all lvs from this disk ( rmfs myjfs )
or move them in another disk (it is not easy)
(another problem can be if the disk contains a jfslog)
B) reducevg ( use smitty vg, Set charact., Remove a phy.)
At this step you are in the situation of CASE 1, continue.
-------
Removing a disk, gives you more opportunity to learn AIX
than adding one !
Bye