Solved

Replace failed disk/add to lv

Posted on 2006-07-19
6
1,013 Views
Last Modified: 2013-11-17
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
0
Comment
Question by:rusher12
  • 3
  • 3
6 Comments
 

Author Comment

by:rusher12
ID: 17140090
From what I have read I need to extend the lv to include the pv, but it also asks for the number of partitions which I do understand. Any help would be appreciated.

0
 
LVL 34

Expert Comment

by:James0628
ID: 17145025
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
0
 

Author Comment

by:rusher12
ID: 17147163
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?

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 34

Expert Comment

by:James0628
ID: 17153307
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
0
 

Author Comment

by:rusher12
ID: 17155408
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
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 17159533
I'm not sure how much I really helped, but you're welcome.

 James
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now