Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I say my Data is Mirrored or its under RAID-5 1

Status
Not open for further replies.

samirm

Technical User
May 12, 2003
80
US
Hi,

I have a little confusion. While doing lsvg -l for all existing VGs its showing none of the LPs are mirrored except rootvg.

==============================================
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 250 250 1 open/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 4 8 2 open/syncd /
hd2 jfs 212 424 2 open/syncd /usr
hd9var jfs 14 28 2 open/syncd /var
hd3 jfs 39 78 2 open/syncd /tmp
hd1 jfs 3 6 2 open/syncd /home
paging00 paging 250 250 1 open/syncd N/A
lv00 jfs 16 32 2 open/syncd /u01


raid_vg1:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
r1_loopA_lv jfs 3257 3257 1 open/syncd /d001
r2_loopB_lv jfs 3258 3258 1 open/syncd /d002
loglv12 jfslog 1 1 1 open/syncd N/A


raid_vg2:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
r3_loopA_lv jfs 3257 3257 1 open/syncd /d003
r4_loopB_lv jfs 3258 3258 1 open/syncd /d004
loglv13 jfslog 1 1 1 open/syncd N/A


raid_vg3:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
r5_loopA_lv jfs 3257 3257 1 open/syncd /d005
loglv02 jfslog 1 1 1 open/syncd N/A
r6_loopB_lv jfs 3258 3258 1 open/syncd /d006


raid_vg5:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
oracle_PRD_lv jfs 140 140 1 open/syncd /oracle/PRD
loglv03 jfslog 1 1 1 open/syncd N/A
r8_loopA_lv jfs 3115 3115 1 open/syncd /d008
r10_loopB_lv jfs 3258 3258 1 open/syncd /d010


raid_vg6:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
r11_loopA_lv jfs 3257 3257 1 open/syncd /d011
r12_loopB_lv jfs 3257 3257 1 open/syncd /d012
loglv04 jfslog 1 1 1 open/syncd N/A

===================================

Here is the hdisk = pdisk mapping.

# ssaxlate -l hdisk2
pdisk128 pdisk4 pdisk8 pdisk9 pdisk10 pdisk14 pdisk15

# ssaxlate -l hdisk3
pdisk2 pdisk5 pdisk6 pdisk7 pdisk11 pdisk12 pdisk13

# ssaxlate -l hdisk4
pdisk19 pdisk20 pdisk21 pdisk22 pdisk23 pdisk125 pdisk30

# ssaxlate -l hdisk5
pdisk29 pdisk17 pdisk18 pdisk25 pdisk24 pdisk126 pdisk31

# ssaxlate -l hdisk6
pdisk106 pdisk97 pdisk98 pdisk99 pdisk100 pdisk102 pdisk105

# ssaxlate -l hdisk9
pdisk35 pdisk39 pdisk41 pdisk42 pdisk43 pdisk45 pdisk47

# ssaxlate -l hdisk7
pdisk101 pdisk103 pdisk104 pdisk107 pdisk108 pdisk109 pdisk110

# ssaxlate -l hdisk10
pdisk34 pdisk36 pdisk37 pdisk38 pdisk40 pdisk44 pdisk46

# ssaxlate -l hdisk11
pdisk50 pdisk52 pdisk53 pdisk54 pdisk56 pdisk60 pdisk63

# ssaxlate -l hdisk12
pdisk57 pdisk58 pdisk59 pdisk61 pdisk62 pdisk51 pdisk55


============================

Here is the pdisk info from "lscfg" ( the disks are very old = 18GB each in size ).


+ pdisk43 31-08-A2E1-01-P SSA160 Physical Disk Drive (18200
+ pdisk45 31-08-A2E1-03-P SSA160 Physical Disk Drive (18200
+ pdisk39 31-08-A2E1-05-P SSA160 Physical Disk Drive (18200
+ pdisk47 31-08-A2E1-06-P SSA160 Physical Disk Drive (18200
+ pdisk41 31-08-A2E1-07-P SSA160 Physical Disk Drive (18200
+ pdisk42 31-08-A2E1-08-P SSA160 Physical Disk Drive (18200
+ pdisk37 31-08-A2E1-09-P SSA160 Physical Disk Drive (18200
+ pdisk36 31-08-A2E1-10-P SSA160 Physical Disk Drive (18200
+ pdisk46 31-08-A2E1-11-P SSA160 Physical Disk Drive (18200
+ pdisk44 31-08-A2E1-14-P SSA160 Physical Disk Drive (18200
+ pdisk38 31-08-A2E1-15-P SSA160 Physical Disk Drive (18200
+ pdisk40 31-08-A2E1-16-P SSA160 Physical Disk Drive (18200
+ pdisk32 31-08-A2E1-02-P SSA160 Physical Disk Drive (18200
+ pdisk33 31-08-A2E1-12-P SSA160 Physical Disk Drive (18200
+ pdisk34 31-08-A2E1-13-P SSA160 Physical Disk Drive (18200

+ pdisk52 61-08-A3E6-01-P SSA160 Physical Disk Drive (18200
+ pdisk63 61-08-A3E6-02-P SSA160 Physical Disk Drive (18200
+ pdisk56 61-08-A3E6-03-P SSA160 Physical Disk Drive (18200
+ pdisk53 61-08-A3E6-04-P SSA160 Physical Disk Drive (18200
+ pdisk60 61-08-A3E6-05-P SSA160 Physical Disk Drive (18200
+ pdisk50 61-08-A3E6-06-P SSA160 Physical Disk Drive (18200
+ pdisk48 61-08-A3E6-07-P SSA160 Physical Disk Drive (18200
+ pdisk54 61-08-A3E6-08-P SSA160 Physical Disk Drive (18200
+ pdisk49 61-08-A3E6-09-P SSA160 Physical Disk Drive (18200
+ pdisk58 61-08-A3E6-10-P SSA160 Physical Disk Drive (18200
+ pdisk57 61-08-A3E6-11-P SSA160 Physical Disk Drive (18200
+ pdisk62 61-08-A3E6-12-P SSA160 Physical Disk Drive (18200
+ pdisk59 61-08-A3E6-13-P SSA160 Physical Disk Drive (18200
+ pdisk55 61-08-A3E6-14-P SSA160 Physical Disk Drive (18200
+ pdisk51 61-08-A3E6-15-P SSA160 Physical Disk Drive (18200
+ pdisk61 61-08-A3E6-16-P SSA160 Physical Disk Drive (18200


+ pdisk102 71-08-A6E3-01-P SSA160 Physical Disk Drive (18200
+ pdisk106 71-08-A6E3-02-P SSA160 Physical Disk Drive (18200
+ pdisk105 71-08-A6E3-03-P SSA160 Physical Disk Drive (18200
+ pdisk100 71-08-A6E3-04-P SSA160 Physical Disk Drive (18200
+ pdisk96 71-08-A6E3-05-P SSA160 Physical Disk Drive (18200
+ pdisk99 71-08-A6E3-06-P SSA160 Physical Disk Drive (18200
+ pdisk98 71-08-A6E3-07-P SSA160 Physical Disk Drive (18200
+ pdisk97 71-08-A6E3-08-P SSA160 Physical Disk Drive (18200
+ pdisk109 71-08-A6E3-09-P SSA160 Physical Disk Drive (18200
+ pdisk101 71-08-A6E3-10-P SSA160 Physical Disk Drive (18200
+ pdisk103 71-08-A6E3-11-P SSA160 Physical Disk Drive (18200
+ pdisk110 71-08-A6E3-12-P SSA160 Physical Disk Drive (18200
+ pdisk95 71-08-A6E3-13-P SSA160 Physical Disk Drive (18200
+ pdisk104 71-08-A6E3-14-P SSA160 Physical Disk Drive (18200
+ pdisk107 71-08-A6E3-15-P SSA160 Physical Disk Drive (18200
+ pdisk108 71-08-A6E3-16-P SSA160 Physical Disk Drive (18200


+ pdisk35 31-08-P SSA160 Physical Disk Drive (18200

+ pdisk125 21-08-A1E2-06-P SSA160 Physical Disk Drive (18200
+ pdisk126 21-08-A1E2-11-P SSA160 Physical Disk Drive (18200
+ pdisk30 21-08-A1E2-03-P SSA160 Physical Disk Drive (18200
+ pdisk29 21-08-A1E2-10-P SSA160 Physical Disk Drive (18200
+ pdisk31 21-08-A1E2-14-P SSA160 Physical Disk Drive (18200
+ pdisk28 21-08-A1E2-16-P SSA160 Physical Disk Drive (18200
+ pdisk23 21-08-A1E2-01-P SSA160 Physical Disk Drive (18200
+ pdisk21 21-08-A1E2-02-P SSA160 Physical Disk Drive (18200
+ pdisk22 21-08-A1E2-04-P SSA160 Physical Disk Drive (18200
+ pdisk16 21-08-A1E2-05-P SSA160 Physical Disk Drive (18200
+ pdisk20 21-08-A1E2-07-P SSA160 Physical Disk Drive (18200
+ pdisk19 21-08-A1E2-08-P SSA160 Physical Disk Drive (18200
+ pdisk17 21-08-A1E2-09-P SSA160 Physical Disk Drive (18200
+ pdisk24 21-08-A1E2-12-P SSA160 Physical Disk Drive (18200
+ pdisk25 21-08-A1E2-13-P SSA160 Physical Disk Drive (18200
+ pdisk18 21-08-A1E2-15-P SSA160 Physical Disk Drive (18200


+ pdisk128 11-08-A0E0-05-P SSA160 Physical Disk Drive (18200
+ pdisk4 11-08-A0E0-01-P SSA160 Physical Disk Drive (18200
+ pdisk9 11-08-A0E0-02-P SSA160 Physical Disk Drive (18200
+ pdisk15 11-08-A0E0-03-P SSA160 Physical Disk Drive (18200
+ pdisk1 11-08-A0E0-04-P SSA160 Physical Disk Drive (18200
+ pdisk14 11-08-A0E0-06-P SSA160 Physical Disk Drive (18200
+ pdisk10 11-08-A0E0-07-P SSA160 Physical Disk Drive (18200
+ pdisk8 11-08-A0E0-08-P SSA160 Physical Disk Drive (18200
+ pdisk11 11-08-A0E0-09-P SSA160 Physical Disk Drive (18200
+ pdisk0 11-08-A0E0-10-P SSA160 Physical Disk Drive (18200
+ pdisk12 11-08-A0E0-11-P SSA160 Physical Disk Drive (18200
+ pdisk7 11-08-A0E0-12-P SSA160 Physical Disk Drive (18200
+ pdisk2 11-08-A0E0-13-P SSA160 Physical Disk Drive (18200
+ pdisk13 11-08-A0E0-14-P SSA160 Physical Disk Drive (18200
+ pdisk6 11-08-A0E0-15-P SSA160 Physical Disk Drive (18200
+ pdisk5 11-08-A0E0-16-P SSA160 Physical Disk Drive (18200

Is there anyway I can confirm that my Data VGs are not mirrored and my data is not safe ? Or its internally under RAID-5 ..which I am not being able to findout.

The enclosures are all SSA encl.

Thanks ...

Sam

 
Hi,

Use lslv command for any logical volume you want to know about and look at the number of COPIES ( 2 = mirrored )

Code:
root@neptune:/:lslv lvdctm |grep COPIES
COPIES:             2                      SCHED POLICY:   parallel
root@neptune:/:lslv lvDEGDT_DM|grep COPIES
COPIES:             1                      SCHED POLICY:   parallel
root@neptune:/:

Ali
 
Thanks Ali for your quick response.

When I do lslv command for the LVs, its showing COPIES=1

$ lslv r1_loopA_lv
LOGICAL VOLUME: r1_loopA_lv VOLUME GROUP: raid_vg1
LV IDENTIFIER: 000548dfd5c0eb6f.1 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 4000 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 3257 PPs: 3257
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /d001 LABEL: /d001
MIRROR WRITE CONSISTENCY: on
EACH LP COPY ON A SEPARATE PV ?: yes


$ lslv r2_loopB_lv
LOGICAL VOLUME: r2_loopB_lv VOLUME GROUP: raid_vg1
LV IDENTIFIER: 000548dfd5c0eb6f.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 4000 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 3258 PPs: 3258
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /d002 LABEL: /d002
MIRROR WRITE CONSISTENCY: on
EACH LP COPY ON A SEPARATE PV ?: yes


How can I confirm that my data is safe ? Is that with RAID-5 configured? Any idea ..? How can I retrieve that information that my LVs are under RAID-5 ?

Thaks again ..

Sam
 
To see if you have RAIDs setup use

smitty ssaraid

There are a number of options in there to see what RAIDs are defined and the state they are in.

The fact that you have an hdisk created from a number of pdisks and not a one to one relationship would make me think that there are RAIDs defined.

 
Thanks misstc..

Its RAID-5

hdisk10 48DF3E4FAFF74CK system good 109.3GB raid_5
hdisk11 48DF3E4FC4EC4CK system good 109.3GB raid_5
hdisk12 48DF3E4FC62E4CK system good 109.3GB raid_5
hdisk2 48DF3DE8E1944CK system good 109.3GB raid_5
hdisk3 48DF3DE9A0D74CK system good 109.3GB raid_5
hdisk4 48DF3DE97C854CK system good 109.3GB raid_5
hdisk5 48DF3DE987864CK system good 109.3GB raid_5
hdisk6 48DF3DEA46A64CK system good 109.3GB raid_5
hdisk7 48DF3DEBC5674CK system good 109.3GB raid_5
hdisk9 48DF3E4F8F724CK system good 109.3GB raid_5

Sam
 
Hi,

Your data in raid 5 is safe against drive failures, but not if you delete it yourself.
Here is a hdisk2 configuration of mine that is still running with good data while witing to chage the failed drive :
Code:
Before command completion, additional instructions may appear below.

hdisk2  Available Raid  5 24-08-00-0,0 208290 MB Status DEGRADED
      hdisk2  10 Channel 1 ID 0  ONLINE - 34715Meg
      hdisk2  11 Channel 1 ID 1  ONLINE - 34715Meg
      hdisk2  12 Channel 1 ID 2  FAILED DRIVE - 34715Meg
      hdisk2  13 Channel 1 ID 3  ONLINE - 34715Meg
      hdisk2  14 Channel 1 ID 4  ONLINE - 34715Meg
      hdisk2  15 Channel 1 ID 5  ONLINE - 34715Meg
      hdisk2  16 Channel 1 ID 6  ONLINE - 34715Meg

Ali
 
> ... against drive failures, but not if you delete it yourself.

not even mirroring would help you there Ali.



HTH,

p5wizard
 
Your /dXXX filesystems all reside in VGs consisting of SSA RAID5 disks so they are reasonably safe. It would be interesting to know if these RAID5 groups have just data/parity or if there's also a spare disk in each group.

BUT: In rootvg you have mirorred and unmirrored LVs. I noticed your paging spaces are unmirrored.

rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 250 250 1 open/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 4 8 2 open/syncd /
hd2 jfs 212 424 2 open/syncd /usr
hd9var jfs 14 28 2 open/syncd /var
hd3 jfs 39 78 2 open/syncd /tmp
hd1 jfs 3 6 2 open/syncd /home
paging00 paging 250 250 1 open/syncd N/A
lv00 jfs 16 32 2 open/syncd /u01

Your hd6 and paging00 both have 250 LPs (and should show 500 PPs and 2PVs). You will probably NOT survive a disk crash of either one of your rootvg disks (depends on the placement of both paging spaces - but I'm assuming hd6 is on one disk and paging00 is on the other disk.)

The OS will fail and you'll have to rebuild/reboot (if you still have hd6 you can probably reboot on the remaining disk, with half of you paging space)


HTH,

p5wizard
 
Hi,

> ... against drive failures, but not if you delete it yourself.

> ... not even mirroring would help you there Ali.

Mirror, magic mirror, tell me where is my lost data ?

How you are right p5wizard!!

Ali
 
p5wizard,

Thanks for our support.

But if I do for rootvg
syncvg -l hd6
syncvg -l paging00

Hope this will make my rootvg safe. Correct me if I am wrong.
Hope I can do this anytime when the system is running. Or it needs any downtime to make sure while making "syncvg" there is a chance of performance issue.

Sam
 
p5wizard,

Here is goes ...

$ 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 250 250 1 open/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 4 8 2 open/syncd /
hd2 jfs 212 424 2 open/syncd /usr
hd9var jfs 14 28 2 open/syncd /var
hd3 jfs 39 78 2 open/syncd /tmp
hd1 jfs 3 6 2 open/syncd /home
paging00 paging 250 250 1 open/syncd N/A
lv00 jfs 16 32 2 open/syncd /u01


$ lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000548df3d4e013c
VG STATE: active PP SIZE: 16 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1084 (17344 megabytes)
MAX LVs: 256 FREE PPs: 4 (64 megabytes)
LVs: 10 USED PPs: 1080 (17280 megabytes)
OPEN LVs: 9 QUORUM: 1
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32

$ lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 542 2 00..00..00..00..02
hdisk1 active 542 2 00..00..00..00..02
 
simply syncvg'ing wont help you.

First you need to create a second copy for the LVs that don't have a second copy.

mklvcopy hd6 2
mklvcopy paging00 2
syncvg -v rootvg # synchronizes all copies of all LVs in rootvg.

Of course, this is provided there's enough free PPs in rootvg.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top