Re: HP-UX 11.31 labelit (142 Views)
Reply
Advisor
Andy Benegas
Posts: 18
Registered: ‎10-05-1999
Message 1 of 6 (142 Views)
Accepted Solution

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]
#




Acclaimed Contributor
Dennis Handly
Posts: 25,207
Registered: ‎03-06-2006
Message 2 of 6 (142 Views)

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.
Honored Contributor
VK2COT
Posts: 921
Registered: ‎01-17-2006
Message 3 of 6 (142 Views)

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
Advisor
Andy Benegas
Posts: 18
Registered: ‎10-05-1999
Message 4 of 6 (142 Views)

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]
#
Acclaimed Contributor
Dennis Handly
Posts: 25,207
Registered: ‎03-06-2006
Message 5 of 6 (142 Views)

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.
Advisor
Andy Benegas
Posts: 18
Registered: ‎10-05-1999
Message 6 of 6 (142 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.