Hi Bakunin,
rmdev -Rl hdisk5
cfgmgr
We can remove it actually? and can be rediscovered? So this action is just delete the device file, not the data?
We have pulled out the failure disk pdisk5 and added a new hard disk.
In the first, the newly added disk is recognized as a hdisk1. Then I format it with
Create an Array Candidate pdisk and Format to 522 Byte Sectors
then it becomes the array candidate pdisk5. Then I use.
Add Disks to an Existing PCI-X SCSI Disk Array
The disk can be added, but the get the warning such as: the disk is not used for parity and not restriped". I have not captured the exact output.
--> this means that the new disk is only used for data and not used for parity checks and stripped data like Raid 5 behavior?
I though I should try with this first instead of "Add disks to an existing ..." . As after adding, the re-contruct option is not effective.
Reconstruct a PCI-X SCSI Disk Array
Here is the menu-list command:
List PCI-X SCSI Disk Array Configuration
Create an Array Candidate pdisk and Format to 522 Byte Sectors
Create a PCI-X SCSI Disk Array
Delete a PCI-X SCSI Disk Array
Add Disks to an Existing PCI-X SCSI Disk Array
Configure a Defined PCI-X SCSI Disk Array
Change/Show Characteristics of a PCI-X SCSI Disk Array
Reconstruct a PCI-X SCSI Disk Array
Change/Show PCI-X SCSI pdisk Status
Diagnostics and Recovery Options
I followed this for what I have done
IBM Knowledge Center Error
And this for rebuild -->PCI-X SCSI RAID Controller Reference Guide for AIX. Actually not having the chance to use it as mentioned above.
IBM Knowledge Center Error
You have any idea for this?
So just wonder, as recommended by you, we should unmount all devices/filesystems, but do this mean downtime also in application and not really the "hot-swap". In what case we can do an online replacement? As read, the disk is hot-swap, it can be done online, right? Please advise.
--- Post updated at 04:04 PM ---
Note: I have edited my post.
--- Post updated at 04:14 PM ---
If you look at the pdisks in the raid5 pdisk5
hdisk5 04-08-ff-0,1 Optimal RAID 5 Array 714.3GB
pdisk2 04-08-00-5,0 Active Array Member 142.8GB
pdisk8 04-08-00-8,0 Active Array Member 142.8GB
pdisk4 04-08-01-3,0 Active Array Member 142.8GB
pdisk3 04-08-01-5,0 Active Array Member 142.8GB
pdisk7 04-08-01-8,0 Active Array Member 142.8GB
pdisk5 04-08-01-4,0 Active Array Member 142.8GB
We can see it has 6 pdisks: 6x142.8=856.8 GB
But with Raid5, we have total size=total disk -1 means 5x142.8=714GB. It matched with 714.3 GB above.
So the OS should recognize the hdisk5 and its VG is 714GB instead of only 540GB
xxx@/#lsvg -p SSAMvg
SSAMvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk5 active 532 45 00..00..00..00..45
xxx@/#lsvg SSAMvg
VOLUME GROUP: SSAMvg VG IDENTIFIER: 00096f540000d7000000015371bd6d50
VG STATE: active PP SIZE: 1024 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 532 (544768 megabytes)
MAX LVs: 256 FREE PPs: 45 (46080 megabytes)
LVs: 8 USED PPs: 487 (498688 megabytes)
OPEN LVs: 8 QUORUM: 2
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable