- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 8.0
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
02-03-2003 01:58 PM
02-03-2003 01:58 PM
I've been asked to resume work on an old HP-UX 8.0 machine. Don't know much at all about HP-UX, and there is no documentation here anymore, anyway I need to add a tape drive.
Had some handwritten instructions which says to add 9145 tape drive, power down, set address to 7 using toggle switches-I did, attach HP-IB cable-I did,
reboot-I did, the type "mknod /dev/rct/0s0 c 4 0x0e400", I did.
I can't get the system to recognize the drive after several reboots, changing of tape drives address, etc. Get error message below when trying to access drive.
" /dev/rct/0s0: No such device or address "
Attached is dmesg output. Any help would be appreciated. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:06 PM
02-03-2003 02:06 PM
Re: HP-UX 8.0
I did work on 8.0 but hardly remember anything on it.
Try exploring through SAM. I remember to have seen a place where you could select the tape drive and ask it to show/create special files.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:10 PM
02-03-2003 02:10 PM
Re: HP-UX 8.0
I can't remember if 'ioscan' was part of the OS back then...
# ioscan -fn
# lssf /dev/rct/0s0
Let's see what this turns up. This error message also will indicate that there is no tape in the drive as well.
Be aware that this OS version is not supported anymore, there will probably be no on-line docs anywhere and it is not Y2K compliant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:15 PM
02-03-2003 02:15 PM
Re: HP-UX 8.0
# iomap
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:24 PM
02-03-2003 02:24 PM
Re: HP-UX 8.0
# insf -e (this will create new device files, if the device is working and connected properly)
# ioscan -fn (will tell you whether it's detected or not)
# man ioscan(1m)
# man insf(1m) - for details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:59 PM
02-03-2003 02:59 PM
Re: HP-UX 8.0
Had a tape in and out of drive several times no luck.
Clean light is illuminated n the tape drive, could it be possible the drive is not recognized until the drive is cleaned? I haven't find a cleaning tape, but I will do a more thorough search.
Thanks all for your input.
Still searching for answer!
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 03:22 PM
02-03-2003 03:22 PM
Re: HP-UX 8.0
don't remember the part number 9145, but "/dev/rct/*" is for QIC tapes only - is it one?
But even then there was "SAM" - how about starting SAM, going to "Peripheral Devices" and recreating all available tape devices???
On the the other hand: the 300s are still "supported" by OpenBSD!
Maybe you download OpenBSD3.2 from them, just to test the hardware - OpenBSD hardware detection is pretty good and if you attach a different harddisk, you cannot hurt your original one - but confirm wether your tape drive IS working (have replaced harddisks a couple of times on 300s - certainly NOT rocket sience)...
FWIW,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 03:23 PM
02-03-2003 03:23 PM
Re: HP-UX 8.0
HP has pulled support later this year on HP-UX 10.20.
If what you are doing is important, it should probably not be on a machine that far out of date.
P
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
02-03-2003 03:44 PM
02-03-2003 03:44 PM
Re: HP-UX 8.0
If I can find another drive, I doubt it. I could try BSD 3.2.
It's not the most important thing around here, but I would like to get it working. Right now I'm just trying to certify it through our security which calls for system backups. It's a legacy system we can't get rid of (customer), 1st one on new set of security rules, thought this machine might be a good one to start with for various reasons no one would be interested in but me. I appreciate the suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 04:01 PM
02-03-2003 04:01 PM
Re: HP-UX 8.0
Your mknod should work as long you are correctly defining the minor numbers. Did you have the "tape" added into the kernel?. Does lsdev show tape and the corresponding major number as 4?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 04:16 PM
02-03-2003 04:16 PM
Re: HP-UX 8.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 04:35 PM
02-03-2003 04:35 PM
Re: HP-UX 8.0
Your "4" represents a cs80 disk. So I don't think your mknod command would work as you are trying to create a harddisk devicefile.
I don't know if HP7970/HP7971 or HP7974/HP7978 are the correct drivers for the tape drive you are adding. Try the same mknod with either 5 or 9. It could be wrong.
Also, add one more 0 to your minor number.
mknod /dev/rct/0s0 c 5 0x0e4000
I have a feeling that even the minor number is wrong. And I am finding it hard to recall the things I did 7 years back.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 12:33 AM
02-04-2003 12:33 AM
Re: HP-UX 8.0
You have to understand that support for this OS ended back in the early 90's.
There was no auto config of devices, you had to add them into hte kernel gen file, which on an s800 I recall was /etc/conf/gen/S800
You had to include quite a few statements, and at htis version you may even have had to include all parent statements including IO paths. (long time since I touched 8.x).
Then you need to run the uxgen command to build a new kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 02:08 AM
02-04-2003 02:08 AM
Re: HP-UX 8.0
My settings are these:
in /dev/ct: b 0 0x070300
in /dev/rct: c 4 0x070300
where my tape drive has the HPIB address 3, and 7 is the ID of my HPIB bus. You need to verify that 0x0e is the correct bus ID on your system.
With /etc/lsdev you see the installed drivers. You need the CS80 driver in addition to the HPIB drivers.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 02:33 AM
02-04-2003 02:33 AM
Re: HP-UX 8.0
try looking at
/etc/conf/dfile
if there are all needed drivers included.
With the command
config dfile
you can create a new kernel.
Also look at /etc/newconfig/mkdev.
It's a script where you can find some information about device files for severeal peripherals.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 06:13 AM
02-04-2003 06:13 AM
SolutionIt looks like Ulrich's information is correct, i.e.
mknod /dev/rct/c0 c 4 0xSCAD00
where 4 is the character major number of the CS80 driver (see your lsdev output), SC is the "Select Code" of the HP-IB interface, probably 7, is mentioned during bootup (i.e. the messages from the boot ROM or/and kernel), and AD is the HP-IB address of the tape drive.
Another tip I found: If you have a /dev/update.src device, then, if nothing has changed, that is probably already set up correctly. If so, just *link* it do the desired name, i.e. "ln /dev/update.src /dev/rct/0s0". /dev/update.src was created by the installation process and used for installing/updating software with the update(1M) command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 10:15 AM
02-04-2003 10:15 AM
Re: HP-UX 8.0
Many thanks to all who responded, especially Frank Slootweg.
While I'm here...I started a fbackup with the following command "fbackup -f - -i / | tcio -oe /dev/rct/0s0 /-I /tmp/index". I'm hoping the syntax is correct to backup the entire system starting at /, is that correct? I'm a little concerned because the fbackup is running and using processor time, however the tape drive has not moved, and it's been about an hour now. I can see and hear the drives being accessed. Nothing else is running. There are /etc/fbackuprdr and a /etc/backupwrtr processes running. Is this normal..is there some sort of validation or something going on and the writing out to tape takes place later???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:21 AM
02-05-2003 02:21 AM
Re: HP-UX 8.0
> "fbackup -f - -i / | tcio -oe /dev/rct/0s0 /-I /tmp/index".
If this is literally what you typed, then I think it is wrong. The "-I /tmp/index" part should go with fbackup, i.e. before the pipe ("|") symbol. Also I do not understand the "/" before the "-I ...".
I don't remember how to use tcio, but assuming the tcio part is OK, the command would be:
fbackup -I /tmp/index -f - -i / | tcio -oe /dev/rct/0s0
About the 'hang', i.e. fbackup (rdr/wrtr) busy but the tape not moving:
There have been numerous fbackup-'hang' problems and associated patches. So check if you have any/the_latest fbackup/frecover patches.
IIRC, you can check filesets, i.e. also patches, on 8.X by looking in /etc/filesets or in /system or by using the interactive rmfn(1M) command. Be careful with the latter, because, as the name implies, it is for removing functions, but you can also use it to view what is installed, i.e. rmfn(1M) is the 'opposite' of update(1M).
Perhaps it is best to test fbackup and tcio seperately, i.e. something like:
fbackup -I /tmp/index -f - -i /etc/passwd >/dev/null
(i.e. does fbackup work at all?)
fbackup -I /tmp/index -f - -i / >/dev/null
(i.e. can fbackup make a full backup to /dev/null?)
tar cvf - /etc/passwd | tcio -oe /dev/rct/0s0
(i.e. can something else, i.e. tar in this case, write to the tape drive?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 07:46 AM
02-05-2003 07:46 AM
Re: HP-UX 8.0
See attached for what did and didn't work.
Started a fbackup and redirected to /dev/rt/0s0 that's running now (about 30 minutes, tape hasn't moved yet.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:06 PM
02-05-2003 11:06 PM
Re: HP-UX 8.0
With regards to tcio: The "tcio(1020): cannot write file mark tape /dev/rct/0s0; errno 6" can have all kind of causes. Bad tape, dirty head (error/clean light on?), wrong tape (9145 can not *write* 16 track tapes, only read them), HP-IB cable/cable-length/loading problems, etc..
So I think you still have a problem with the tape drive. Do not understand why you do not have it when you use tar without tcio. I advise to try to read back the tar tape to see if it really wrote to the tape.
I advise to add the "vV" options to tcio. This will make it tell what it does and will eliminate the verify, which, AFAIK, is uncessesary.
The HP-related Usenet Newsgroups are all under comp.sys.hp, specifically comp.sys.hp.hpux.
Is this system networked to another, preferably HP, UNIX system with a tape drive? If so, you could make remote backup via SAM/fbackup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 01:57 PM
02-06-2003 01:57 PM
Re: HP-UX 8.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 12:43 AM
02-07-2003 12:43 AM
Re: HP-UX 8.0
Going through your attachment:
First fbackup, *without* tcio, gives a write error, so the tape (drive) problem is not only related to tcio.
tar of /etc/passwd, without tcio' to/from tape work, so it looks like you have the right type of tape (HP, formatted, 32-track).
dmesg also mumbles "uninitialized_media write_protect". Make very, very sure that the tape is not write-protected.
Other dmesg messages: Make sure that your HP-IB cabling is OK. HP-IB is *very* strict in that. I.e. only one 'string' from device to next device, *no* 'star' layouts, *short* cables (HP-IB cable length is very limited, 2 or 1 meter per load), right type of speed setting (low/high) for *all* devices on the buse, etc..
Earlier you said "Clean light is illuminated". Is this still the case? Have you cleaned the drive? (IIRC, you had to do that with swabs and alcohol, *not* with a cleaning tape.)
Last hanging fbackup: As I mentioned before, check/get/install the latest fbackup/frecover patches.
What about my question about the system being networked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 11:24 AM
02-07-2003 11:24 AM
Re: HP-UX 8.0
Finally got it working..(see attached for command that worked) not sure what did the trick..but it still ran an awful long time, before writing anything to tape, when I came in this morning it seemed to be asking for another tape. One question when fbackup asks "To continue, type device name..." I'm assuming that it means to insert a new tape to continue is that correct, the first tape was full?
I appreciate so much the time and patience you have taken to help this lost soul.
Now if I can find enough tapes to actually complete the backup I'll be in business. I only have two 650ft and three 150ft.
Thanks again, Frank.
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 07:01 PM
02-07-2003 07:01 PM
Re: HP-UX 8.0
The (very long) delay between starting fbackup and actually writing to the tape is absolutely normal. fbackup finds every file and directory, creates an index in RAM and then starts the backup. The 300 series computer is a Motorola 68k box that predates PA-RISC machines.
With so few tapes, you may need to reduce the scope of the backup, or at least remove or zero out large log files that are not needed. Look at /etc for big files:
ll /etc | sort -rnk5 | more
Check /dev in case someone accidently stored a data file there:
find /dev -type f -exec ll {} \;
There should be no data files in /dev. Look at /usr/adm for big log files:
ll /usr/adm | sort -rnk5
NOTE: The 1/4 data cartridges look identical to non-HP tapes. However, the 914x tape drives are actually random access drives (they use the CS80 disk driver) and must have pre-formatted tapes. This formatting requires very specialized equipment (the drive cannot format the tape) so unformatted tapes will be rejected, and *never* degauss the tapes you have or they will be useless. The tape drive is a bootable, random access device and the system doesn't know it's really a tape. As you might expect, it is VERY slow but you can actually run HP-UX with just the tape drive.
The good news is that you may be able to pick up a box of HP cartridge tapes for a few bucks at computer junk store.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 12:45 AM
02-10-2003 12:45 AM
Re: HP-UX 8.0
I am glad that it finally works.
As to why it did not work before? Perhaps you did not wait long enough. At one time you waited at least an hour, but, as Bill mentioned, fbackup can be very slow to startup, especially if there are many files and especially on a slow machine like a Series 300. IIRC, the early fbackup versions also had severe problems if there was (too) little memory (trashing, paging?).