Sponsored Content
Full Discussion: Reuse disk from other HP-UX
Operating Systems HP-UX Reuse disk from other HP-UX Post 302135446 by porter on Monday 10th of September 2007 12:01:40 AM
Old 09-10-2007
Do you know the name of the original volume group?

Did you do a vgexport on the original system?

Quote:
To move the database: a.Shut down the database. Making a backup copy is highly recommended. b.For a file system-based database, unmount the file systems using the umount command. c.Deactivate the volume groups using the vgchange command. d.Create a map file which will facilitate moving the volume groups to the HP Integrity server by using the vgexport command. Use the -p (preview) option to avoid expunging the volume group from the HP 9000 server (to allow for backtracking if necessary). HP also recommends using the -s (shared) option; it was designed to simplify the process of moving volume groups between the nodes of a clustered system, but is also available for non-clustered systems. The following is an example of using vgexport to create a map file named mapfilefor the volume group vgORA: vgexport -p -m mapfile -s /dev/vgORA e.Copy the map file to the HP Integrity (where it will be used by a vgimport command to recreate the volume group). f.Provide the HP Integrity access to the disks containing the database. This could require physically re-cabling the disks from the HP 9000 to the HP Integrity. You can also accomplish this by reconfiguring your SAN, or in the case of a disk array, reconfiguring the LUNs to be visible to the HP Integrity. On the HP Integrity, perform an ioscan and then an insf to initiate configuration of the newly added disks or LUNs. g.Import the volume groups using the map files, and the volume group directories and group files you created earlier. For example, use: vgimport -m mapfile -s /dev/vgORA h.Change the volume group special files to be owned by the same owner and group as on the HP 9000 server, and ensure correct permissions: chown -R oracle:dba /dev/vgracchmod 644 /dev/vgrac/* i.Activate the volume groups using vgchange -a y. For a clustered system, you will need to take the extra steps to change the volumegroups to permit sharing (using vgchange -c y -S y) and then activate the volumegroup in shared mode (using vgchange -a s). j.If your database is implemented using file systems, mount the logical volumes contained in the volume groups you just activated (for example, mount /dev/vgORA/lv01 /ora01).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to reuse same major number

Hi, I am working on device drivers.Once If register a device i'll get one major no. If i unregister and register again i'll get a different major no.What i have to do to get same major no. each time :( (0 Replies)
Discussion started by: Agnello
0 Replies

2. UNIX for Advanced & Expert Users

Password reuse utility

Does anyone know of a password reuse utility for Solaris 7 or 8? Security people are telling me that I need one. Thanks (1 Reply)
Discussion started by: rtoba
1 Replies

3. Linux

suggest some ideas for reuse

hi can you all help me to develop anything in unix that could be reused. any module or application could be helpful (0 Replies)
Discussion started by: infyanurag
0 Replies

4. Shell Programming and Scripting

Reuse Variable..

Hi. I have these two variables: My objective here is to reuse that $file_name variable again and again by resetting the $cv value. for example, if i reissue the cv="$(print 'CV01')" command, thus $file_name is now should be "CP99978_CV01.TXT", not "CP99978_CV01.TXT" anymore. How I'm... (7 Replies)
Discussion started by: aimy
7 Replies

5. UNIX for Dummies Questions & Answers

Reuse argument from current command?

I'm currently using zsh. Sometimes I find myself wishing to reuse an argument from earlier in the command. I know that I can, of course, assign an argument to a variable ahead of time, and then easily use that variable more than once. I know about the ability to reuse arguments from previous... (0 Replies)
Discussion started by: marshaul
0 Replies

6. Shell Programming and Scripting

How to declare variables once and reuse them in other scripts?

Hello everyone. I'm trying to create a conf file with variables that my other scripts will use. I have several scripts that use the same variables, and since I don't know how to read them from an external file, i define them in each script (and then if i want to change one's value i need to... (4 Replies)
Discussion started by: moshe88
4 Replies

7. Emergency UNIX and Linux Support

Reuse a LUN

I have a LUN (From HP-Storage VA7110) that is claimed on 2 servers, but is in used in one of the VG on Server-1 . Now I want to shut Server-1 and re-use that LUN on server-2 . Server-1 Path-1 : /dev/rdsk/c4t0d1 Path-2: /dev/rdsk/c6t0d1 Server-2 Path-1: /dev/rdsk/c5t0d1 Path-2:... (8 Replies)
Discussion started by: Shirishlnx
8 Replies

8. Shell Programming and Scripting

How to reuse values in Shell script

Hi I am trying to write a shell script and wanted to re-use the value which I have entered already. Here is the sample code. echo "Enter Value : \c" ; read val echo "Enter number: $val\c" ; read num Now I wanted to change the value as showing in 2nd Line or if I will use enter, it... (15 Replies)
Discussion started by: SushilAnand
15 Replies

9. Solaris

Reuse old/configured server for new purpose problems.

Greetings. First of all I consider myself a newbe in Linux, that's why I'm seeking your help so please be patient! I was given an old server (Solaris) that has Oracle (10.2.0) installed with a few databases. I'm supposed to reuse this server for this new application which will process data... (11 Replies)
Discussion started by: RedSpyder
11 Replies

10. Programming

Reuse format strings

I have a collection of format strings for sscanf, such as "%02d%*1s%02d%*1s%02d" to read in certain formatted strings, such as dates, times, etc. I wonder if there is a way to use them in printf without some changes? The example above would not work - at least I can't think of any ways to... (4 Replies)
Discussion started by: migurus
4 Replies
Net::LDAPI(3)						User Contributed Perl Documentation					     Net::LDAPI(3)

NAME
Net::LDAPI - use LDAP over a UNIX domain socket SYNOPSIS
use Net::LDAPI; $ldapi = Net::LDAPI->new('/var/run/ldapi'); # alternate way use Net::LDAP; $ldapi = Net::LDAP->new('ldapi://'); DESCRIPTION
Communicate using the LDAP protocol to a directory server using a UNIX domain socket. This mechanism is non-standard, UNIX-specific and not widely supported. All the normal "Net::LDAP" methods can be used with a "Net::LDAPI" object; see Net::LDAP for details. CONSTRUCTOR
new ( [SOCKPATH] ) Create a new connection. SOCKPATH can optionally be specified, to specify the location of the UNIX domain socket to connect to. If SOCKPATH is not given, the environment variable "LDAPI_SOCK" is evaluated, and if that does not exist, the value "/var/run/ldapi" is used. See "new" in Net::LDAP for further details. SEE ALSO
Net::LDAP, IO::Socket::UNIX BUGS
None yet. AUTHOR
Derrik Pates <dpates@dsdk12.net> COPYRIGHT
Copyright (c) 2003-2004, Derrik Pates and Graham Barr. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-06-07 Net::LDAPI(3)
All times are GMT -4. The time now is 12:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy