Solved

Why doesn't IBMtape appear in the device path for all of my LTO-4 tape devices?

Posted on 2009-05-14
1
987 Views
Last Modified: 2013-12-16
I am having an issue when generating the device tree in Solaris 10. When the path is created with a small number of drives (in this case 2) IBMtape@... appears in the device path like this:
lrwxrwxrwx 1 root root 78 May 13 20:06 0st -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1:st

However, when the device tree is created with 60 drives attached st@... shows up in the device path for 58 out of 60 LTO-4 tape drives.

In the two drive scenario, the media changer and one drive are on VTL port 0a while the second drive is on VLT port 0b. When I create the device paths IBMtape@ &.. shows up in the path.

When I perform the same steps with 30 drives assigned to each port st@ &.. is in the device path. At first glance you would think that the st driver has taken over those devices. Yet a long listing shows the major number is 305. The number 305 is assigned to the IBMtape driver in /etc/name_to_major. I just dont understand the inconsistency in the device path. Does it really matter as long as the driver is IBMtape (305)?

Here is what I currently see:

[root@v240 /]# grep IBMtape /etc/name_to_major

IBMtape 305

[root@v240 /]# ls -l /dev/rmt/*|grep st|wc -l

480 <-- this number equates to the 8 entries created for each of the 60 LTO-4 tape drives.

Here is an example path:

lrwxrwxrwx 1 root root 73 May 14 02:32 /dev/rmt/0st -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/st@w510a09820001922c,1:st

NOTICE the major number is 305 (see below)

# ls -l /devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/st@w510a098

crw------- 1 root sys 305, 1937 May 14 02:38 /devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/st@w510a09820001922c,1:st

All of the device paths look like this with the st@ except for two drives  29st & 59st:

[root@v240 /]# ls -l /dev/rmt/* |grep IBM

lrwxrwxrwx 1 root root 79 May 14 02:32 /dev/rmt/29st -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:st

lrwxrwxrwx 1 root root 80 May 14 02:32 /dev/rmt/29stb -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stb

lrwxrwxrwx 1 root root 81 May 14 02:32 /dev/rmt/29stbn -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stbn

lrwxrwxrwx 1 root root 80 May 14 02:32 /dev/rmt/29stc -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stc

lrwxrwxrwx 1 root root 81 May 14 02:32 /dev/rmt/29stcb -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stcb

lrwxrwxrwx 1 root root 82 May 14 02:32 /dev/rmt/29stcbn -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stcbn

lrwxrwxrwx 1 root root 81 May 14 02:32 /dev/rmt/29stcn -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stcn

lrwxrwxrwx 1 root root 80 May 14 02:32 /dev/rmt/29stn -> ../../devices/pci@1e,600000/SUNW,qlc@3,1/fp@0,0/IBMtape@w510a09820001922c,1e:stn

lrwxrwxrwx 1 root root 77 May 14 02:32 /dev/rmt/59st -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:st

lrwxrwxrwx 1 root root 78 May 14 02:32 /dev/rmt/59stb -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stb

lrwxrwxrwx 1 root root 79 May 14 02:32 /dev/rmt/59stbn -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stbn

lrwxrwxrwx 1 root root 78 May 14 02:32 /dev/rmt/59stc -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stc

lrwxrwxrwx 1 root root 79 May 14 02:32 /dev/rmt/59stcb -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stcb

lrwxrwxrwx 1 root root 80 May 14 02:32 /dev/rmt/59stcbn -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stcbn

lrwxrwxrwx 1 root root 79 May 14 02:32 /dev/rmt/59stcn -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stcn

lrwxrwxrwx 1 root root 78 May 14 02:32 /dev/rmt/59stn -> ../../devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stn

NOTICE the major number is 305 (see below):

#ls -l /devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a

crw------- 1 root sys 305, 3332 May 14 03:09 /devices/pci@1e,600000/SUNW,qlc@3/fp@0,0/IBMtape@w510a09800001922c,1d:stn

The st driver in /etc/name_to_major maps to 33.

I think everything is correct, but I dont understand why the device names are inconsistent.
0
Comment
Question by:cireg
1 Comment
 

Accepted Solution

by:
cireg earned 0 total points
ID: 24388958
I fixed my problem and here's how I did it:

Removed and re-added the IBMtape driver, removed st device links, and ran devfsadm -Cv.

/opt/IBMtape/tmd -s
rem_drv IBMtape
add_drv -m '* 0666 bin bin' IBMtape
/opt/IBMtape/tmd
/bin/rm /dev/rmt/*
devfsadm -Cv
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why run Active Fulls in Backups 19 138
Searching File Names and Eliminating Duplicates in Linux 4 71
How to Insert a File Using Text Editor 9 90
gparted boot manager 4 62
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question