- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: To change Disk hardware path
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
тАО05-27-2004 04:19 PM
тАО05-27-2004 04:19 PM
This morning, I found one of disks has problem, I try to plug the problem disk onto another slot, and I can successfully find this disk, I believe the problem is because of the bad slot. Now I need to change the disk's hardware path and readd this disk into its VG.
Do you have any advice?
Thanks in advance.
tommy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 04:25 PM
тАО05-27-2004 04:25 PM
Re: To change Disk hardware path
I have reinstalled the device file and test the "problem disk" and it works well:
# insf -eC disk
# dd if=/dev/rdsk/c0t10d0 of=/dev/null bs=32768k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 04:34 PM
тАО05-27-2004 04:34 PM
Re: To change Disk hardware path
vgreduce -f will remove all physical volumes from the volume group.
or vgreduce -l pvpath will remove the particular entry for the PV from the /etc/lvmtab file
vgimport /dev/vgname /dev/dsk/newPVpath
should work for you...
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 04:53 PM
тАО05-27-2004 04:53 PM
Re: To change Disk hardware path
How it works depends on the model and the dip switch settings set.
Its important to get the problem diagnosed and corrected because it could be the first sign of a common piece of hardware going. Many systems have a part called a drive cage. all power and scsi channels go through it. When it starts to go, eventually the system starts consuming drives until the drive cage is replaced.
For more specific help, posting the system model type and number is useful.
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
тАО05-27-2004 05:02 PM
тАО05-27-2004 05:02 PM
Re: To change Disk hardware path
I think insf command will only match disk at a hardware path and will show disk hardware path by ioscan which you have already found.
I think you need following things to be done(If it is mirrored)
1)Boot the system in LVM maintenance (bo alt; interact with IPL->y;hpux -lm -lq
2)vgcfgrestore -n /dev/vg?? /dev/rdsk/c?t?d?
3) vgchange -a y /dev/vg?? ( Normally this automatically sync the vg??)
Rgds
Tapas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 05:11 PM
тАО05-27-2004 05:11 PM
Re: To change Disk hardware path
Yes, I can remove the PV from the problem VG and readd the PV,
but I would like to use the data on the problem disk. Is it possible to use this method?
More info...
# diskinfo /dev/rdsk/c0t10d0
SCSI describe of /dev/rdsk/c0t10d0:
vendor: SEAGATE
product id: ST39173WC
type: direct access
size: 8891556 Kbytes
bytes per sector: 512
# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 12 8/4.10.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t10d0 /dev/rdsk/c0t10d0
disk 9 8/12.3.0 sdisk CLAIMED DEVICE IBM DGHS09Y
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0
disk 3 8/12.4.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c1t4d0 /dev/rdsk/c1t4d0
disk 4 8/12.5.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c1t5d0 /dev/rdsk/c1t5d0
disk 5 8/12.6.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE PIONEER DVD-ROM DVD-303
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 10 10/12.3.0 sdisk CLAIMED DEVICE IBM DGHS09Y
/dev/dsk/c4t3d0 /dev/rdsk/c4t3d0
disk 6 10/12.4.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 8 10/12.6.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
regards tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 05:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 05:42 PM
тАО05-27-2004 05:42 PM
Re: To change Disk hardware path
You no need to remove or add any disks into VG. You just execute the previos 2 commands what i have mentioned. It will solve your problem.
Even I did it so many times. The data will be intact if your disk is OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 05:59 PM
тАО05-27-2004 05:59 PM
Re: To change Disk hardware path
The vgchange command shows a warning, is it normal?
The following is command output:
# vgcfgrestore -n /dev/vg01 -o /dev/rdsk/c0t9d0 /dev/rdsk/c0t10d0
Volume Group configuration has been restored to /dev/rdsk/c0t10d0
wmo_host# vgchange -a y /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c0t9d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
Activated volume group
Volume group "/dev/vg01" has been successfully changed.
regards
tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 06:47 PM
тАО05-27-2004 06:47 PM
Re: To change Disk hardware path
Can you check whether the /dev/dsk/c0t9d0 is still in the /etc/lvmtab. If it is so move the /etc/lvmtab to different name and do a vgscan. It should remove the entry of /dev/dsk/c0t9d0 from the /etc/lvmtab.
#mv /etc/lvmtab /etc/lvmtab.org
#vgscan -a -v
Once u do . Can u post your /etc/lvmtab and vgdisplay output.