- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- replace disk on hpux
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
тАО11-09-2021 02:11 AM - last edited on тАО11-30-2021 05:16 AM by support_s
тАО11-09-2021 02:11 AM - last edited on тАО11-30-2021 05:16 AM by support_s
replace disk on hpux
hello,
i should to change disk on hpux the disk is mirrored & alternate boot I was going to do the following:
1- initialize boot information on the replacement disk.
Save the hardware paths to the disk.
Run the ioscan command and note the hardware paths of the failed disk as follows:
# pvchange -a N /dev/ddsk/c3t2d0
power off the system to replace disk
Notify the mass storage subsystem that the disk has been replaced.
# scsimgr replace_wwid тАУD /dev/dsk/c3t2d0
# vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB
Use idisk(1M) command to partition the disk according to this file:
# idisk -wf /tmp/partitionfile /dev/dsk/c3t2d0
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 (c3t2d0_p1,_p2_p3)
# insf -e тАУCdisk
Now assign the old instance number to the replacement disk.
# io_redirect_dsf -d /dev/dsk/c3t2d0 -n /dev/dsk/(new disk)
Use efi_fsinit(1M) to initialize the FAT filesystem on the EFI partition:
# efi_fsinit -d /dev/dsk/c3t2d0
# mkboot -e -l /dev/dsk/c3t2d0
# efi_ls -d /dev/dsk/c3t2d0
# efi_cp -d /dev/dsk/c3t2d0_p1 -u /EFI/HPUX/AUTO /tmp/x
# cat /tmp/x
boot vmunix
# mkboot -a "boot vmunix -lq" /dev/dsk/c3t2d0
# mkboot -a "boot vmunix -lq" /dev/dsk/c3t2d0
# vgcfgrestore -n /dev/vg00 /dev/dsk/c3t2d0
pvchange тАУa y /dev/dsk/c3t2d0_p2
# vgchange -a y /dev/vg00
# cd /tmp
# nohup vgsync /dev/vg00 &
# lvlnboot -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2021 05:18 PM
тАО11-09-2021 05:18 PM
Re: replace disk on hpux
Hi,
Do you have legacy DSF (/dev/dsk/cXtXdXs2) or agile dsf (/dev/disk/diskXX_p2) in vg00?
The procedure you mentioned is correct but the commands are mixed up to use legacy/agile dsf.
e.g.
Unless you have a PA-RISC server, the boot disk's s2 partition would be in vg00
So instead of:
pvchange -a N /dev/dsk/c3t2d0
It would be:
pvchange -a N /dev/dsk/c3t2d0s2
Then scsimgr replace_wwid would work on agile dsf:
e.g.
To validate replacement of disk0 and re-assign its DSF to the replacing LUN:
# scsimgr replace_wwid -D /dev/rdisk/disk0 dsf
efi_fsinit is not needed as mkboot -e would format the EFI partiton, moreover with efi_fsinit, the EFI partition must be mentioned:
e.g.
# efi_fsinit -d /dev/dsk/c3t2d0s1
Few other corrections:
From:
# vgcfgrestore -n /dev/vg00 /dev/dsk/c3t2d0
# pvchange тАУa y /dev/dsk/c3t2d0_p2
To:'
# vgcfgrestore -n /dev/vg00 /dev/dsk/c3t2d0s2
# pvchange тАУa y /dev/dsk/c3t2d0s2
If you are using agile DSF, you can follow this document:
https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=c03108989
Regards
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2021 05:13 AM
тАО11-10-2021 05:13 AM
Re: replace disk on hpux
thank u manish for your reply.
the link that u shared with me isn't available.
this is the output of ioscan
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
====================================================================================
disk 5 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224E V
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t0d0 /dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s1 /dev/rdsk/c3t0d0 /dev/rdsk/c3t0d0s3
/dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0s1
disk 2 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t1d0 /dev/rdsk/c3t1d0
disk 3 0/1/1/0.0.0.2.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s3
/dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0s1
disk 4 0/1/1/0.0.0.3.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t3d0 /dev/rdsk/c3t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2021 05:11 PM
тАО11-10-2021 05:11 PM
Re: replace disk on hpux
Hi,
So its clear that you are not using a PA-RISC server since the boot disk has s1/s2/s3 partitions.
You can use "vgdisplay -v vg00" or "lvmadm -l" to see if vg00 has legacy dsf (/dev/dsk/cXtXdXs2) or agile/persistent DSF (/dev/disk/diskXX_p2). The steps differ a bit.
You may refer following link which has different steps to be used based on your config:
http://wiki-ux.info/wiki/How_to_replace_a_LVM_mirror_boot_disk
Regards
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2021 01:14 AM
тАО11-12-2021 01:14 AM
Re: replace disk on hpux
this is the output of vgdisplay and setboot.
===============================================
===============================================
# vgdisplay -v
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 4
Act PV 3
Max PE per PV 4384
VGDA 6
PE Size (Mbytes) 16
Total PE 13066
Alloc PE 8098
Free PE 4968
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 1792
Current LE 112
Allocated PE 224
Used PV 1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol2
LV Status available/stale
LV Size (Mbytes) 32000
Current LE 2000
Allocated PE 4000
Used PV 1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 4000
Current LE 250
Allocated PE 500
Used PV 1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 30000
Current LE 1875
Allocated PE 3750
Used PV 1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 2512
Current LE 157
Allocated PE 314
Used PV 3
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 500
Allocated PE 1000
Used PV 2
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 2500
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c3t0d0s2
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 4318
Free PE 0
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c3t1d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 4374
Free PE 2484
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c3t3d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 4374
Free PE 2484
Autoswitch On
Proactive Polling On
# setboot
Primary bootpath : 0/1/1/0.0.0.0.0
HA Alternate bootpath : <none>
Alternate bootpath : 0/1/1/0.0.0.2.0
==============================================
==============================================
the server is HP integrity RX2660,
the disk failure is the alternat so i will use this path 0/1/1/0.0.0.2.0
i'm going to do the following:
# shutdown тАУry 0
replace the disk
recreate the device files for EFI and OS partitions on the new disk:
# mksf тАУH 0/1/1/0.0.0.2.0 тАУs 1
# mksf тАУH 0/1/1/0.0.0.2.0 тАУs 2
# mksf тАУH 0/1/1/0.0.0.2.0 тАУs 3
# mksf тАУH 0/1/1/0.0.0.2.0 -r тАУs 1
# mksf тАУH 0/1/1/0.0.0.2.0 -r тАУs 2
# mksf тАУH 0/1/1/0.0.0.2.0 -r тАУs 3
Create the EFI and OS partititions using an IPF partition description file.
# cat >> /tmp/idf << EOF
3
EFI 500MB
HPUX 100%
HPSP 400MB
EOF
Use idisk to setup the disk partitioning using the file created above:
# idisk -wf /tmp/idf /dev/rdsk/c3t2d0
kboot to format and populate the newly created EFI partition:
# mkboot -e -l /dev/dsk/c3t2d0
Change the AUTO file contents to the proper mode:
A) Primary boot disk.
# cat >> /tmp/auto << EOF
boot vmunix
EOF
# efi_cp тАУd /dev/rdsk/c3t2d0s1 /tmp/auto /efi/hpux/auto
B) Alternate boot disk.
# cat >> /tmp/auto << EOF
boot vmunix тАУlq
EOF
# efi_cp тАУd /dev/rdsk/c3t2d0s1 /tmp/auto /efi/hpux/auto
11. Restore the LVM reserved areas (PVRA/VGRA):
# vgcfgrestore тАУn vg00 /dev/rdsk/c3t2d0s2
12. Reactivate the volume group to attach the physical volume.
# vgchange тАУa y vgXX
Note: In case that the volume group donтАЩt start to synchronize the logical volumes automatically, you can force synchronization with:
# vgsync vgXX
13. Use lvlnboot to ensure that the LVM logical volumes are prepared to be root, primary swap or dump volume.
# lvlnboot -R
# lvlnboot -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2021 06:00 PM
тАО11-12-2021 06:00 PM
Re: replace disk on hpux
Hi,
Since you mentioned rx2660, you may not need reboot and everything can be done online.
In rx2660, the local disks are attached to a SAS controller and the disks can be hot-plugged.
Refer "Integrity (Itanium) - SAS Disk Replacement" section of the document I shared earlier:
Regards
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2021 02:22 AM
тАО11-13-2021 02:22 AM
Re: replace disk on hpux
hi manish,
but in my case I don't have a sas controller. and and the color on the disks isn't purple it's pink and as i know the pink color isn't hot-swappable.
BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2021 09:18 AM
тАО11-15-2021 09:18 AM
Re: replace disk on hpux
You have a SAS controller for sure.
It is either a LSI SAS controller or an optional Smartarray P400.
Example:
escsi_ctlr 0 0/1/1/0 sasd CLAIMED INTERFACE HP PCI/PCI-X SAS MPT Adapter
/dev/sasd0
ext_bus 2 0/1/1/0.0.0 sasd_vbus CLAIMED INTERFACE SAS Device Interface
target 2 0/1/1/0.0.0.0 tgt CLAIMED DEVICE
disk 0 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG072BB975
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
target 1 0/1/1/0.0.0.1 tgt CLAIMED DEVICE
disk 1 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG072BB975
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
ext_bus 0 0/3/0/0/0/0 ciss CLAIMED INTERFACE PCIe SAS SmartArray P400 RAID Controller
/dev/ciss0
target 0 0/3/0/0/0/0.0 tgt CLAIMED DEVICE
disk 2 0/3/0/0/0/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1
/dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2021 09:19 AM
тАО11-15-2021 09:19 AM
Re: replace disk on hpux
Caution:
Replacement procedures differ depending on the controller!
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!