- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disk replacement
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
Forums
Discussions
Discussions
Discussions
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
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
02-20-2010 09:30 PM
02-20-2010 09:30 PM
Recently I have done disk replacement activity. And the activity completed successfully. the disk that need to be replaced was alternate disk of root volume group as well hot swapable.I followed the below mentioned procedure.
1. pvchange -a N /dev/dsk/c#t#d#
2. FE will replace the disk
4. vgcfgrestore -n vg00 /dev/dsk/c#t#d#
5. pvchange -a y /dev/dsk/c#t#d#
6. vgsync vg##
7. shutdown -ry 0
8. mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq" /dev/rdsk/dev/rdsk/c1t0d0
mkboot -b /dev/rdsk/c3t0d0 /dev/rdsk/c1t0d0
lifcp /dev/rdsk/c1t0d0:AUTO –
lvlnboot -R
In this procedure I did not use pvcreate -B
Thanks,
Rahul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2010 09:34 PM
02-20-2010 09:34 PM
Re: Disk replacement
"Good disk Gone Bad".
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2010 10:07 PM
02-20-2010 10:07 PM
Re: Disk replacement
I appreciate u r quick reply however my concern is that in this procedure I did not use pvcreate -B
Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2010 12:11 AM
02-21-2010 12:11 AM
SolutionYou should not use the pvcreate comand as the pv is already recorded in lvmtab.(command will fail with error"physical volume is already recorded in lVMTAB)
vgcfgrestrore will take care of creating LVm structure on the replaced disk
>>please let me know that without creating a physical volume on a disk can it used in a VG.
please not that ,At some point of time you did a pvcreate on the same disk device file for adding that to the VG and as a result, that disk is marked as pv and became part of lvmtab.And now your system knew that there was a pv on the replaced disk's device path and for some reason it was not available for some time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2010 12:19 AM
02-21-2010 12:19 AM
Re: Disk replacement
Yes, It can be used in "vg" .. but it will not boot, that's the purpose using (pvcreate -B /dev/rdsk/cxtxdx) -B option will Make a physical volume bootable (i.e. a system disk).
man pvcreate
pvcreate recognizes the following options:
-B Make a physical volume bootable (i.e. a system
disk).
HTH,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2010 01:32 AM
02-21-2010 01:32 AM
Re: Disk replacement
Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2010 01:37 AM
02-21-2010 01:37 AM
Re: Disk replacement
Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2010 04:03 AM
02-21-2010 04:03 AM
Re: Disk replacement
pvcreate with -B option creates an area on the disk for a LIF volume, boot utilities, and a BDRA (Boot Data Reserved Area).
and mkboot is for placing boot utilities in the boot area:(BDRA)
Here vgcfgrestore will take care of restoring LVM structure includin BDRA,and there for you only need to copy the bootprogram into it by mkboot command.
However you may consider doing mkboot and lvlnboot -R before executing the shutdown command.( i guess shutdown is for test booting the server from replaced disk )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2010 04:14 AM
02-21-2010 04:14 AM
Re: Disk replacement
This is what I m waiting for. Points have been awarded for this.
Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2010 05:35 AM
02-22-2010 05:35 AM
Re: Disk replacement
I am confused about rebooting the system as you mentioned the steps.Did you check whether you are able to boot from Alternate disk which you have replaced.Actualy reboot is not required.
Secondly, can you pls check the output of lvlnboot -v and check whether boot,root,swap and dump is configured.You may not see boot lvol configured.In that case you may have to run lvlnboot -b /dev/vg00/lvol1