rusher12
asked on
Replace failed disk/add to lv
Hello,
I had a fixed disk (hdisk25) fail on an AIX server version 4.3 performed the following steps to replace it. I removed it from the lv (dmdlv3) and then the vg (dmdvg2) and then removed it from the OS and physically removed the drive from the server. I then added a replacement and ran cfgmgr and the OS assigned it to hdisk 25 again. I then extended the dmdvg2 with hdisk25, but I am running into issues getting the dmdlv mirrored again. lslv -l dmdlv3 has the following output:
dmdlv3:/udb/data1
PV COPIES IN BAND DISTRIBUTION
hdisk5 541:000:000 20% 109:107:108:108:109
hdisk9 206:000:000 0% 109:097:000:000:000
hdisk24 667:000:000 32% 000:017:216:217:217
How do I readd the hdisk25 into the lv and setup the mirroring again?
Thanks,
Bill
LOGICAL VOLUME: dmdlv3 VOLUME GROUP: dmdvg2
LV IDENTIFIER: 000177068dc44d89.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 2032 PP SIZE: 16 megabyte(s
COPIES: 1 SCHED POLICY: parallel
LPs: 1414 PPs: 1414
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: inner edge UPPER BOUND: 32
MOUNT POINT: /udb/data1 LABEL: /udb/data1
MIRROR WRITE CONSISTENCY: on
EACH LP COPY ON A SEPARATE PV ?: yes
I had a fixed disk (hdisk25) fail on an AIX server version 4.3 performed the following steps to replace it. I removed it from the lv (dmdlv3) and then the vg (dmdvg2) and then removed it from the OS and physically removed the drive from the server. I then added a replacement and ran cfgmgr and the OS assigned it to hdisk 25 again. I then extended the dmdvg2 with hdisk25, but I am running into issues getting the dmdlv mirrored again. lslv -l dmdlv3 has the following output:
dmdlv3:/udb/data1
PV COPIES IN BAND DISTRIBUTION
hdisk5 541:000:000 20% 109:107:108:108:109
hdisk9 206:000:000 0% 109:097:000:000:000
hdisk24 667:000:000 32% 000:017:216:217:217
How do I readd the hdisk25 into the lv and setup the mirroring again?
Thanks,
Bill
LOGICAL VOLUME: dmdlv3 VOLUME GROUP: dmdvg2
LV IDENTIFIER: 000177068dc44d89.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 2032 PP SIZE: 16 megabyte(s
COPIES: 1 SCHED POLICY: parallel
LPs: 1414 PPs: 1414
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: inner edge UPPER BOUND: 32
MOUNT POINT: /udb/data1 LABEL: /udb/data1
MIRROR WRITE CONSISTENCY: on
EACH LP COPY ON A SEPARATE PV ?: yes
In the information you posted for dmdlv3, you can see references to LP and PP. Those are Logical Partition and Physical Partition. AIX breaks drives into "partitions". The partition size can vary, depending on the size of the drive. For example, in the info you posted for dmdlv3, it lists the PP size as 16 MB and there are currently 1,414 PP's (and LP's) in that LV (giving a total LV size of 22,624 MB).
AIX is asking how much of the new drive, in partitions, you want to add to the logical volume. If you look at the info for the new drive, it will show how many PP's it has divided the drive into. The number will depend on the size of the drive and the size chosen for the Physical Partitions. You would tell AIX to add that number of partitions to the LV, or less if you only want to add part of the drive.
Note that the info you posted listed the max LP's as 2,032. I'm not 100 % sure, but that may mean that you can't add more than 618 (2032 - 1414) LP's to that LV, in which case if you want to add more, you may have to increase the max LP's first.
James
AIX is asking how much of the new drive, in partitions, you want to add to the logical volume. If you look at the info for the new drive, it will show how many PP's it has divided the drive into. The number will depend on the size of the drive and the size chosen for the Physical Partitions. You would tell AIX to add that number of partitions to the LV, or less if you only want to add part of the drive.
Note that the info you posted listed the max LP's as 2,032. I'm not 100 % sure, but that may mean that you can't add more than 618 (2032 - 1414) LP's to that LV, in which case if you want to add more, you may have to increase the max LP's first.
James
ASKER
Ok, so from what I understand I would need to increase the max LP's on the dmdlv3 to a total of 2498 (1414+1084) as the PP on the hdisk25 show 1084 PP's. Then I would increase the size of dmdlv3 to 1084 additional logical partitions using hdisk25 and then I could recreate the mirror with mklvcopy dmdlv3 2 hdisk25. Correct?
I honestly can't say for sure on the mirror part, because I've never used them under AIX. Hopefully someone with experience using mirrors under AIX will jump in.
James
James
ASKER
Thanks James. I think I mucked it up further as I thought I had to exend the LV to then setup the mirroring. I think my only step left is to backup dmdlv3 and then blow it away and setup it up new and restore from tape. Thanks again for your help.
Bill
Bill
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER