[Solved] How to determine that you have 2 disks mirrored ? | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

[Solved] How to determine that you have 2 disks mirrored ?

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-23-2010
maxim42 maxim42 is offline
Registered User
 
Join Date: Apr 2009
Last Activity: 23 January 2014, 5:38 AM EST
Posts: 103
Thanks: 7
Thanked 0 Times in 0 Posts
[Solved] How to determine that you have 2 disks mirrored ?

hi every body
i want to know which command tell me more detailes to know the 2 disks mirrored or not ? in group like vg00
Sponsored Links
    #2  
Old 03-23-2010
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 31 August 2014, 10:31 AM EDT
Location: Switzerland - GE
Posts: 5,648
Thanks: 152
Thanked 391 Times in 370 Posts
This will make you think so:

Code:
ant:/home/vbe $ vgdisplay vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255    
Cur LV                      14     
Open LV                     14     
Max PV                      16     
Cur PV                      2      
Act PV                      2      
Max PE per PV               4350         
VGDA                        4   
PE Size (Mbytes)            8               
Total PE                    8680    
Alloc PE                    7966    
Free PE                     714     
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0

so for confirmation:
choose a lvol: the first one?

Code:
ant:/home/vbe $ lvdisplay /dev/vg00/lvol1
--- Logical volumes ---
LV Name                     /dev/vg00/lvol1
VG Name                     /dev/vg00
LV Permission               read/write   
LV Status                   available/syncd           
Mirror copies               1            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            304             
Current LE                  38        
Allocated PE                76          
Stripes                     0       
Stripe Size (Kbytes)        0                   
Bad block                   off          
Allocation                  strict/contiguous         
IO Timeout (Seconds)        default             

ant:/home/vbe $

So would the output of vgdisplay -v ...

---------- Post updated at 13:37 ---------- Previous update was at 12:07 ----------

I should add:
To be able to mirror on HP-UX depends on what OS release you have, and so may be an option you have to pay for :

Code:
ran:/home/vbe $ swlist |grep irro
  B2491BA                       B.11.11        MirrorDisk/UX

In other words, if this command doesnt return anything doesnt mean you cannot, e.g if your environment is a mission-critical environment it will be included in the OS
Sponsored Links
    #3  
Old 03-29-2010
maxim42 maxim42 is offline
Registered User
 
Join Date: Apr 2009
Last Activity: 23 January 2014, 5:38 AM EST
Posts: 103
Thanks: 7
Thanked 0 Times in 0 Posts
i want to know if i have 2 disk mirrored disks before or not i am not the owner of this machine this is the first time to work in this machine
    #4  
Old 03-29-2010
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 31 August 2014, 10:31 AM EDT
Location: Switzerland - GE
Posts: 5,648
Thanks: 152
Thanked 391 Times in 370 Posts
Whats wrong with the given answers?
Sponsored Links
    #5  
Old 03-29-2010
agn agn is offline
Registered User
 
Join Date: Feb 2008
Last Activity: 6 August 2013, 7:49 AM EDT
Posts: 345
Thanks: 0
Thanked 21 Times in 21 Posts
If on linux you'll see devices named md* on df(1) if you have RAID configured.

Oops, didn't see that it was on HP-UX .
Sponsored Links
    #6  
Old 03-29-2010
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 28 August 2014, 10:17 AM EDT
Location: St. Gallen, Switzerland
Posts: 6,227
Thanks: 121
Thanked 451 Times in 411 Posts
maxim42, you have to take a closer look to vbe's output:

Code:
Current LE                  38        
Allocated PE                76

The example Logical Volume he shows has twice as many physical extents that logical which shows that it is mirrored (I guess that's just similar to AIX LP and PP, Logical Partitions and Physical Partitions - just as I sneaked in here ).
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone lifegeek UNIX for Advanced & Expert Users 0 11-15-2009 10:12 PM
Backup for HW Mirrored Disks StarSol Solaris 8 03-12-2009 05:42 PM
Creating an image of a mirrored disks tlee Solaris 3 08-07-2008 11:00 PM
Mirrored disk..... balaji_prk AIX 7 12-23-2005 07:26 AM
checking to see if logical disks are mirrored. rocker40 AIX 1 06-14-2004 05:57 AM



All times are GMT -4. The time now is 03:38 AM.