Reuse disk from other HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Reuse disk from other HP-UX
# 1  
Old 09-09-2007
Reuse disk from other HP-UX

Hello, I have 2 hp-ux both running 11.23, I have move one of a harddisk from "UNIX A" to "UNIX B", so how can I read back the data in "UNIX B"?

Thanks
# 2  
Old 09-09-2007
I hope they were isolated volumes and you did not have a virtual file system spanning onto the 2nd disk you have just removed.

What file system format do you have on the disk?
# 3  
Old 09-10-2007
Thanks for reply, the file system is VxFS, It only have one VG with 3 mount point on this disk and this VG is only on this disk
# 4  
Old 09-10-2007
Does the new disk device appear in the dmesg output?

Have you tried using "SAM" to get the OS to recognize the volume group?
# 5  
Old 09-10-2007
I can see the disk in ioscan -fnC disk.
In SAM, it only display this disk with unused status.
How to use SAM to get the OS to recognize the volume group?
Thanks
# 6  
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).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question