- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- wrong "ioscan" file in "/" directory
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-01-2005 09:04 AM
12-01-2005 09:04 AM
These are the details of commands:
# cd /
# ls -l ios*
-rw-rw-rw- 1 root sys 0 May 12 2005 iosca
# ls -l ioscan.*
-rw-rw-rw- 1 root sys 0 May 12 2005 iosca
I think -the file "ioscan." has invisible characters at the end of the name.
Please suggest what to do?
Thanks
Vipin
Solved! Go to Solution.
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:08 AM
12-01-2005 09:08 AM
Re: wrong "ioscan" file in "/" directory
Answer yes to whatever file is appropriate. There are NO files in the / directory that ioscan uses. It looks like that was a mistake made by someone on May 12, 2005.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:10 AM
12-01-2005 09:10 AM
Re: wrong "ioscan" file in "/" directory
ls -b i*
You can use the interactive version of rm to remove any files.
e.g.
rm -r i*
answer 'y' for each matching filename you wish to delete and 'n' for those you do not want to delete.
Man ls, rm for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:12 AM
12-01-2005 09:12 AM
Re: wrong "ioscan" file in "/" directory
One way to expose unprintable characters is to use the '-b' switch of 'ls':
# ls -lb los*
The unprintable characters will now be written in \ddd octal notation.
To insure that you remove the correct file, you can get it's inode with :
# ls -li los*
# cd
# find . -xdev -inum
Note the '-xdev' so as not to cross mountpoints. Inode numbers are only unique within a filesystem. Note too the '-i' with the remove command to make sure you get one last chance to verify what was found.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:19 AM
12-01-2005 09:19 AM
Re: wrong "ioscan" file in "/" directory
# ls -b io*
ioscan.\177\177\003\030\003
But on the another server:
# ls -l io*
-rw-rw-rw- 1 root sys 2032 May 12 2005 ioscan.out
# ls -b io*
ioscan.out
can I make it visible this file of 1st server , I am not prefering to delete this file because the same file also exists on another server.
Please suggest how to make it visible or what to do?
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:24 AM
12-01-2005 09:24 AM
Re: wrong "ioscan" file in "/" directory
The file is empty (0 bytes) and is NOT used by ioscan for anything.
The easiest thing may be to look at the file on the 2nd machine, see what information is there and then run 'ioscan > /ioscan.out' on the first machine to recreate the file.
If there is full device file information, you may need to use 'ioscan -kfn > /ioscan.out'.
There really isn't going to be an easy way to rename that file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:25 AM
12-01-2005 09:25 AM
Re: wrong "ioscan" file in "/" directory
mv ioscan.* ioscan.out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:28 AM
12-01-2005 09:28 AM
Re: wrong "ioscan" file in "/" directory
I'm not sure what your second question is asking.
The real 'ioscan' command lives in /sbin as /sbin/ioscan. There is a symbolic link to it in /usr as /usr/sbin/ioscan.
You seem to have a file named "ioscan.out". Where or not that exists on different servers is immaterial. You can do anything you want with it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:32 AM
12-01-2005 09:32 AM
Re: wrong "ioscan" file in "/" directory
Thoug some linux admins flagrantly violate this rule, I agree with Bill Hassell's take on the root fs.
No real files belong there at all.
I have root home equal to /root/ and keep a few tools I need there in case I'm booting to single user mode, but nothing else.
root fs is for other filesystems to be mounted in subfolders and for system configuration like /etc
In my opinion, borrowed though it is, nothing else belongs there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 03:07 AM
12-02-2005 03:07 AM
Re: wrong "ioscan" file in "/" directory
# mv ios* ioscan.out
# ls -l | grep io*
-rw-rw-rw- 1 root sys 0 May 12 2005 ioscan.out
this is an empty file.
But on the another server--
# ls -l io*
-rw-rw-rw- 1 root sys 2032 May 12 2005 ioscan.out
# more ioscan.out
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3
disk 7 0/0/10/1/0.1.0.0.0.0.0 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c12t0d0 /dev/rdsk/c12t0d0
disk 6 0/0/10/1/0.1.0.0.0.0.1 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c12t0d1 /dev/rdsk/c12t0d1
disk 3 0/0/10/1/0.1.31.0.0.0.0 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c13t0d0 /dev/rdsk/c13t0d0
disk 8 0/0/10/1/0.1.31.0.0.0.1 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c13t0d1 /dev/rdsk/c13t0d1
disk 2 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c5t2d0 /dev/rdsk/c5t2d0
disk 4 1/0/8/1/0.1.0.0.0.0.0 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c14t0d0 /dev/rdsk/c14t0d0
disk 9 1/0/8/1/0.1.0.0.0.0.1 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c14t0d1 /dev/rdsk/c14t0d1
disk 5 1/0/8/1/0.1.31.0.0.0.0 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c15t0d0 /dev/rdsk/c15t0d0
disk 10 1/0/8/1/0.1.31.0.0.0.1 sdisk CLAIMED DEVICE DGC CX500WDR5
/dev/dsk/c15t0d1 /dev/rdsk/c15t0d1
This file contains the details of the disk from 0 to 10.
I was trying to see the output of #ioscan -fnC disk, but its not showing the same details which exists in ioscan.out file.
this command shows the details of every HDD but not of HDD (0 to 10)
so on the first server , from where i will get the details of HDD (0 to 10) to ioscan.out file?
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 03:11 AM
12-02-2005 03:11 AM
SolutionAre you sure those disks are still connected to the sever? Maybe they were disconnected at some point and are no longer in use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 06:46 AM
12-02-2005 06:46 AM
Re: wrong "ioscan" file in "/" directory
Vipin