- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mirror boot disk 11.31
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 03:33 AM
тАО06-22-2009 03:33 AM
mirror boot disk 11.31
# ioscan -m lun
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE online HP
0/4/1/0.0x500000e0191c6932.0x0
/dev/disk/disk4 /dev/rdisk/disk4
/dev/disk/disk4_p1 /dev/rdisk/disk4_p1
/dev/disk/disk4_p2 /dev/rdisk/disk4_p2
/dev/disk/disk4_p3 /dev/rdisk/disk4_p3
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE online HP
0/4/1/0.0x500000e019231e22.0x0
/dev/disk/disk5 /dev/rdisk/disk5
ctl 1 64000/0xfa00/0x5 esctl CLAIMED DEVICE online HP
0/2/1/0.0x201c00a0b8091089.0x0
0/5/2/0.0x201d00a0b8091089.0x0
/dev/pt/pt1
disk 7 64000/0xfa00/0x6 esdisk CLAIMED DEVICE online HP
0/2/1/0.0x201c00a0b8091089.0x401f000000000000
/dev/disk/disk7 /dev/rdisk/disk7
disk 9 64000/0xfa00/0x7 esdisk CLAIMED DEVICE online HP
0/5/2/0.0x201d00a0b8091089.0x401f000000000000
/dev/disk/disk9 /dev/rdisk/disk9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 03:39 AM
тАО06-22-2009 03:39 AM
Re: mirror boot disk 11.31
Did you initiated idisk on disk5 ?
vi /tmp/idisk
3
EFI 100
HPSP 400MB
HPUX 100%
#idisk -f /tmp/idisk /dev/rdisk/disk5
Regards,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 03:43 AM
тАО06-22-2009 03:43 AM
Re: mirror boot disk 11.31
Check documented procedure in www.docs.hp.com
titled "When Good Disks Go Bad: Dealing with Disk Failures Under LVM"
>>>>after insf -e -H I dont get s1, s2 and s3 divice files on the new disk I want to use for mirror
You should use idisk for slicing the disk.
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 03:47 AM
тАО06-22-2009 03:47 AM
Re: mirror boot disk 11.31
Setup the disk partitions
Create a partition description file:
# vi /tmp/partitionfile
2
EFI 100MB
HPUX 100%
Use the idisk(1M) command to partition the disk according to this file:
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0
idisk version: 1.2
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
...
Create the new device files for the new partitions (c2t1d0s1 and c2t1d0s2)
# insf -e -C disk
Use mkboot(1M) to format the EFI partition (s1), populate it with the EFI files under /usr/lib/efi/, format the LIF volume (part of s2), and populate it with the LIF files (ISL, AUTO, HPUX, LABEL) under /usr/lib/uxbootlf:
# mkboot -e -l /dev/rdsk/c2t1d0
# efi_ls -d /dev/rdsk/c2t1d0s1 (to check EFI)
FileName Last Modified Size
EFI/ 5/19/2003 0
STARTUP.NSH 5/19/2003 336
total space 103215616 bytes, free space 100076032 bytes
# lifls -l /dev/rdsk/c2t1d0s2 (to check LIF)
Write the contents of the AUTO file to the EFI partition:
# mkboot -a "boot vmunix" /dev/dsk/c2t1d0
# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x
(to check it)
NOTE: Specify -a "boot vmunix -lq" if you want the system to boot up without interruption in case of a disk failure.
Initialize the LVM partition (s2) and add it to vg00:
# pvcreate [-f] -B /dev/rdsk/c2t1d0s2 (take care to use s2)
# vgextend vg00 /dev/dsk/c2t1d0s2
Mirror the LVs to the s2 partition:
# for i in lvol1 lvol ... lvol8
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c2t1d0s2
> done
Write the contents of the LABEL file, i.e. set root, boot, swap and dump device:
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -v (to check it)
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t2d0s2 (0/1/1/1.2.0) -- Boot Disk
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Root: lvol3 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Swap: lvol2 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Dump: lvol2 on: /dev/dsk/c3t2d0s2, 0
Specify the mirrored disk as an alternate bootpath
# setboot -a
# setboot (to check it)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 04:00 AM
тАО06-22-2009 04:00 AM
Re: mirror boot disk 11.31
I Used
# idisk -f /tmp/idf -w /dev/rdisk/disk5
with the correct info in file disk is partioned ok
i used
# insf -e -H 0/4/1/0.0.0.1.0
and got the device files
disk 2 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP 5
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
/dev/dsk/c0t1d0s1 /dev/rdsk/c0t1d0s1
/dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s3
but i mis the
/dev/dsk/disk5_p1
/dev/dsk/disk5_p2
/dev/dsk/disk5_p3
when I do a ioscan -m lun I only see the files for the old boot disk disk4 not disk5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 04:23 AM
тАО06-22-2009 04:23 AM
Re: mirror boot disk 11.31
Apparently 11.31 runs insf -C disk without the sysadmin needing to.
Resources:
Disk mirroring script:
http://www.hpux.ws/?p=42
Mirroring an HP-UX system
http://www.hpux.ws/?p=21
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 04:44 AM
тАО06-22-2009 04:44 AM
Re: mirror boot disk 11.31
I have no problem with partion of the disk and I get the 3 device files
/dev/dsk/c0t1d0s1 /dev/rdsk/c0t1d0s1
/dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s3
all that is Ok but I don't get the "persistant device files"
/dev/disk/disk5_p1 /dev/rdisk/disk5_p1
/dev/disk/disk5_p2 /dev/rdisk/disk5_p2 /dev/disk/disk5_p3 /dev/rdisk/disk5_p3
Regards Kjeld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 04:52 AM
тАО06-22-2009 04:52 AM
Re: mirror boot disk 11.31
#ioscan -fnNC disk
Regards,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 05:06 AM
тАО06-22-2009 05:06 AM
Re: mirror boot disk 11.31
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/2/1.0x0.0x10 UsbScsiAdaptor CLAIMED LUN_PATH USB SCr
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 5
/dev/disk/disk4 /dev/rdisk/disk4
/dev/disk/disk4_p1 /dev/rdisk/disk4_p1
/dev/disk/disk4_p2 /dev/rdisk/disk4_p2
/dev/disk/disk4_p3 /dev/rdisk/disk4_p3
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 5
/dev/disk/disk5 /dev/rdisk/disk5
disk 7 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP t
/dev/disk/disk7 /dev/rdisk/disk7
disk 9 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP t
/dev/disk/disk9 /dev/rdisk/disk9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 12:46 AM
тАО06-23-2009 12:46 AM
Re: mirror boot disk 11.31
Found solution my self ;-)
Used wrong parameters on insf command
with
#ioscan -N -C disk
I see the right hw path on my disk5
64000/0xfa00/0x1
I do
# insf -e -H 64000/0xfa00/0x1
and now the p1,p2 an p3 files are created
# insf -e -H 0/4/1/0.0x1.0x0 was wrong!
Tanks for your help anyway - Kjeld