How do I check if the root and swap are mirrored on my HP9000 machine?
Thank you,
N.
How do I check if the root and swap are mirrored on my HP9000 machine?
Thank you,
N.
Well
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
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...
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.
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:
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...
Suddenly I realized:
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:
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))
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?
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?
correct!
But now more tricky:
(1 bad point for HP...)
to be able to mirror you would need mirror-ux installed and it is not free if you dont have it....
What type of OS do you have?
type swlist |more and look for a line like:
HPUX11i-OE-Ent B.11.11.0112 HP-UX Enterprise Operating Environment Component
root:/ swlist |more
# Initializing...
# Contacting target "vistrad1"...
#
# Target: vistrad1:/
#
#
# Bundle(s):
#
A5158A B.11.00.10 PCI Tachyon TL/TS Fibre Channel
A5230A B.11.00.05 100BT/9000 PCI
A6748A B.11.00.15 PCI RS-232 MUX Software
A6749A B.11.00.15 PCI RS-232 MUX Software
B5509BA B.11.00.05 100BT/9000 PCI
B5725AA B.4.2.110 HP-UX Installation Utilities (Ign
ite-UX)
HPUXEng64RT B.11.00.01 English HP-UX 64-bit Runtime Envi
ronment
HWE1100 B.11.00.0309.5 Hardware Enablement Patches for H
P-UX 11.00, September 2003
Ignite-UX-11-00 B.5.3.35 HP-UX Installation Utilities for
Installing 11.00 Systems
J3592A B.11.00.15 PCI RS-232 MUX Software
J3593A B.11.00.15 PCI RS-232 MUX Software
J3596A B.11.00.15 PCI RS-232 MUX Software
J4253AA B.11.00.05 100BT/9000 PCI
OnlineDiag B.11.00.24.11 HPUX 11.0 Support Tools Bundle, M
ar 2003
QPK1100 B.11.00.62.4 Quality Pack for HP-UX 11.00, Sep
tember 2003
UXCoreMedia B.11.00.02 HP-UX Media Kit (Reference Only.
See Description)
UnlimUserLic B.11.00.02 HP-UX Unlimited-User License
XSWGR1100 B.11.00.47.08 General Release Patches, November
1999 (ACE)
#
# Product(s) not contained in a Bundle:
#
PHCO_19624 1.0 mount_cdfs(1M) patch - recompile
only.
PHCO_19673 1.0 fsck_hfs(1M) cumulative patch
PHCO_21268 1.0 diskinfo support for class "flopp
y"
PHCO_22801 1.0 iconv support for JVC and EURO
PHCO_23117 1.0 bdf(1M) cumulative patch
PHCO_23118 1.0 df(1M) cumulative patch
PHCO_23854 1.0 cumulative fbackup(1M)/frecover(1
M) patch
PHCO_24586 1.0 pwgrd(1M) cumulative patch
PHCO_24635 1.0 mount(1M) cumulative patch.
PHCO_24694 1.0 script(1) patch
PHCO_25902 1.0 cumulative SAM/ObAM patch
PHCO_25976 1.0 libc cumulative patch
PHCO_26014 1.0 csh(1) cumulative patch.
PHCO_26075 1.0 q4 patch version B.11.20f
PHCO_26823 B.11.00.16 HP Array Manager/60 cumulative pa
tch
PHCO_27132 1.0 lpspool subsystem cumulative patc
h
PHKL_21586 1.0 fix for CDFS leap year problem
PHKL_22792 1.0 Fix VM page read-ahead panics
PHKL_24004 1.0 SCSI IO Subsystem Cumulative Patc
h
PHKL_24005 1.0 fixes erroneous EFAULT (Bad addre
ss) return
PHKL_25829 1.0 rtsched enhancement, IDS/9000, UP
fix
PHKL_27003 1.0 SCSI IO Subsystem Cumulative Patc
h
PHKL_27314 1.0 HPMC, FC conn, chassis log, I20 R
AID, reboot
PHKL_27648 1.0 VxFS cumulative,I/O Throttling/sy
nc daemon
PHNE_21915 1.0 elm patch
PHNE_25440 1.0 Cumulative STREAMS Patch
PHNE_26387 1.0 ONC/NFS General Release/Performan
ce Patch
PHNE_26771 1.0 cumulative ARPA Transport patch
PHSS_20444 1.0 HP DCE/9000 1.7 Runtime cumulativ
e patch
PHSS_20446 1.0 HP DCE/9000 1.7 Server/DevTools c
um. patch
PHSS_24303 1.0 ld(1) and linker tools cumulative
patch
PHSS_24627 1.0 HP aC++ -AA runtime libraries (aC
C A.03.33)
PHSS_25091 1.0 X Font Server SEP2001 Periodic Pa
tch
PHSS_25684 1.0 L1000/L2000 41.38 firmware patch
PHSS_26497 1.0 XClients Periodic Patch
PHSS_27194 1.0 TechPrintServ Periodic Patch
PHSS_27232 1.0 X/Motif 64bit Runtime Periodic Pa
tch
PHSS_27427 1.0 CDE Runtime Patch
PHSS_27466 1.0 L1500 and L3000 42.19 firmware pa
tch
PHSS_27469 1.0 LIBCL patch
PHSS_28607 1.0 L1500 and L3000 43.22 PDC Firmwar
e Patch
PHSS_28609 1.0 N4000/rp7400 43.22 PDC Firmware P
atch
PHSS_28611 1.0 rp24xx 43.24 PDC Firmware Patch
PHSS_29341 1.0 C3650/C3700/C3750/J6700/J6750 2.0
FW
I assume that is HP-Ux 11i on 64 bits? Why is this important?
Wow not 11i?
Type :
uname -r
model
What does it say?
root:/ uname -r
B.11.00
It is version 11 .... right?
root:/ model
9000/800/N4000-44
Meaning you have a N4000 with 440Mhz PA-RISC processor... installed in HPUX 11.00
When was end of support already?...
This is what you are missing (hpux11):
B2491BA B.11.00 MirrorDisk/UX
We didn't have any hardware support .... ever!
So I would go and use make_recovery -A but you do have a tpae on that box?
ard # ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 8/16/5.0.0 stape CLAIMED DEVICE HP C1533A
/dev/rmt/0m /dev/rmt/c1t0d0BEST /dev/rmt/c1t0d0DDS
/dev/rmt/0mb /dev/rmt/c1t0d0BESTb /dev/rmt/c1t0d0DDSb
/dev/rmt/0mn /dev/rmt/c1t0d0BESTn /dev/rmt/c1t0d0DDSn
/dev/rmt/0mnb /dev/rmt/c1t0d0BESTnb /dev/rmt/c1t0d0DDSnb
raz:/home/vbe $ ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/2/1.0.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/0m /dev/rmt/c3t0d0BEST /dev/rmt/c3t0d0DDS
/dev/rmt/0mb /dev/rmt/c3t0d0BESTb /dev/rmt/c3t0d0DDSb
/dev/rmt/0mn /dev/rmt/c3t0d0BESTn /dev/rmt/c3t0d0DDSn
/dev/rmt/0mnb /dev/rmt/c3t0d0BESTnb /dev/rmt/c3t0d0DDSnb
tape 1 0/12/0/0.3.0 stape CLAIMED DEVICE QUANTUM DLT8000
/dev/rmt/1m /dev/rmt/c5t3d0BEST
/dev/rmt/1mb /dev/rmt/c5t3d0BESTb
/dev/rmt/1mn /dev/rmt/c5t3d0BESTn
/dev/rmt/1mnb /dev/rmt/c5t3d0BESTnb
I don't want to mirror it ... I don't want to do it FOR NOW. As I said, I'm not a Unix admin and I don't want to play with the box.
Well my friend , its not playing that we are talking about but DR...
Your OS is installed on /dev/dsk/c1t6d0, what if the disk crashes?
How will you restart your box?
As from your previous posts I can see you are on SAN, meaning if you could add some lun that you could use for the OS you would have a spare...(if it will boot from SAN...) the wisest solution for you would be to ask for a spare disk of same type as the one installed:
ioscan -funC disk|more... usually the first three are what we are after...
5 years now I havent seen a N4000 so I dont remember if they have hot swap in standard, you confirm...
If hot swap just plug it in...
Software: Dont know if you can get mirror/ux on a out of support OS (I may have it somewhere...)
So your only alternative would be disk to disk copy (once a week?) and more specially creating a bootable tape so in worst case you can boot from tape, restore in spare drive and off you go again...
A disk to disk solution offer the possibility in case of disk failure to boot on the alternate disk which being a copy of the boot disk would leave the box up again but in the situation of the time of last copy (but you do backup regularly no? and the OS doesnt change all that much except /etc/passwd and /home etc...)
disk 3 0/0/2/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 1 0/4/0/0.0.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 2 0/5/0/0.1.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
Ok, I understand.
So I have to buy a SEAGATE ST318404LC disk? is not possible to use on of the other disks?
Are they used?
aco:/home/vbe $ ll /dev/*vg*/group
crw-rw-rw- 1 root sys 64 0x010000 May 4 1999 /dev/r5vg01/group
crw-rw-rw- 1 root sys 64 0x020000 May 4 1999 /dev/r5vg02/group
crw-r----- 1 root sys 64 0x030000 Jun 27 2002 /dev/r5vg03/group
crw-r----- 1 root sys 64 0x000000 May 4 1999 /dev/vg00/group
What have you installed on this box?
what are the other filesystems? (bdf)
If you have other VGs (I believe maybe one) like vg01, it will be quite logical both remaing disks be attributed to this group...