HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I change device name ?
Operating System - HP-UX
1833778
Members
2510
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-09-2007 03:57 AM
09-09-2007 03:57 AM
Now I want to change my lan adapter device name, such as from lan0 to lan1 and lan1 to lan0?
By the way, I alse want change tape device name for /dev/rmt/0m to /dev/rmt/1m?
many thanks
By the way, I alse want change tape device name for /dev/rmt/0m to /dev/rmt/1m?
many thanks
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 04:11 AM
09-09-2007 04:11 AM
Re: How can I change device name ?
You could simply "mv /dev/rmt/0m /dev/rmt/1m", but this will cause much confusion if/when you add a second tape device. So this is not recommended.
The correct way to do this is to use the "ioinit -f" command. Re-assigning the devices will require a reboot. Read "man ioinit" very carefully before using it.
MK
The correct way to do this is to use the "ioinit -f" command. Re-assigning the devices will require a reboot. Read "man ioinit" very carefully before using it.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 06:13 AM
09-09-2007 06:13 AM
Solution
The lan adapter name can be changed in /etc/rc.config.d/netconf. Just swap the instance numbers (which re defined as array values) between [0] and [1]. It will require a reboot. There is no way to change lan numbers online without losing your networking.
You can go the ioinit route but it is highly risky when mistakes are made. A better way is to remove and re-add the two tape drives using rmsf. Find the hardware address for both 0m and 1m like this:
lssf /dev/rmt/[01]m
Then use rmsf -aH to remove the devices:
rmsf -aH 0/0/4/1/0.3.21.255.0.1.0
rmsf -aH 0/0/4/1/0.3.20.255.0.1.0
Now, keeping in mind which disk addresses are to be 0 and 1, add them back by specifying the instance you'd like to use (instance = 0 or 1), like this:
insf -I 0 -H 0/0/4/1/0.3.20.255.0.1.0
insf -I 1 -H 0/0/4/1/0.3.21.255.0.1.0
You never want to just rename a couple of tape device filenames. List the tape device files with:
ioscan -knfC tape
and you'll see many different names for each tape drive. They all must be renamed, thus the use of rmsf and insf above.
Bill Hassell, sysadmin
You can go the ioinit route but it is highly risky when mistakes are made. A better way is to remove and re-add the two tape drives using rmsf. Find the hardware address for both 0m and 1m like this:
lssf /dev/rmt/[01]m
Then use rmsf -aH to remove the devices:
rmsf -aH 0/0/4/1/0.3.21.255.0.1.0
rmsf -aH 0/0/4/1/0.3.20.255.0.1.0
Now, keeping in mind which disk addresses are to be 0 and 1, add them back by specifying the instance you'd like to use (instance = 0 or 1), like this:
insf -I 0 -H 0/0/4/1/0.3.20.255.0.1.0
insf -I 1 -H 0/0/4/1/0.3.21.255.0.1.0
You never want to just rename a couple of tape device filenames. List the tape device files with:
ioscan -knfC tape
and you'll see many different names for each tape drive. They all must be renamed, thus the use of rmsf and insf above.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP