Mirrored disk.....


 
Thread Tools Search this Thread
Operating Systems AIX Mirrored disk.....
# 1  
Old 12-19-2005
Mirrored disk.....

How do I know, which all disks are mirrored? any command?

Bala
# 2  
Old 12-20-2005
I AIX usually not disks are mirrored, but logical volumes.

Issue "lsvg -l <vgname>" and note the number of PPs and LPs each LV takes: if the number of PPs is double the number of LPs on mirror exist (every LP exists in 2 copies on two different PPs), asf.

Here is a sample output to give you the idea:

Code:
# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     1     1    closed/syncd  N/A
hd6                 paging     9     9     1    open/syncd    N/A
hd8                 jfs2log    1     1     1    open/syncd    N/A
hd4                 jfs2       1     2     2    open/syncd    /      # <-- this is mirrored
hd2                 jfs2       70    70    1    open/syncd    /usr   # <-- not mirrored
hd9var              jfs2       16    48    3    open/syncd    /var   # <-- two mirrors

bakunin
# 3  
Old 12-21-2005
Thanks Bakunin....
# 4  
Old 12-21-2005
But Bakunin.. I suppose you can mirror a disk in AIX 5.3.
Suppose I want redundancy for my rootvg.. what I normally do is add a physical disk (PV) to the vg, mirror it and then make the second disk bootable using the "bosboot" command. Now my question is how will I come to know which all disks are mirrored like this...

Balaji...
# 5  
Old 12-22-2005
I can help you a bit...

take the output of lsvg -l rootvg...and with bakunin's reply u can find out the file systems which are having 2 PPs for their LPs.


Now search for those file systems(which are having 2 PPs for their LPs) on each HDD in that VG. If you find the File system. that PV is in the mirroring.
# 6  
Old 12-22-2005
Hi Manu,

Thanks for that Idea.. i was also thinking for that..thanks a lot.

cheers...

Bala
# 7  
Old 12-23-2005
Quote:
Originally Posted by balaji_prk
How do I know, which all disks are mirrored? any command?

Bala
when u give lsvg -l rootvg u can find whether the FS is mirrored ....
lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 141 282 2 open/syncd N/A

then if u give lsvg -p rootvg ,it gives what r all the disk r belong to VG,
lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk1 active 542 1 00..00..00..00..01
hdisk2 active 542 1 00..00..00..00..01

still if u want to know more in which hdisk and which pv here is the command,conclusion that Hdisk2 is the mirror of hdisk1

lslv -m hd1
hd1:/home
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0041 hdisk1 0041 hdisk2
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Booting 2nd mirrored boot disk

Hi guys, thanks for helping out. If you have two boot disk mirrored and your primary boot disk fails, how will you boot the system from the second disk? Thank you very much for your assistance on this matter. Arrey (5 Replies)
Discussion started by: cjashu
5 Replies

2. Solaris

Need help replacing a mirrored boot disk

I have a v480 with a mirrored boot disk c1t0 and c1t1. The drives themselves don't show a failure but the mirror's need maintenance. This is my plan for replacing the drive. I would love feedback to point out what I"m missing or where my steps are incorrect. Two things I believe I'm... (3 Replies)
Discussion started by: pcoffey
3 Replies

3. AIX

How to extend mirrored VG?

Hi all, I need to extend a lv, but unfortunately I do not have enough space on my mirrored Volume group. I've planned to add 2 more disks to this vg (for mirroring) But ... what's the next steps to extend my lv using these 2 disks with a valid mirroring ? 1. extendvg myvg disk1 disk2... (3 Replies)
Discussion started by: unclefab
3 Replies

4. Solaris

Boot from Mirrored disk

So I have mirrored disk already set up from c1t0d0 to c1t1d0. Is there some special procedures that I need to do before I do and then try to boot from the mirrored disk? I am using a V490 if that helps... (7 Replies)
Discussion started by: drew_1980
7 Replies

5. Solaris

Are my disks mirrored ?

# metastat d1: Mirror Submirror 0: d11 State: Okay Submirror 1: d12 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 14582208 blocks (7.0 GB) d11: Submirror of d1 State: Okay Size: 14582208 blocks... (2 Replies)
Discussion started by: Exposure
2 Replies

6. UNIX for Advanced & Expert Users

how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone

I have a HP proliant ML 570 G3 with two 146GB disk drives mirrored(RAID1+0) windows server 2003 was installed on that disk. I will add a disk.(scsi 300GB) I will install Linux on that additional disk. I want to create multiple-boot system. Is it possible? I wanna know how to create... (0 Replies)
Discussion started by: lifegeek
0 Replies

7. Solaris

Remove os mirrored disk Solaris 10

Hello once again seeking your help, I have a mirrored disk and need to unmirror it to mount it as a new file system (/export) but could not find the correct steps to do it with out affecting the original disk. can anybody point me out on how to get this done. Thanks!! (3 Replies)
Discussion started by: AQG
3 Replies

8. UNIX for Dummies Questions & Answers

Solaris 10 not booting with mirrored disk

Hi all, I have a V490 running with Solaris 10. The OS disk was mirrored. I wanted to break the mirror, boot with the secondary mirror, and re-mirror the OS with a new disk. This is what I did, detached the metadevices of the secondary mirror disk (disk 1) metaclear-ed the metadevices,... (1 Reply)
Discussion started by: nitinp82
1 Replies

9. UNIX for Dummies Questions & Answers

Creating create mirrored disk files systems using mkfs command

What is the correct mkfs syntax to create mirrored disk files systems? I need to make the file system 20gb. For example: machine# mkfs -F ufs /dev/md/dsk/d40 size not specified ufs usage: mkfs special size(sectors) \ -m : dump fs cmd line used to make this partition -V : print this... (4 Replies)
Discussion started by: GLJ@USC
4 Replies

10. HP-UX

Number of Disk Mirrored in HP-UX

In HP-UX 11.00 How can i check if there are disks mirrored (2 Replies)
Discussion started by: cgege
2 Replies
Login or Register to Ask a Question