How to Mirror LV and umirror after to change PVs...


 
Thread Tools Search this Thread
Operating Systems HP-UX How to Mirror LV and umirror after to change PVs...
# 1  
Old 06-08-2010
How to Mirror LV and umirror after to change PVs...

Greetings

Im running HP UX B 11.11 and Im not sure on how to do this request to "mirror current 5 LVs on vgSPAN to the new LUNs assigned to the VG and unmirror the LVs and finally return the 12 LUNs to SAN storage" The existing LVs were extended to accommodate a user request to extend 2 FS on this VG

This is my vgdisplay -v | more output:

Code:
--- Volume groups ---
VG Name                     /dev/vgSPAN
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255    
Cur LV                      5      
Open LV                     5      
Max PV                      16     
Cur PV                      12     
Act PV                      12     
Max PE per PV               16000        
VGDA                        24  
PE Size (Mbytes)            32              
Total PE                    19956   
Alloc PE                    14066   
Free PE                     5890    
Total PVG                   1        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vgSPAN/lvol1
   LV Status                   available/syncd           
   LV Size (Mbytes)            4224            
   Current LE                  132       
   Allocated PE                132         
   Used PV                     6       

   LV Name                     /dev/vgSPAN/lvol2
   LV Status                   available/syncd           
   LV Size (Mbytes)            4224            
   Current LE                  132       
   Allocated PE                132         
   Used PV                     6       

   LV Name                     /dev/vgSPAN/lvol3
   LV Status                   available/syncd           
   LV Size (Mbytes)            71680           
   Current LE                  2240      
   Allocated PE                2240        
   Used PV                     12      

   LV Name                     /dev/vgSPAN/lvol4
   LV Status                   available/syncd           
   LV Size (Mbytes)            368640          
   Current LE                  11520     
   Allocated PE                11520       
   Used PV                     12      

   LV Name                     /dev/vgSPAN/lvol5
   LV Status                   available/syncd           
   LV Size (Mbytes)            1344            
   Current LE                  42        
   Allocated PE                42          
   Used PV                     6       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c33t8d2
   PV Name                     /dev/dsk/c35t8d2 Alternate Link
   PV Status                   available                
   Total PE                    959     
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c35t8d3
   PV Name                     /dev/dsk/c33t8d3 Alternate Link
   PV Status                   available                
   Total PE                    959     
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c33t8d4
   PV Name                     /dev/dsk/c35t8d4 Alternate Link
   PV Status                   available                
   Total PE                    959     
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c35t8d5
   PV Name                     /dev/dsk/c33t8d5 Alternate Link
   PV Status                   available                
   Total PE                    959     
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c33t8d6
   PV Name                     /dev/dsk/c35t8d6 Alternate Link
   PV Status                   available                
   Total PE                    959     
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c35t8d7
   PV Name                     /dev/dsk/c33t8d7 Alternate Link
   PV Status                   available                
   Total PE                    959     
   Free PE                     0       
   Autoswitch                  On        

   PV Name                     /dev/dsk/c44t9d4
   PV Name                     /dev/dsk/c45t9d4 Alternate Link
   PV Status                   available                
   Total PE                    2367    
   Free PE                     981     
   Autoswitch                  On        

   PV Name                     /dev/dsk/c44t9d5
   PV Name                     /dev/dsk/c45t9d5 Alternate Link
   PV Status                   available                
   Total PE                    2367    
   Free PE                     981     
   Autoswitch                  On        

   PV Name                     /dev/dsk/c44t9d6
   PV Name                     /dev/dsk/c45t9d6 Alternate Link
   PV Status                   available                
   Total PE                    2367    
   Free PE                     982     
   Autoswitch                  On        

   PV Name                     /dev/dsk/c44t9d7
   PV Name                     /dev/dsk/c45t9d7 Alternate Link
   PV Status                   available                
   Total PE                    2367    
   Free PE                     982     
   Autoswitch                  On        

   PV Name                     /dev/dsk/c44t10d0
   PV Name                     /dev/dsk/c45t10d0        Alternate Link
   PV Status                   available                
   Total PE                    2367    
   Free PE                     982     
   Autoswitch                  On        

   PV Name                     /dev/dsk/c44t10d1
   PV Name                     /dev/dsk/c45t10d1        Alternate Link
   PV Status                   available                
   Total PE                    2367    
   Free PE                     982     
   Autoswitch                  On        


   --- Physical volume groups ---
   PVG Name                    PVG0                       
   PV Name                     /dev/dsk/c33t8d2           
   PV Name                     /dev/dsk/c35t8d3           
   PV Name                     /dev/dsk/c33t8d4           
   PV Name                     /dev/dsk/c35t8d5           
   PV Name                     /dev/dsk/c33t8d6           
   PV Name                     /dev/dsk/c35t8d7           
   PV Name                     /dev/dsk/c44t9d4           
   PV Name                     /dev/dsk/c44t9d5           
   PV Name                     /dev/dsk/c44t9d6           
   PV Name                     /dev/dsk/c44t9d7           
   PV Name                     /dev/dsk/c44t10d0          
   PV Name                     /dev/dsk/c44t10d1

These are the new disks assigned to server:

Code:
/dev/rdsk/c44t10d2           e1  0a  d2  CL1B  06:0f  OPEN-V           00045468

/dev/rdsk/c45t10d2           d3  0a  d2  CL2B  06:0f  OPEN-V           00045468

/dev/rdsk/c44t10d3           e1  0a  d3  CL1B  06:10  OPEN-V           00045468

/dev/rdsk/c45t10d3           d3  0a  d3  CL2B  06:10  OPEN-V           00045468

/dev/rdsk/c44t10d4           e1  0a  d4  CL1B  06:11  OPEN-V           00045468

/dev/rdsk/c45t10d4           d3  0a  d4  CL2B  06:11  OPEN-V           00045468

/dev/rdsk/c44t10d5           e1  0a  d5  CL1B  06:12  OPEN-V           00045468

/dev/rdsk/c45t10d5           d3  0a  d5  CL2B  06:12  OPEN-V           00045468

File systems:

Code:
spthpn22:/root# bdf /data/prod01 /dblog01
Filesystem          kbytes    used   avail %used Mounted on
/dev/vgSPAN/lvol4  377487360 206431272 169719776   55% /data/prod01
/dev/vgSPAN/lvol3  73400320    4968 72822024    0% /dblog01
spthpn22:/root# date
Tue Jun  8 14:38:55 EST 2010

LV stat:

Code:
spthpn22:/root# lvdisplay -v /dev/vgSPAN/lvol4 | more
--- Logical volumes ---
LV Name                     /dev/vgSPAN/lvol4
VG Name                     /dev/vgSPAN
LV Permission               read/write   
LV Status                   available/syncd           
Mirror copies               0            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            368640          
Current LE                  11520     
Allocated PE                11520       
Stripes                     0       
Stripe Size (Kbytes)        0                   
Bad block                   NONE         
Allocation                  PVG-strict/distributed
IO Timeout (Seconds)        default             

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV  
   /dev/dsk/c33t8d2   694       694       
   /dev/dsk/c35t8d3   694       694       
   /dev/dsk/c33t8d4   694       694       
   /dev/dsk/c35t8d5   694       694       
   /dev/dsk/c33t8d6   694       694       
   /dev/dsk/c35t8d7   694       694       
   /dev/dsk/c44t9d4   1226      1226      
   /dev/dsk/c44t9d5   1226      1226      
   /dev/dsk/c44t9d6   1226      1226      
   /dev/dsk/c44t9d7   1226      1226      
   /dev/dsk/c44t10d0  1226      1226      
   /dev/dsk/c44t10d1  1226      1226

Code:
spthpn22:/root# lvdisplay -v /dev/vgSPAN/lvol3 | more
--- Logical volumes ---
LV Name                     /dev/vgSPAN/lvol3
VG Name                     /dev/vgSPAN
LV Permission               read/write   
LV Status                   available/syncd           
Mirror copies               0            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            71680           
Current LE                  2240      
Allocated PE                2240        
Stripes                     0       
Stripe Size (Kbytes)        0                   
Bad block                   NONE         
Allocation                  PVG-strict/distributed
IO Timeout (Seconds)        default             

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV  
   /dev/dsk/c33t8d2   214       214       
   /dev/dsk/c35t8d3   214       214       
   /dev/dsk/c33t8d4   214       214       
   /dev/dsk/c35t8d5   214       214       
   /dev/dsk/c33t8d6   214       214       
   /dev/dsk/c35t8d7   214       214       
   /dev/dsk/c44t9d4   160       160       
   /dev/dsk/c44t9d5   160       160       
   /dev/dsk/c44t9d6   159       159       
   /dev/dsk/c44t9d7   159       159       
   /dev/dsk/c44t10d0  159       159       
   /dev/dsk/c44t10d1  159       159

Thank you in advance..
# 2  
Old 06-08-2010
What puzzles me is at first look is that you are using at least 6 PVs (even 12...) in each LV I suppose for performance ( using PVG ...).
Even if system doesnt say so you are in almost stripped mode (distributed)...

I dont see how, with 5 new PVs you can achieve the same (it will be unbalanced...)

---------- Post updated at 13:24 ---------- Previous update was at 13:23 ----------

Will move thread to more suitable forum (HP-UX)

Last edited by vbe; 06-08-2010 at 08:53 AM.. Reason: typo...
# 3  
Old 07-05-2010
Perfect and agreed, I don't think it makes good sense either!

-DB
# 4  
Old 07-12-2010
Hi all

I totally forgot i posted this entry! The entry is not entirely correct. I was doing fine until i reached the part where i had to unmirror the old disks to return to SAN team

I was really nervous when i was doing lvreduce, and i missed the space in this syntax:

Code:
lvreduce -m 0 /dev/vgSPAN/lvol1 /dev/dsk/c33t8d6 /dev/dsk/c35t8d7 /dev/dsk/c44t10d2 /dev/dsk/c44t10d3 /dev/dsk/c44t10d4 /dev/dsk/c44t10d

So i had to do a bit of reverse engineering here. I had to lvextend -m again then lvreduce it and finally vgreduce from VGSPAN to clear the old disks from usage.

Phew* I got that sorted out..thank you anyways
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Rebooting redundant VIOs and mirroring of PVs they serve to client LPARs

need to confirm: we have a system with two VIOs each serving a partition on a local disk to a client LPAR. That client LPAR has them both in a VG which is mirrored (exact). So each disk has a copy of the client LV that the client VG supports. This is the setup that was bequeathed to us by the... (3 Replies)
Discussion started by: maraixadm
3 Replies

2. HP-UX

PVS command in HP-UX

Dear Engineer, Is there any command in HP-UX work similiar to PVS command in Linux? With Best Regards, Md. Abdullah-Al Kauser (4 Replies)
Discussion started by: makauser
4 Replies

3. 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

4. Solaris

How to reattach a mirror?

OK, I upgraded to the latest version of Solaris 10. Perhaps 'upgrade' isn't the right term because I reinstalled the root/boot drive with Solaris 10. Prior to this I had 4 physical drives. The first two had "/" and "/usr", the other two had a /var/audit and /home. I initially booted from cdrom and... (7 Replies)
Discussion started by: brownwrap
7 Replies

5. 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

6. 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

7. Solaris

Solaris 10 - breaking of mirror and change new hard disk

Hi, am a newbie at solaris. Need advice and help on this. 1) How do I break the mirror between 2 hard disks. (wish to keep 1 good hard disk as backup) 2) After remove 1 hard disk and put in new hard disk, how do I initialise or fomat the new hard disk? 3) How do I put back the backup... (3 Replies)
Discussion started by: chongkls77
3 Replies

8. Solaris

mirror failed

i am working in sun solaris unix platform with storage device T3+ i got an error message mirror failed i have telneted to the storage and gave the command format it gives disk not available , i have shifted my storage from node A to node B then i gave the same command format by telneting to... (0 Replies)
Discussion started by: sasiprabu
0 Replies

9. UNIX for Dummies Questions & Answers

mirror device

Hi I'm new Solaris. I'm trying to understand how a root device is being mirrored. When do df -k I get this: Filesystem kbytes used avail capacity Mounted on /dev/md/dsk/d0 49915840 43168158 6248524 88% / /proc 0 0 0 0% /proc... (1 Reply)
Discussion started by: ND6
1 Replies
Login or Register to Ask a Question