Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Replace failed disk/add to lv

Posted on 2006-07-19
6
Medium Priority
?
1,057 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 35

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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 35

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 35

Accepted Solution

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

 James
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

916 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