- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change SCSI ID on LVM disk
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
01-09-2003 11:19 AM
01-09-2003 11:19 AM
I want to change the SCSI ID on two disks. Both are logical volumes. The current IDs are 12 and 14 and I want to make them 6 and 5. I am adding two SE devices to the SCSI bus, so the 12 and 14 addresses won't work. The two disks mirror the two internal disks on the system, so I'm not too concerned about the contents. On the other hand, I don't have a tape drive, so the mirror disks are the only way for me to recover the system and data. I'm concerned about corrupting the logical volumes and getting the system to recognize the new addresses.
Is there a safe way to do this?:-/
Please help!
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:28 AM
01-09-2003 11:28 AM
Re: Change SCSI ID on LVM disk
From your earlier question, I'm assuming these are the external drives. What kind of drives are they? Are they in some kind of storage enclosure? Generally, to change the SCSI id, you either have a thumbwheel selector on the enclosure or jumpers on the drive itself but without knowing exactly what we're dealing with, it's kind of hard to say.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:34 AM
01-09-2003 11:34 AM
Re: Change SCSI ID on LVM disk
It also occurs to me that what you're really asking is how do you do this without trashing the LVM configuration.
If that's the case, I've still got a couple of questions. Are these external drives in the same VG as your internals? If so, I think you should lvremove them from the VG, then add them back in after you've changed the SCSI id. If they're in a different VG, you could use vgexport/vgimport.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:42 AM
01-09-2003 11:42 AM
Re: Change SCSI ID on LVM disk
You can then shutdown and change the SCSI ID's. Boot and run insf -e to create the new device nodes. At this time, you should be able to run ioscan -C disk -fn and see the new devices. Next, do a pvcreate -f (-B also if one of these is an alternate boot disk) on each of the renumbered drives. Next, do a vgextend to add each of these new PV's to the VG. Finally, do an lvextend -m 1 /dev/vgxx /dev/c1t5d0 for each of the mirror disks.
Man lvreduce, vgreduce, pvcreate, vgextend, lvextend, and insf before doing any of this so that you better understand the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:43 AM
01-09-2003 11:43 AM
Re: Change SCSI ID on LVM disk
You can then shutdown and change the SCSI ID's. Boot and run insf -e to create the new device nodes. At this time, you should be able to run ioscan -C disk -fn and see the new devices. Next, do a pvcreate -f (-B also if one of these is an alternate boot disk) on each of the renumbered drives. Next, do a vgextend to add each of these new PV's to the VG. Finally, do an lvextend -m 1 /dev/vgxx /dev/c1t5d0 for each of the mirror disks.
You will also need to run mkboot on this disk if it is an alternate boot disk. You should be able to search on "mirror boot disk" to find several recipes for this process.
Man lvreduce, vgreduce, pvcreate, vgextend, lvextend, and insf before doing any of this so that you better understand the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:46 AM
01-09-2003 11:46 AM
Re: Change SCSI ID on LVM disk
Tom is manually mirroring with dd, so he can just blow them away.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:48 AM
01-09-2003 11:48 AM
Re: Change SCSI ID on LVM disk
The two drives that I want to change the address on are external.
All four disks on the system are Seagate ST336704LC.
J6 sets the ID and I have the settings.
And YES! I don't want to trash logical volumes.
I have one VG for each of the four disks on the system. The external disks are vg02 and vg02, the internal disks are vg00 and vg01.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:52 AM
01-09-2003 11:52 AM
Re: Change SCSI ID on LVM disk
And yes, I think I want to do a vgexport/import, but I had problems doing that a couple years back and I'm a little gunshy. Can I get some insight on how it should work?
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:57 AM
01-09-2003 11:57 AM
Re: Change SCSI ID on LVM disk
One more thing, I haven't noticed what version of the OS you're running, so, if it's pre 11.x, you might not be able to use the -s option. In that case your vgimport will have to identify the disks: vgimport -v /dev/vg02 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 12:02 PM
01-09-2003 12:02 PM
Re: Change SCSI ID on LVM disk
I'm running 11i. Should be set.
Thanks again!
Tom ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 12:03 PM
01-09-2003 12:03 PM
Re: Change SCSI ID on LVM disk
Good luck.
Pete
Pete