- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- removing device file
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
04-16-2003 03:21 AM
04-16-2003 03:21 AM
I want to remove a device file /dev/rmt/0mn( and it's corresponding files also). Purpose is, my default tape device is /dev/rmt/1mn, but for make_tape_recovery I like to use /dev/rmt/0mn. How can I do that?
Thanks
richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 03:29 AM
04-16-2003 03:29 AM
Re: removing device file
Are you using two different tape devices ? In general, if you want to recreate the devicefiles you only need to delete all old files and reboot the computer. The new devicefiles is created automatic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 03:36 AM
04-16-2003 03:36 AM
Re: removing device file
ln /dev/rmt/1mn /dev/rmt/0mn
The 1m versus 0m has to do with the number of tape drives that this system has had in the past. The first drive seen on bootup will be 0m, then 1m, 2m, etc. The number is an instance or occurance. Since the kernel remembers the drives by instance number, you need to completely remove the device (not just the device files) using rmsf.
Once removed, you can manually recreate the device file with the desired instance number using insf -I -H options. -I selects the instance and -H points to the exact hardware path. If the instance is not removed with rmsf, then insf will report an error when using -I 0.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 04:04 AM
04-16-2003 04:04 AM
Re: removing device file
I tried that one, by removing /dev/rmt/0mn and /dev/rmt/1mn both, but after rebooting system found the next device file, i mean, /dev/rmt/1mn not /dev/rmt/0mn.
Hi Bill,
thanks, yes I am looking for rmsf command and I'll try with it.
Do I need to reboot the server after doing this?
Thanks both of you,
richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 04:17 AM
04-16-2003 04:17 AM
Re: removing device file
Check this link also in which Bill also explain something in detail
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7b4b68c57f64d4118fee0090279cd0f9,00.html
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 05:10 AM
04-16-2003 05:10 AM
Re: removing device file
The number (N) of a tape drive assigned to special device files that match the pattern
/dev/rmt/Nm
/dev/rmt/Nmn
/dev/rmt/Nmb
/dev/rmt/Nmnb
is the instance number in the tape class provided by the system.
Thus 'ioinit' command is needed to reassing instance numbers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 05:18 AM
04-16-2003 05:18 AM
Re: removing device file
This is a quick and dirty, correct solution that requires no reboot.
# find the tape
ioscan -fnC tape
# remove the tape
rmsf -H
# reclaim tape
ioscan -fnC tape
#rebuild devices/drivers
insf
# or if you are a gui man
# (in an Arnold Swartznegger
# voice) use sam.
If you do it from the command lin and do the appropriate links manually there is no reboot. I avoid Gui like it is poison.
cd /dev/rmt
ln -sf /dev/rmt/cxtxdxBEST0m 0m
Hope this helps
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 09:53 PM
04-16-2003 09:53 PM
Re: removing device file
I tried with Tim's steps:
1)ioscan -C tape
2)rmsf -H < h/w path>
3)ioscan -C tape
4)insf -evC tape
but, still it creates /dev/rmt/1m( associates device files) not the one I required, that is, /dev/rmt/0m.
Do I need to re-build the kernel or have to reboot the system?
Thanks all,
richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 10:40 PM
04-16-2003 10:40 PM
Re: removing device file
First of all how many tape drives do you have?. If you 2 drives, and the drive you wanted as default is second in Instance, then you'll get the device number as 1m only.
can you post the output of
#ioscan -fnC tape
#lssf /dev/rmt/1mn
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 11:10 PM
04-16-2003 11:10 PM
Re: removing device file
Perhaps the simplest solution. Rename the devicefiles (mv /dev/rmt/XXX /dev/rmt/YYY).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 11:16 PM
04-16-2003 11:16 PM
Re: removing device file
I am using only 1 tape drive. Previously, there was a tape installed, but I removed that one, and now using another ultrium tape drive, now I want to recognise the tape( presently: /dev/rmt/1m)by the system as /dev/rmt/0m. This is only for standerdization.
The outputs:
/ #ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 1 0/0/1/0.1.0 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/1m /dev/rmt/c0t1d0BEST
/dev/rmt/1mb /dev/rmt/c0t1d0BESTb
/dev/rmt/1mn /dev/rmt/c0t1d0BESTn
/dev/rmt/1mnb /dev/rmt/c0t1d0BESTnb
pos / #lssf /dev/rmt/*
stape card instance 0 SCSI target 1 SCSI LUN 0 at&t best density available at ad
dress 0/0/1/0.1.0 /dev/rmt/1m
stape card instance 0 SCSI target 1 SCSI LUN 0 berkeley best density available a
t address 0/0/1/0.1.0 /dev/rmt/1mb
stape card instance 0 SCSI target 1 SCSI LUN 0 at&t no rewind best density avail
able at address 0/0/1/0.1.0 /dev/rmt/1mn
stape card instance 0 SCSI target 1 SCSI LUN 0 berkeley no rewind best density a
vailable at address 0/0/1/0.1.0 /dev/rmt/1mnb
stape card instance 0 SCSI target 1 SCSI LUN 0 at&t best density available at ad
dress 0/0/1/0.1.0 /dev/rmt/c0t1d0BEST
stape card instance 0 SCSI target 1 SCSI LUN 0 berkeley best density available a
t address 0/0/1/0.1.0 /dev/rmt/c0t1d0BESTb
stape card instance 0 SCSI target 1 SCSI LUN 0 at&t no rewind best density avail
able at address 0/0/1/0.1.0 /dev/rmt/c0t1d0BESTn
stape card instance 0 SCSI target 1 SCSI LUN 0 berkeley no rewind best density a
vailable at address 0/0/1/0.1.0 /dev/rmt/c0t1d0BESTnb
stape property table configuration device /dev/rmt/stape_config
Thanks,
richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 11:47 PM
04-16-2003 11:47 PM
Re: removing device file
Maybe, but I don't want to just rename it. I guess I have to run ioinit?
richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 12:00 AM
04-17-2003 12:00 AM
Re: removing device file
with your first answer to Leif I think you have not removed all files.
Do you have your old tape to recreate the 0m files and delete it correctly or do you know the old
The second best solution is as I think:
create the link from 1m to 0m as Bill mentioned.
Good luck
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 12:29 AM
04-17-2003 12:29 AM
Re: removing device file
First I used to remove the /dev/rmt/0m with only 'rm' but not with 'rmsf'.
I guess that makes things complex.
richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 12:57 AM
04-17-2003 12:57 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 02:40 AM
04-17-2003 02:40 AM
Re: removing device file
Trying with your link's attachment.
Thanks
richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 03:23 AM
04-17-2003 03:23 AM
Re: removing device file
then run ioinit
run insf
it should work
S