1830168 Members
5371 Online
109999 Solutions
New Discussion

dump script

 
Peter Brown_6
New Member

dump script

Hello gurus,
I am a complete HP-UX novice, though I do have experience in Solaris (I'm rusty, though). I am trying to create a script file to backup a Visualize B180L running HP-UX 10 to an external DAT. Does anyone know the blocking factor that is appropriate?
My other problem is specifying the filesystem. I know the disk is /dev/dsk/c0t6d0 but when I enter this, I get an error about not being HFS. I assume it is because I am missing the slice, but I don't know how to determine it. And do I just target the dump file to /dev/dat or is there something like /dev/rmt/??? that I should be using?

Any help is greatly appreciated!

Regards
Peter Brown
Jarvis
Middletown CT USA
10 REPLIES 10
Ricardo Bassoi
Regular Advisor

Re: dump script

Hi Peter,

Don??t worry ! I did a script that copies a file to the DDS tape. The script is in the attachment.

Regards

Ricardo
If you never try, never will work
Pete Randall
Outstanding Contributor

Re: dump script

The "not HFS" error is probably because your system uses LVM (Logical Volume Manager). Try this command: vgdisplay -v. You will probably see listings of Volume Groups (VG00, for example), which contain Logical Volumes (lvol1, lvol2, etc.).

The best way for you to back this up is to use a product called Ignite/UX:

http://www.software.hp.com/products/IUX/index.html

Ignite is designed to produce a bootable backup tape of your root logical volume (VG00). You can also use Ignite to backup other volume groups if you have them, though it is generally recommended that you restrict Ignite to VG00 and use conventional backup procedures like fbackup/frestore for non-root Volume Groups. If you didn't see any other VG's other than VG00 in your vgdisplay command then you don't have to worry about any others.

Pete

Pete
Steve Steel
Honored Contributor

Re: dump script

Hi

Ricardo has given you good data.

With fbackup you are ok anyway but for your info look at

http://www.introcomp.co.uk/hpux/index.html

A mine of usable info


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Peter Brown_6
New Member

Re: dump script

So there is no way to use dump if the system is using LVM?
This machine is in our shop, running a coordinate measuring system; no internet, no LAN... I'd be kind of averse to trying to teach them Ignite....
Pete Randall
Outstanding Contributor

Re: dump script

There's not much to teach, Peter. You can set up a script for them that does "make_tape_recovery -x inc_entire=vg00 -a /dev/rmt/2mn" and that's really all there is to it.

Pete

Pete
Frank Slootweg
Honored Contributor

Re: dump script

> So there is no way to use dump if the system is using LVM?

While fbackup(1M) is recommended, you can use [r][vx]dump(1M), also with LVM.

I do not know why you would specify /dev/dsk/c0t6d0 when specifying a filesystem, because /dev/dsk/c0t6d0 is a (physical) *volume*, not a *filesystem* *in* a volume. I.e. why don't you specify for example "/opt" like the manual page says?

Anyway, with LVM, *Logical* Volume Manager, you specify *logical* volume names (/dev/vg??/[r]lvol?), not *physical* volumes (/dev/[r]dsk/c?d?s?).

> This machine is in our shop, running a coordinate measuring system; no
> internet, no LAN... I'd be kind of averse to trying to teach them Ignite....

You use Ignite-UX for *crash-recovery* backup and a file-oriented backup program (like fbackup, dump, HP's OmniBack, etc.) for *file* backup. One is no replacement/alternative for the other.
Peter Brown_6
New Member

Re: dump script

The reason I am attempting to dump the physical volume is that back in my old Solaris days (we're talking 535mb and 1gb drives here), we tended to mount each filesystem on its own slice (/usr on c0t6d0s1, /var on c0t6d0s3, etc). Therefore, dumping the slice WAS dumping the filesystem. My problem here was that I cannot determine what the slice is, since a df returns this /vol/xxxx stuff.

Regards
Peter Brown
Pete Randall
Outstanding Contributor

Re: dump script

You might want to start with a little reading on LVM. Quoting James R. Ferguson:

You can gain a better understanding of LVM by reading chapter-6 ("Administering a System: Managing Disks and Files") in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators":

http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html


Pete

Pete
James Odak
Valued Contributor

Re: dump script

get used to the ioscan command on HPUX

ioscan -FnC Tape
generaly you will be using a dev/rmt/#mn for a single drive
tape device

as for your script you see to have plenty of advice already

Jim
Rick Garland
Honored Contributor

Re: dump script

You state that you come from the Solaris world. Any chance you use Veritas FileSystems on Solaris?

The syntax is different - granted - but the general concepts are the same.