Partition offset problem after re-mirror vg


 
Thread Tools Search this Thread
Operating Systems AIX Partition offset problem after re-mirror vg
# 1  
Old 12-03-2010
Partition offset problem after re-mirror vg

We had a mirrored disk failed (not the rootvg), there are 3 lvs (transfer, applogs, arch) from extvg gone open/stale state.
After replaced failed disk and run cfgmgr, the new replaced disk is visible:
Quote:
#lspv
hdisk55 000013da1320ba31 extvg
hdisk3 none None (this is new replaced disk
)
I did the following to re-mirror new disk:
# extendvg prodvg hdisk3
# lspv (got new pvid on hdisk3)

# lslv -m transfer (no mirror as yet)
Quote:
transfer:/data/transfer
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0307 hdisk32
0002 0308 hdisk32
0003 0309 hdisk32
0004 0310 hdisk32
0005 0301 hdisk32
0006 0302 hdisk32
0007 0303 hdisk32
0008 0304 hdisk32
0009 0305 hdisk32
0010 0306 hdisk32
# mirrorvg prodvg hdisk3
# lsvg -l prodtvg (all LVs in extvg are shown open/syncd)
Quote:
# lsvg -l extvg
extvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
apps jfs 386 772 2 open/syncd /apps
loglv00 jfslog 1 2 2 open/syncd N/A
data jfs 4 8 2 open/syncd /data
transfer jfs 10 20 2 open/syncd /data/transfer
ftpch jfs 4 8 2 open/syncd /data/ftpch
input-prod jfs 160 320 2 open/syncd /data/ftpch/input-prod
ftp-prod jfs 4 8 2 open/syncd /data/ftpch/ftp-prod
applogs jfs 24 48 2 open/syncd /applogs
sec jfs 16 32 2 open/syncd /sec
redo-01 jfs 144 288 2 open/syncd /db/redo-01
arch jfs 294 588 2 open/syncd /db/arch
load_1 jfs 88 176 2 open/syncd /load_1
input-test jfs 160 320 2 open/syncd /data/ftpch/input-test
dbbkup jfs 500 1000 2 open/syncd /db/bkup_dest
test jfs 100 200 2 open/stale /test
# lslv -m transfer
Quote:
transfer:/data/transfer
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0307 hdisk32 0224 hdisk3
0002 0308 hdisk32 0225 hdisk3
0003 0309 hdisk32 0226 hdisk3
0004 0310 hdisk32 0227 hdisk3
0005 0301 hdisk32 0228 hdisk3
0006 0302 hdisk32 0229 hdisk3
0007 0303 hdisk32 0230 hdisk3
0008 0304 hdisk32 0231 hdisk3
0009 0305 hdisk32 0232 hdisk3
0010 0306 hdisk32 0233 hdisk3
But when I look at the partition table of hdisk32 and hdisk3, they are not the same:

Quote:
# lspv -p hdisk32
hdisk32:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-16 used outer edge sec jfs /sec
17-80 used outer edge load_1 jfs /load_1
81-219 used outer edge input-prod jfs /data/ftpch/input-prod
220-240 used outer middle input-prod jfs /data/ftpch/input-prod
241-264 used outer middle load_1 jfs /load_1
265-272 free outer middle
273-276 used outer middle data jfs /data
277-300 free outer middle
301-310 used outer middle transfer jfs /data/transfer
311-314 used outer middle ftpch jfs /data/ftpch
315-318 used outer middle ftp-prod jfs /data/ftpch/ftp-prod
319-330 free outer middle
331-354 used outer middle applogs jfs /applogs
355-438 used outer middle input-test jfs /data/ftpch/input-test
439-514 used center input-test jfs /data/ftpch/input-test
515-656 free center
657-799 free inner middle
800-874 used inner middle arch jfs /db/arch
875-1093 used inner edge arch jfs /db/arch

Quote:
# lspv -p hdisk3
hdisk3:
PP RANGE STATE REGION LV ID TYPE MOUNT POINT
1-31 free outer edge
32-131 used outer edge test jfs /test
132-219 used outer edge load_1 jfs /load_1
220-223 used outer middle data jfs /data
224-233 used outer middle transfer jfs /data/transfer
234-237 used outer middle ftpch jfs /data/ftpch
238-397 used outer middle input-prod jfs /data/ftpch/input-prod
398-401 used outer middle ftp-prod jfs /data/ftpch/ftp-prod
402-425 used outer middle applogs jfs /applogs
426-438 used outer middle sec jfs /sec
439-441 used center sec jfs /sec
442-656 used center arch jfs /db/arch
657-735 used inner middle arch jfs /db/arch
736-874 used inner middle input-test jfs /data/ftpch/input-test
875-895 used inner edge input-test jfs /data/ftpch/input-test
896-1093 free inner edge
How can I fix this without offlining extvg?

Last edited by jalite19; 12-03-2010 at 09:41 AM..
# 2  
Old 12-03-2010
try
Code:
 mirrorvg -m rootvg hdisk1

mirrors using exact maping
# 3  
Old 12-03-2010
Quote:
Originally Posted by jalite19
[...]But when I look at the partition table of hdisk32 and hdisk3, they are not the same [...] How can I fix this without offlining extvg?
  • As you have an hdisk32 and an hdisk55 I assume that these are not physical disks but SAN disks. In this case the information of the LV position is completely useless because you have no information about where the data is being placed on the LUN's underlying physical disk(s).
  • If you use physical disks having different layouts on different disks might be an advantage if you have more read than write operations because the disk's head will start reading data from that copy that can be accessed first (as long as you don't configure your LV's otherwise). If you use exact mapping the head move will allways be the same.
  • The layout of the two disks is different because there was space used on hdisk32 before /db/arch had been created. This space has been freed and neither been used by another LV/FS nor filled via a reorgvg.
  • Creating the mirror with exact mapping is the fastest possibility to make the mapping the same on every disk. In case the disk's characteristics are identical you might also try a reorgvg. There are even other ways to achieve this. All share that you can change this on the fly. LVM is great.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

The problem in the new partition

hi I created a new partition ls -l /dev/sda* brw-rw---- 1 root disk 8, 0 Oct 21 12:29 /dev/sda brw-rw---- 1 root disk 8, 1 Oct 12 11:19 /dev/sda1 brw-rw---- 1 root disk 8, 10 Oct 21 13:50 /dev/sda10 brw-rw---- 1 root disk 8, 2 Oct 12 11:19 /dev/sda2 brw-rw---- 1 root disk 8, 3 Oct... (3 Replies)
Discussion started by: mnnn
3 Replies

2. Solaris

Mirror disk problem

Hello all, i have the mirror disk problem with SunOS 5.10. here's the message: # metastat d15 d15: Mirror Submirror 0: d16 State: Needs maintenance Submirror 1: d17 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel... (4 Replies)
Discussion started by: rwprabowo
4 Replies

3. Shell Programming and Scripting

Problem running zip from cron - bad zipfile offset

I've created a pretty straightforward shell script to do backups via rsync. Every night it rsyncs a copy of a website (approx 60GB) to the local machine. Once a week, after the rsync step, it zips the local copy of the whole site into 2GB chunks and places them in another folder. When running... (3 Replies)
Discussion started by: Agreppa
3 Replies

4. UNIX for Advanced & Expert Users

Grep --byte-offset not returning the offset (Grep version 2.5.1)

Hi, I am trying to get the position of a repeated string in a line using grep -b -o "pattern" In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
Discussion started by: Subhamoy
3 Replies

5. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

6. UNIX for Advanced & Expert Users

LVM mirror creation problem

I apologize is this isn't an appropriate post for the 'advanced' UNIX, so please let me know if I should post this under UNIX for dummies, but here's my problem in a nutshell: I having problems creating a mirrored logical volume. I have created two new physical volumes ... (2 Replies)
Discussion started by: simonrodan
2 Replies

7. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

8. Solaris

Solaris 10: Problems booting off mirror drive -- Error 22: No such partition

Solaris 10 5/08 on Ultra 40 M2 It boots fine off primary disk but having issues booting off the mirror disk. I get this error when booting off mirror disk: Booting 'Solaris 10 ... Mirror disk' root (hd1,0,a) Error 22: No such partition Press any key to continue... Any... (7 Replies)
Discussion started by: etc
7 Replies

9. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

10. Solaris

Problem with Solaris Partition, I cant see it

Hi All, First post, I work as database developer (Oracle) My task is to setup a solaris system on a VMware installation which sits on a x86 server. I have installed the Os, applied patches (I think) and on VMWARE I added new hardware (Disk) which is where my database will be. The... (5 Replies)
Discussion started by: platforminc
5 Replies
Login or Register to Ask a Question