Operating System - HP-UX
1752550 Members
4828 Online
108788 Solutions
New Discussion юеВ

Mirrorng root disk on PA-RISK

 
SOLVED
Go to solution

Mirrorng root disk on PA-RISK

Hi,

I have a rp8420 server. I just restore the server from ignite tape. There are two physical disks in the server. After restore the server i saw both disks are under vg00. But from lvlnboot -v command i see that there is only one boot disk. Now i want to mirror that disk from the original boot disk. How can i do that? Should i have to run vgreduce command before execute the command "pvcreate -B" on that disk?

 

 

It's very urgent. I need solution ASAP.

 

BR\\Arafat

6 REPLIES 6
Torsten.
Acclaimed Contributor

Re: Mirrorng root disk on PA-RISK

First let us see what the status is:

# vgdisplay -v vg00

# lvlnboot -v

# setboot

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: Mirrorng root disk on PA-RISK

# vgdisplay -v /dev/vg00

--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255    
Cur LV                      11     
Open LV                     11     
Max PV                      16     
Cur PV                      2      
Act PV                      2      
Max PE per PV               4479         
VGDA                        4   
PE Size (Mbytes)            64              
Total PE                    8938    
Alloc PE                    1089    
Free PE                     7849    
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg00/lvol1
   LV Status                   available/syncd           
   LV Size (Mbytes)            1024            
   Current LE                  16        
   Allocated PE                16          
   Used PV                     1       

   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd           
   LV Size (Mbytes)            30720           
   Current LE                  480       
   Allocated PE                480         
   Used PV                     1       

   LV Name                     /dev/vg00/lvol9
   LV Status                   available/syncd           
   LV Size (Mbytes)            10240           
   Current LE                  160       
   Allocated PE                160         
   Used PV                     1       

   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd           
   LV Size (Mbytes)            1024            
   Current LE                  16        
   Allocated PE                16          
   Used PV                     1       

   LV Name                     /dev/vg00/lvol20
   LV Status                   available/syncd           
   LV Size (Mbytes)            64              
   Current LE                  1         
   Allocated PE                1           
   Used PV                     1       

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd           
   LV Size (Mbytes)            7168            
   Current LE                  112       
   Allocated PE                112         
   Used PV                     1       

   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd           
   LV Size (Mbytes)            2048            
   Current LE                  32        
   Allocated PE                32          
   Used PV                     1       

   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  64        
   Allocated PE                64          
   Used PV                     1       

   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  64        
   Allocated PE                64          
   Used PV                     1       

   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  64        
   Allocated PE                64          
   Used PV                     1       

   LV Name                     /dev/vg00/lvol10
   LV Status                   available/syncd           
   LV Size (Mbytes)            5120            
   Current LE                  80        
   Allocated PE                80          
   Used PV                     1       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c0t6d0
   PV Status                   available                
   Total PE                    4469    
   Free PE                     3380    
   Autoswitch                  On        

   PV Name                     /dev/dsk/c2t6d0
   PV Status                   available                
   Total PE                    4469    
   Free PE                     4469    
   Autoswitch                  On        

##############
lvlnboot -v 


Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
	/dev/dsk/c0t6d0 (0/0/0/2/0.6.0) -- Boot Disk
	/dev/dsk/c2t6d0 (0/0/0/3/0.6.0)
Boot: lvol1	on: 	/dev/dsk/c0t6d0
Root: lvol3	on: 	/dev/dsk/c0t6d0
Swap: lvol2	on: 	/dev/dsk/c0t6d0
Dump: lvol2	on: 	/dev/dsk/c0t6d0, 0
Dump: lvol9	on: 	/dev/dsk/c0t6d0, 1
##################################
setboot 


Primary bootpath : 0/0/0/2/0.6.0
Alternate bootpath : 0/0/0/3/0.6.0

Autoboot is OFF (disabled)
Autosearch is OFF (disabled)

Note: The interpretation of Autoboot and Autosearch has changed for 
systems that support hardware partitions. Please refer to the manpage.
########################


What should i do now?



 
Torsten.
Acclaimed Contributor

Re: Mirrorng root disk on PA-RISC

Disk /dev/dsk/c2t6d0 is part of vg00, but completely empty.

I would vgreduce this disk from vg00 first, then start over with mirroring process.

The appendix has all the steps (mirroring on PA_RISC - HP9000 systems):

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: Mirrorng root disk on PA-RISC

Should i deactivated the vg00 first or without deactivating the vg i can execute vgruduce???

Matti_Kurkela
Honored Contributor
Solution

Re: Mirrorng root disk on PA-RISC

Yes, you can use vgreduce without deactivating vg00.

vgreduce vg00 /dev/dsk/c2t6d0

 

In fact, deactivating vg00 would require unmounting all its filesystems first... and that is rather difficult with vg00, since it contains your root filesystem. (The only way to do something like that would be to reboot the system to LVM Maintenance Mode.)

 

Since the disk already was part of vg00, pvcreate has already been run on it... but apparently the -B option was not used. So the next step is to remove the incorrect PV header:

pvremove /dev/rdsk/c2t6d0

 Now the disk is in a completely unused state, and you can start following the instructions in the "When Good Disks go Bad" document linked by Torsten.

 

When you run pvcreate on the disk again, you must use the -B option as you want to make this disk capable of being a boot disk. Don't forget that option, or you will have to start over again:

pvcreate -B /dev/rdsk/c2t6d0

 

MK
Torsten.
Acclaimed Contributor

Re: Mirrorng root disk on PA-RISC

As said, vgreduce the disk while vg00 is online.
pvremove is optional, you can also proceed with pvcreate -B ..., but this already a step of the procedure written in the appendix of the manual.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!