- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Device files renumbered! Help!
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
Forums
Discussions
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
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-06-2003 01:11 PM
01-06-2003 01:11 PM
I don't know who did what (while I was on vacation), but apparently someone has rearranged some cables on the switch which plug into the unix server.
My hardware addresses now have an extra number in them, and all the device files that used to be called /dev/dsk/c4t0d0 -> c4t0d3 are all renamed to c14t0d0 -> c14t0d3.
Is there any way out of this mess?? I did not have any data on the logical volumes yet, and I have all the scripts I used to create them. Can I simply delete lvmtab and start over?
Thanks in advance,
Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 01:17 PM
01-06-2003 01:17 PM
SolutionYou are safe anyway as you do not have any data on the lvols. :-)
You do not need to worry. Export all the volume groups and generate map files using -f option. Then import them back using -f .
Say vg01 is one of your volume groups.
#vgexport -p -s -m /tmp/vg01.s.map vg01
#vgexport -v -f /tmp/vg01.disk -m /tmp/vg01.map vg01
edit vg01.disk and change c4 to c14 globally (:%s/c4t/c14t/g)
Create the directory, group file and import it back.
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgimport -v -m /tmp/vg01.map -f /tmp/vg01.disk vg01
#vgchange -a y
If this doesn't work, then use the map file that was generated using -s option.
#vgimport -s -m /tmp/vg01.s.map vg01
In the first step, if you are not able to export the volume groups, then edit /etc/lvmrc make AUTO_VG_ACTIVATE to 0 and add vg00 to custom_vg_activate function and reboot the box. Once the box comes up, you can export the volume groups.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 01:41 PM
01-06-2003 01:41 PM
Re: Device files renumbered! Help!
you can reassign the instanz with the command ioinit -r -f
h/w-path class_name instance_number
8/0/6/0/0.3.30.0.0 ext_bus 14
....
Look at the manpage of ioinit.
Best regards ...
Claus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 07:23 AM
01-08-2003 07:23 AM
Re: Device files renumbered! Help!
I made a similar experience where the hw adress was suddenly missing one number.
The issue was that on the storage array controllers (VA7400) someone must have changed the fibre channel mode from loop to fabric without resetting the array.
Everything worked fine until next time the array was reset. Then hw-path changed, new disk instances occured, no chance to recover via LVM commands. Reverting the change on the VA solved the problem (this was a production system...). Interestingly the Windows boxes just did not care and had no problem anytime.
Regards
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 07:51 AM
01-08-2003 07:51 AM
Re: Device files renumbered! Help!
If, for some reason, hardware address will change (switch domain id, switch's port, addressing mode, etc) then using new and old outputs it'll be easy to track change and undo it
Eugeny