- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Special files
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
12-27-2000 08:59 AM
12-27-2000 08:59 AM
Special files
On HP-UX 10.20, we had special files for several disks like:
c5t4d1
Now we have for the same device:
c3t4d1
So I think we will have some problems when we will want to do the vgimport to recreate our volume groups.
Why I do not have the same special files?
How to solve this problem?
Thanks
Didier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2000 10:23 AM
12-27-2000 10:23 AM
Re: Special files
cat specialfile | sed 's,/c5t4d1, i\ /c3t4d1,g' > newspecialfile.
Then later you can rename or move newspecialfile to specialfile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2000 10:37 AM
12-27-2000 10:37 AM
Re: Special files
cat specialfile | sed 's,/c5t4d1, i\ /c3t4d1,g' > newspecialfile.
Please, make a copy/backup of your special files before changing them. ......................
There should be one front slash before the c's, I hope it appears.
I don't know what is happening to this posting and SSL.........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2000 11:00 AM
12-27-2000 11:00 AM
Re: Special files
1)a system could have been upgraded with additional hardware over time.
2) the customer/owner could have made modifications, ie renaming/creating their own device files
I think your asking too much of a installation process to know what order the hardware was installed or what modifications were done in a previous lifetime.
But, still two installations on the same hardware can result in different device file names. This is because hp's process that automatically creates device files does so via polling the hardware. Which ever hardware responds first gets created first.
How to solve this problem?
you need to "map" the volume group's physical volumes to their hardware address from the old system. vgdisplay -v vgname to get the physical volumes then a lssf on the device name to get the hardware address. So you massage this information to get files that tell you the old information. ie vg01 has /dev/dsk/c1t2d0, etc and another that maps the device files to the hardware, ie /dev/dsk/c1t2d0 x/y/1.2.0
/dev/dsk/c1t3d0 x/y/1.3.0, etc
Now on your new system to a ioscan -FunC disk, massage this information to get a file that maps your new devices files to hardware addresses similar to what you created for your old system.
From this you can "map" your old device files to the new device files. ie old device file "a" corresponds to hardware address "A", hardware address "A" coresponds to new device file "b".
From here you can do many things. create your own device files, rename the ones already there or as I prefer to do just call your vgimport with the new device file names.
You already have to copy all your mapfiles anyway so what is a few more files going to hurt. And, the above can all be scripted to reduce human error on doing lookups on printouts. I wrote a script to do this, but that was 2 employers ago so you'll have to do your own, unless someone else has one for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2000 01:04 PM
12-27-2000 01:04 PM
Re: Special files
You just have to export and import the vgs with -s option:
# vgexport -p -s -m vg1.map vg1
# vexport -p - s -m vg2.map vg2
etc
and then
# mkdir /dev/vg1
#mknod /dev/vg1/group c 64 0x010000 <- choose a unique minor, the same for both cluster nodes
#vgimport -s -m vg1.map vg1.map
... then the same for vg2, etc
This way the system will scan ( -s ) the available disks and match them with the vg information stored in the map file.
Then you have to get the cluster config and thenreaply the cluster because if the lock disk has a new device file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2000 04:00 PM
12-27-2000 04:00 PM
Re: Special files
On systems HPUX 9.x and earlier, the hard disk device numbers were created based on the order when they were originally created. On HPUX 10.x and above the device number is determined by the actual hardware position of the device on the bus. Chris's comment remains true on tape devices though.
With all this said, there is no reason to attempt to fool with device designations and there is no need to plug a scsi cable into a specific location either. Attempting to switch them around (with sed or anything else) will only confuse the issue down the street when a CE comes in to diagnose a disk problem and does not find them attached in the appropriate places.