Operating System - HP-UX
1833884 Members
2062 Online
110063 Solutions
New Discussion

Re: my brand new unix RX3440

 
I.Delic
Super Advisor

my brand new unix RX3440

Hi guy's,
I have a brand new Unix RX3440 box.
If i use mt rew command i get this message
/dev/rmt/0mnb: No such file or directory
I think the box is misconfigureted.
Can you look in my ioscan_full file and tel me what is wrong. I think de tape device and dvd is switched.
Is this normal?
can you give me advice about my configuration , if is something wrong i wil tel it to my supplier. It is very important for me because it will be my hard_core production

thank you in advance

Idriz Delic

16 REPLIES 16
Bernhard Mueller
Honored Contributor

Re: my brand new unix RX3440

Hi,

in ioscan you have stape instance #1 so run
insf -e
ioscan -fnkCtape

you should see /dev/rmt/1m /dev/rmt/1mn
for that CLAIMED instance.

then try mt -f /dev/rmt/1m rewind, if it does not work try mt -f /dev/rmt/1mn rewind.

Regards,
Bernhard

Bharat Katkar
Honored Contributor

Re: my brand new unix RX3440

Hi,
I don't see the tape device in your ioscan listing. Make sure you have powered on your TApe drive ( if it is external one ) and then

# insf -e
# ioscan -fnC tape

This should list the tape device with associated device files.

Then go ahead and try out your "mt" commands as suggested above.

Regards,


You need to know a lot to actually know how little you know
I.Delic
Super Advisor

Re: my brand new unix RX3440

Hi guy's,

Here is my full ioscan with disk en tape

Idriz
Bharat Katkar
Honored Contributor

Re: my brand new unix RX3440

Hi Delic,
You can now run this command:

# mt -f /dev/rmt/1m status
# mt -f /dev/rmt/1m rew
etc etc.

You have any problems still, let us know the error's.
Regards,
You need to know a lot to actually know how little you know
I.Delic
Super Advisor

Re: my brand new unix RX3440

Hi,

Thank you for your solution mt -f /dev/rmt/
It works but it is not what i want. I want just to execute mt rew and evrything must go automaticly.

It's brand new thing. Can you check my ioscan for the strange things


Thank you

Idriz Delic
Simon Hargrave
Honored Contributor

Re: my brand new unix RX3440

There really is nothing wrong with your configuration, you should really explicitly reference your tape device in your mt commands.

However if you REALLY want it to be /dev/rmt/0m as default, then you can change the instance number in the kernel: -

Create a file called newio with the following contents: -

0/4/1/1.1.0 stape 0

Then run ioinit -f newio

You can then insf -e to create the device file. Can't remember whether a reboot is required or not (don't have a box to test on), but an ioscan should reveal whether it's worked or not.
Simon Hargrave
Honored Contributor

Re: my brand new unix RX3440

Apologies the file should contain "tape" ( the class ), not "stape" (the driver).

And you do need a reboot. You can boot yourself, or add the -r switch to ioinit to boot automagically.
Bharat Katkar
Honored Contributor

Re: my brand new unix RX3440

Hi,
The entry in ioscan :
tape 1 0/4/1/1.1.0 stape CLAIMED DEVICE HP C5683A

is correct and nothing is wrong in the output posted later.
Now Deric what command you are trying and what exactly you are planning for.

Regards,
You need to know a lot to actually know how little you know
I.Delic
Super Advisor

Re: my brand new unix RX3440

Hi,

On one box we have /dev/rmt/0mn als default
mt rew and evrythings goes correctly.
Now we have another box RX3440.

on this machine is tape /dev/rmt/1m

if i try mt rew i get this messege
/dev/rmt/0mn no such file

I don't want to use mt -f /dev/rmt/1m rew

I want to use the same command

mt rew without -f


is this possible


Idriz







Simon Hargrave
Honored Contributor

Re: my brand new unix RX3440

See my post re: changing the instance number above, that will achieve what you want. Though it isn't really good practice to assume the defaults.
Bharat Katkar
Honored Contributor

Re: my brand new unix RX3440

Hi Delic,
Then i would suggest you to make soft link for the same.

# ln -s /dev/rmt/1m /dev/rmt/0m
# ln -s /dev/rmt/1mn /dev/rmt/0mn
# ln -s /dev/rmt/1mnb /dev/rmt/0mnb
so on...

That should help.
Regards,
You need to know a lot to actually know how little you know
I.Delic
Super Advisor

Re: my brand new unix RX3440

hi guys,

Thank you for all your solutions. At his point i don't know what i have to do.

The solution with LN like my good but i don't know witch solution is the best for one permanent solution.


Idriz
Simon Hargrave
Honored Contributor

Re: my brand new unix RX3440

The ln solution will work, but the problem is if you add tape drives in the future the links may be overwritten.

If you want to try the instance number solution without risk of breaking anything, then do this: -

copy /etc/ioconfig to a backup file.
Run the ioinit command as above.
Reboot.

If you don't like the results, replace ioconfig with the backup file and reboot again.
Krishnan Viswanathan
Frequent Advisor

Re: my brand new unix RX3440

Here is another method to do this without modifying any system level directory.

Add the following lines to the ".profile" file of the user executing the "mt" command.

if [ -c "/dev/rmt/0m" ]
then
alias mt='mt -t /dev/rmt/0m'
else
alias mt='mt -t /dev/rmt/1m'
fi


Log back in for the .profile changes to take effect.

Now when you execute "mt rew" and it will rewind the appropriate tape device for you automatically. You can also put the above commands in a separate script and have the .profile reference that script or you can execute the script separately

Hope this helps

rick jones
Honored Contributor

Re: my brand new unix RX3440

a minor nit, but who knows what future model names will bring. rx means "Itanium" system, but 3440 is the numeric part of an rp (pa-risc) system. I suspect what you have is an rp3440.
there is no rest for the wicked yet the virtuous have no pillows
I.Delic
Super Advisor

Re: my brand new unix RX3440

yess

it is RP3440


Idriz