- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extra device files in /dev/dsk
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
01-16-2002 08:09 AM
01-16-2002 08:09 AM
For instance:
# ls /dev/dsk
c1t2d0 c3t2d0 c5t0d1 c5t1d1 c6t0d1 c6t1d1
c2t2d0 c5t0d0 c5t1d0 c6t0d0 c6t1d0
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST39103LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST39102LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 6x/32x
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 4 0/4/0/0.1.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c5t1d0 /dev/rdsk/c5t1d0
disk 8 0/4/0/0.1.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c5t1d1 /dev/rdsk/c5t1d1
disk 5 0/7/0/0.0.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 9 0/7/0/0.0.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
As you can see, c5t0d0, c5t0d1, c6t1d0, and c6t1d1 don't seem to have a disk/lun associated with them.
If these are no longer needed, what is the correct way to remove them, or should they be removed?
Thanks again,
Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:17 AM
01-16-2002 08:17 AM
Re: Extra device files in /dev/dsk
strings /etc/lvmtab | grep dsk (give you all the disks in volume groups)
or ioscan -funC disk | grep dsk | awk '{print $1}' (or $2 depending on if you want charcter or raw devide)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:23 AM
01-16-2002 08:23 AM
Re: Extra device files in /dev/dsk
This is the small script I run to clean up the unwanted device files.
cd /dev/dsk
for i in `ls`
do
P=`lssf $i |awk '{print $13}'`
if [ "$P" = "???" ]
then
echo $i $P
rmsf /dev/dsk/$i
rmsf /dev/rdsk/$i
fi
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:25 AM
01-16-2002 08:25 AM
Re: Extra device files in /dev/dsk
If it is not necessary, you may leave the /dev/dsk files as it is. You have to be careful while removing any files from /dev directory. Double check the output of 'ioscan -fn', diskinfo etc.
You can use rmsf (remove special file) to remove these files. check man rmsf and good luck !
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:54 AM
01-16-2002 08:54 AM
Re: Extra device files in /dev/dsk
The unwanted device files can be safely removed.
The files in /dev/dsk/* that return with "???" as their path instead of a valid path can be removed.
Thanks.
Prashant.