08-13-2010
hpux 11.31 vgimport fail
i'm trying to vgimport the map file from vgexport -p -v -s -m to fail over node (adoptive node in service guard).
root@noe04:/etc/cmcluster/icasprd$ vgimport -s -m gicasprd.110810.map /dev/vgicasprd
vgimport: Volume group "/dev/vgicasprd" already exists in the "/etc/lvmtab" file.
the /etc/lvmtab file has already vgicasprd volume group and all disks associated with. How can i proceed. Is it possible to remove the vgicasprd in /etc/lvmtab file and all disks associated before then try to redo vgimport?
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me?
How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
2. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
3. Shell Programming and Scripting
I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails
$ rename 's/\-/\_/' *
Unknown option: _
Unknown option: i
Unknown option: r
Unknown option: e
Unknown option: e
Unknown option: _
Unknown option: g
Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies
4. Shell Programming and Scripting
Hi
Am having 2 files.
I have one data file.
before inserting in to the table am taking cout of the data file and store as data 1.
After insert in to the table and am taking the count from the table and store as data2.
If i try to compare those values
If
then
echo "data match"... (5 Replies)
Discussion started by: bobprabhu
5 Replies
5. HP-UX
Hi,
when i try to add new disk, it's an XP disk from SAN (lun) to the volume group, it fails because "TOO MANY LINKS"
:/etc/cmcluster/icastst$ vgextend /dev/vgicastst /dev/disk/disk684
Current path "/dev/dsk/c51t8d3" is an alternate link, skip.
Current path "/dev/dsk/c51t8d4" is an... (2 Replies)
Discussion started by: lamoul
2 Replies
6. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
7. Emergency UNIX and Linux Support
Hi! We have two HP-UX 11.23. I created VG on host A, exported and imported it on host B, but when I try to mount any LV I get "unrecognized vxfs version" version error. Could anyone please suggest something I can do in this situation? I tried to import VG back to host A and I successfully mounted... (3 Replies)
Discussion started by: Sapfeer
3 Replies
8. HP-UX
HPUX running in D-Class (L1000), pretty old HPUX version - hpux 11.00
Attempt 1 -- To boot from normal (primary)
Unable to boot - system complains failure
SYSTEM ALERT System Name : uninitialized DATE : 10/22/2011 Time : 03/41:12 Alert Level 15 = Fatal hardware or configuration... (12 Replies)
Discussion started by: ckwan
12 Replies
9. Linux
Hi,
I try to telnet to server:
# telnet xx.xxx.1.72 1521
Trying xx.xxx.1.72...
telnet: connect to address xx.xxx.1.72: Connection refused
telnet: Unable to connect to remote host: Connection refused
iptables is off:
# service iptables status
Firewall is stopped.
#
And I have edit... (4 Replies)
Discussion started by: mehrdad68
4 Replies
10. Shell Programming and Scripting
Hi Team,
I have a file named as follows: aaa.tar.gz
Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Discussion started by: kmanivan82
2 Replies
LEARN ABOUT HPUX
vgexport
vgexport(1M) vgexport(1M)
NAME
vgexport - export an LVM volume group and its associated logical volumes
SYNOPSIS
mapfile] outfile] vg_name
mapfile vg_name
DESCRIPTION
Using the format of the first command line of the above, the command can be used to remove a volume group from the system. The volume
group will be removed without modifying the logical volume information found on the physical volumes.
The volume group identified by vg_name is removed from the or file, and the associated device files including the vg_name directory and
file are removed from the system.
The volume group information and data is untouched on the physical volume. These disks can be imported to another system with the command
(see vgimport(1M)).
Scan Option
Using the format of the second command line of the above, the command generates a mapfile that can be copied to other systems that are part
of a high availability cluster (use the option if you do not want to remove the volume group from the system the command is being run from)
and the command (see vgimport(1M)) can be used to recreate the volume group. See also vgchange(1M). The mapfile contains a description of
the volume group and its associated logical volume(s) (if any). The logical volume information found on the physical volumes is not modi-
fied.
Options and Arguments
recognizes the following options and arguments:
vg_name The path name of the volume group.
By default, a file named
is created in the current directory. This file contains a description of the volume group and its associated logical
volume(s) (if any). Use this option to specify a different name for the file, mapfile. This file can be used as
input to (see vgimport(1M)). When used with the option, the volume group specified in the mapfile can be shared with
other systems in the high availability cluster.
Preview the actions to be taken but do not update the
or file or remove the devices file. This option is best used in conjunction with the option.
Print verbose messages
including the names of the physical volumes associated with this volume group.
Scan option. When the option is specified, then the options must also be specified. A mapfile is created that can be used to cre-
ate volume group entries on other systems in the high availability cluster (with the command).
Write the current set of
pv_paths for the volume group to the outfile. The outfile may then be used as the infile for the option. If used
together with the option the volume group is not exported but the list of pv_paths is still written to the outfile.
This may be useful to derive a list of pv_paths for the volume group or to use on another system which is sharing the
volume group and which has an identical configuration.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)).
EXAMPLES
Export the volume group into mapfile The volume group will be removed from the exporting system.
Export the volume group and write the disk names into the file
Create a mapfile to be copied to other systems in a high availability cluster to build the volume group information for the volume group,
Note that the volume group is not removed from the exporting system. The importing systems will create the volume group with the command
using the and options.
SEE ALSO
vgimport(1M), vgscan(1M).
vgexport(1M)