Solved

Replace failed disk/add to lv

Posted on 2006-07-19
6
1,007 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.
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.

744 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

9 Experts available now in Live!

Get 1:1 Help Now