1748107 Members
4852 Online
108758 Solutions
New Discussion юеВ

Re: HP-UX 11.31 labelit

 
SOLVED
Go to solution
Andy Benegas
Advisor

HP-UX 11.31 labelit

Can we still use labelit to label new tapes on HP-UX 11.31?

Here is what we have done in the past and the results:

# uname -a
HP-UX ubkup B.11.11 U 9000/800 3019283341 unlimited-user license
# labelit /dev/rmt/0mn COLD ozw001 -n
labelit: /etc/default/fs is used for determining the file system type
Skipping label check!
NEW fsname = COLD, NEW volname = ozw001 -- DEL if wrong!!
#

Now we get the following when performing the same command on HP-UX 11.31:

# uname -a
HP-UX dmsdbs01 B.11.31 U ia64 3952680404 unlimited-user license
# labelit /dev/rmt/0mn COLD ozw001 -n
labelit: /etc/default/fs is used for determining the file system type
labelit: /dev/rmt/0mn is of unknown filesystem type
labelit: use "-F FStype" option
usage: labelit [-F FStype] [-V] [-o specific_options] special [fsname volume]
#




5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: HP-UX 11.31 labelit

What does labelit do? Why would it look at /etc/default/fs to get a filesystem type? I wasn't aware tapes had filesystems?

Please provide the contents of /etc/default/fs on both systems. (There were lots of changes in 11.31.)

As the message said, you probably can add "-F FStype" to make labelit happy.
VK2COT
Honored Contributor

Re: HP-UX 11.31 labelit

Hello,

Dennis is right. Not mush use for
this command on HP-UX 11.31.

The labelit(1M) command can be used to
provide initial labels for unmounted disk or
tape file systems. With the optional
arguments omitted, the labelit command
prints current label values. It is closely
related to volcopy(1M) command.

The "-n" option provides for initial labelling of new tapes only (this destroys
previous contents). The -F, -V, and -o
options can be specified for the labelit
command. The behavior of the -F, -V, and -o
options is similar to their behavior in the
volcopy command.

The labelit (1M) command is considered
obsolete starting one version of HP-UX 11.23
(I forgot which one).

Like fbackup and frecover, please consider
not using them. They are still available on
HP-UX 11.31 but only for backward compatibility.

However, if you really want to use labelit,
simply use the correct command arguments "-F...". I did not use it myself on HP-UX
11.31 but it hopefully still works.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Andy Benegas
Advisor

Re: HP-UX 11.31 labelit

# uname -a
HP-UX ubkup B.11.11 U 9000/800 3019283341 unlimited-user license
# cat /etc/default/fs
LOCAL=vxfs
#

# uname -a
HP-UX dmsdbs01 B.11.31 U ia64 3952680404 unlimited-user license
# cat /etc/default/fs
LOCAL=vxfs
#

I have tried placing "-F FStype", "-F vxfs", "-F VXFS", "-F LOCAL". They all resulted in the same messages on 11.31.

# labelit -F vxfs /dev/rmt/0mn COLD ozw001 -n
labelit: invalid argument to "-F FStype" option
labelit: vxfs is not a valid file system type
usage: labelit [-F FStype] [-V] [-o specific_options] special [fsname volume]
#
Dennis Handly
Acclaimed Contributor
Solution

Re: HP-UX 11.31 labelit

>I have tried placing "-F FStype", "-F vxfs", "-F VXFS", "-F LOCAL". They all resulted in the same messages on 11.31.

You can have any FStype you want as long it is black. :-)
Only -F hfs is supported on 11.31.
Andy Benegas
Advisor

Re: HP-UX 11.31 labelit

The "-F hfs" in the command did the trick.

# uname -a
HP-UX dmsdbs01 B.11.31 U ia64 3952680404 unlimited-user license
# labelit -F hfs /dev/rmt/0mn COLD ozw001 -n
Skipping label check!
NEW fsname = COLD, NEW volname = ozw001 -- DEL if wrong!!
#

Thanks for the assistance.