Mirrored root and swap HP9000 machine


 
Thread Tools Search this Thread
Operating Systems HP-UX Mirrored root and swap HP9000 machine
# 1  
Old 10-29-2008
Mirrored root and swap HP9000 machine

How do I check if the root and swap are mirrored on my HP9000 machine?

Thank you,
N.
# 2  
Old 10-29-2008
Well
Code:
ant:/home/vbe $ /usr/sbin/vgdisplay -v 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                    7840    
Free PE                     840     
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)            304             
   Current LE                  38        
   Allocated PE                76          
   Used PV                     2       

   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd           
   LV Size (Mbytes)            4000            
   Current LE                  500       
   Allocated PE                1000        
   Used PV                     2       

   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd           
   LV Size (Mbytes)            352             
   Current LE                  44        
   Allocated PE                88          
   Used PV                     2       

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd           
   LV Size (Mbytes)            1000            
   Current LE                  125       
   Allocated PE                250         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd           
   LV Size (Mbytes)            504             
   Current LE                  63        
   Allocated PE                126         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd           
   LV Size (Mbytes)            3400            
   Current LE                  425       
   Allocated PE                850         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd           
   LV Size (Mbytes)            1800            
   Current LE                  225       
   Allocated PE                450         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd           
   LV Size (Mbytes)            3000            
   Current LE                  375       
   Allocated PE                750         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol9
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  512       
   Allocated PE                1024        
   Used PV                     2       

   LV Name                     /dev/vg00/lvol10
   LV Status                   available/syncd           
   LV Size (Mbytes)            904             
   Current LE                  113       
   Allocated PE                226         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol11
   LV Status                   available/syncd           
   LV Size (Mbytes)            2000            
   Current LE                  250       
   Allocated PE                500         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol12
   LV Status                   available/syncd           
   LV Size (Mbytes)            904             
   Current LE                  113       
   Allocated PE                226         
   Used PV                     2       

   LV Name                     /dev/vg00/lvol13
   LV Status                   available/syncd           
   LV Size (Mbytes)            5000            
   Current LE                  625       
   Allocated PE                1250        
   Used PV                     2       

   LV Name                     /dev/vg00/swap3
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  512       
   Allocated PE                1024        
   Used PV                     2       


   --- Physical volumes ---
   PV Name                     /dev/dsk/c2t2d0
   PV Status                   available                
   Total PE                    4340    
   Free PE                     420     
   Autoswitch                  On        
   Proactive Polling           On               

   PV Name                     /dev/dsk/c1t2d0
   PV Status                   available                
   Total PE                    4340    
   Free PE                     420     
   Autoswitch                  On        
   Proactive Polling           On

One vg , 2 pv , all lvol use 2 pv
Code:
ant:/home/vbe $ /usr/sbin/swapinfo
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev     4096000       0 4096000    0%       0       -    1  /dev/vg00/lvol2
dev     4194304       0 4194304    0%       0       -    1  /dev/vg00/swap3
dev     4194304       0 4194304    0%       0       -    0  /dev/esvg01/lvol2
reserve       - 1395040 -1395040
memory  6477440 1540528 4936912   24%
ant:/home/vbe $ /usr/sbin/lvdisplay /dev/vg00/lvol2
--- Logical volumes ---
LV Name                     /dev/vg00/lvol2
VG Name                     /dev/vg00
LV Permission               read/write   
LV Status                   available/syncd           
Mirror copies               1            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            4000            
Current LE                  500       
Allocated PE                1000        
Stripes                     0       
Stripe Size (Kbytes)        0                   
Bad block                   off          
Allocation                  strict/contiguous         
IO Timeout (Seconds)        default

Looking at swapinfo choose lvol2...
lvdisplay confirms...
# 3  
Old 10-29-2008
Sorry VBE ... I'm lost. Please explain ... by the way, I'm a .net/web developer and we don't have a HP-Ux admin.
# 4  
Old 10-29-2008
OK.
a) Basic commands: Use the manuals (man <command>)
1) About swap: use the command swapinfo
2) About FS layout : Use bdf
3) About LVM and FS, there are many commands:
vgdisplay, vgcreate... lvdisplay lvcreate, lvextend... pvcreate etc...
For the filesystems it depends if you have OnlineJFS... (fsadm)
But you could be using VXVM so I will not insist...

b)
If you look at the output of lvdisplay for /dev/vg00/lvol2 You see this line:
Code:
Mirror copies               1

Just typing vgdisplay vg00 will tell you how many disks are in the volume group (here 2)
but having 2 disks isnt the guarantee you are mirrored, but vgdisplay -v will tell you about all the logical volumes ( each are using 2 disks?)
and lvdisplay will confirm
You could start by lvdisplay but you would have to go through all the logical volumes to be sure...
# 5  
Old 10-29-2008
Suddenly I realized:
Quote:
...
if the root and swap are mirrored on my HP9000
What OS are you familiar with?
in HPUX, you should not have a main root filesystem, the OS by default uses more than just one filesystem when you install it...
In lvm you would have vg00 ( equivalent to AIX rootvg) the volume group used for the OS
And usually you would have:
Code:
ran:/home/vbe $ bdf|grep vg00
/dev/vg00/lvol3     307200   54696  236775   19% /
/dev/vg00/lvol1     199381   79387  100055   44% /stand
/dev/vg00/lvol7    2048000  639480 1320685   33% /var
/dev/vg00/lvol8    4096000    6624 3835569    0% /var/adm/crash
/dev/vg00/lvol6    1536000 1001171  501446   67% /usr
/dev/vg00/lvol5     500000   62904  410367   13% /tmp
/dev/vg00/lvol9    2527232 1825601  657840   74% /opt
/dev/vg00/lvol4     350000  174103  165919   51% /home

But you will notice lvol2 doesnt appear => bdf doesnt show swap...

All this to say it doesnt make much sence to only mirror / in this case...
You are to mirror the whole volume group or at least all the OS.

All the same , the system backup tool IgniteUX doesnt backup only / ... (man make_tape_recovery(1M))
# 6  
Old 10-29-2008
root:/ swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
reserve - 1810064 -1810064
root:/ lvdisplay /dev/vg00/lvol2
--- Logical volumes ---
LV Name /dev/vg00/lvol2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4096
Current LE 1024
Allocated PE 1024
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default


So I assume that there is no mirror on swap ... right?
# 7  
Old 10-29-2008
root:/ vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4185
Free PE 155
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) 500
Current LE 125
Allocated PE 125
Used PV 1

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

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

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

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

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

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

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

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

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


--- Physical volumes ---
PV Name /dev/dsk/c1t6d0
PV Status available
Total PE 4340
Free PE 155
Autoswitch On


I think that there is no mirror on boot .... correct?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Hardware

HP9000 Server - Stuck on RAID0

Hey all, I've got an old HP9000 L1000 server with HP-UX installed. The drives that the OS is running on are in RAID0. I am concerned for the reliability of the server. The four hard drives in the front of the server are LVD 18.2 drives. I know with RAID0, if one drive fails, they all fail. ... (2 Replies)
Discussion started by: mroselli
2 Replies

2. UNIX for Dummies Questions & Answers

SWAP command not working on Linux machine

Hi I am working on linux machine and swap command is not working Linux Machine On Solaris machine it is working fine: uname -a SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440 swap -s total: 6596320k bytes allocated + 1035968k reserved = 7632288k used, 38893408k available ... (5 Replies)
Discussion started by: Basant Mishra
5 Replies

3. HP-UX

HP9000 Container - NFS Issue

I am running HP9000 Containers version A.03.01. I have the container up and running. I now need to mount an exported file system from another HPUX server with both read and write permissions. I can get the mount okay but from the container I cannot read or write properly to the mounted file... (2 Replies)
Discussion started by: PaleRider
2 Replies

4. Shell Programming and Scripting

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root user about the accounts. How can i achieve this in Linux? (1 Reply)
Discussion started by: mnmonu
1 Replies

5. SCO

Reset root OR crack old sco 3.2 machine

I have an old compaq running sco 3.2. the old IT guy died and we need to reset the password OR crack into the machine. I have tried mscreen and at exploits but can't seem to get them to work. I have access with other user accounts. This is a machine we own. (4 Replies)
Discussion started by: herot
4 Replies

6. Solaris

migrate zpool root mirrored to other server by network

I have two servers, the first server is a sun x4170 and i need transfer zpool root (with all system) that this moment is mirror to new server x4200 , i don't now how can i clone , copy o migrate rpool (root) in new server by network. The two servers are different sites. Do i need jumpstart or... (0 Replies)
Discussion started by: bombe
0 Replies

7. Solaris

formula to get the swap space on a machine

Hello there are different opinions on how to get the swap space on Solaris. some say: swap -s and the space= used + available others say swap -l (donno how they get the swap size) other say 'top' command others say using format command (in print sub-command) Could you please advise on... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

8. Solaris

restore mirrored root

Hi, I have an ultra60 SUN Server with Solaris 10 4/04 S.O. installed on. I mirrored root disk and now I try to restore this. I simulate that I have lose the root FS, not for a hardware faillure but for a software problem and I can't use "meta"commands for using a good submirror. I must restore... (1 Reply)
Discussion started by: bonovox
1 Replies

9. UNIX for Dummies Questions & Answers

Upgrade HP9000 HP-UX 10.20 to 11.00

To all expert members, i need your help. We have an existing HP9000 K-Class 32-bit with HP-UX 10.20 OS installed and we would like to upgrade it to HP-UX 11.00. I am not really confident in doing upgrades in our system because i don't have any experience or trainings on this. If somebody can... (3 Replies)
Discussion started by: Tris
3 Replies
Login or Register to Ask a Question