Operating System - HP-UX
1826384 Members
4277 Online
109692 Solutions
New Discussion

Help mounting a drive already containing data

 
Rick Frazier_1
Occasional Advisor

Help mounting a drive already containing data

HPUX 11.i

We had the operating system drive crash. Installed a new drive and installed 11.i. How do we mount the existing drives on the system that already contain data without deleting them??
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: Help mounting a drive already containing data

Assuming they were separate Volume Groups, you would use vgimport:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -m /tmp/vg01map /dev/vg01
vgchange -a y /dev/vg01

If you don't have a map file, it's not necessary unless you did not follow standard lvol naming conventions. If the -s (scan) option doesn't work for some reason, you will have to explicitly identify the physical volumes that belong to this VG.


Pete

Pete
Michael Steele_2
Honored Contributor

Re: Help mounting a drive already containing data

Wait a minute. Was this a reinstallation of 11.i or an upgrade?

# /etc/vgcfgrestore -n vg /dev/dsk/????
# vgsync vg
# vgchange -a y vg

Then upgrade.

Was this a bad root disk? Did you use an ignite tape or new install?

Need your EXACT procedure/steps.
Support Fatherhood - Stop Family Law
Mustafa Gulercan
Respected Contributor

Re: Help mounting a drive already containing data

hi;
to find the exist minor number try;
#ll /dev/vg*/group

note that :to avoid deleting data,DO NOT use pvcreate or vgcreate command.

Rick Frazier_1
Occasional Advisor

Re: Help mounting a drive already containing data

Same on me . . .didn't have ignite loaded. This is a hard drive replacement with 11.1 installed from scratch.
Rick Frazier_1
Occasional Advisor

Re: Help mounting a drive already containing data

Shame on me . . .didn't have ignite loaded. This is a hard drive replacement with 11.1 installed from scratch.
Michael Steele_2
Honored Contributor

Re: Help mounting a drive already containing data

All is not lost mon ami. Pull out your latest data backup tapes. Create a temp. file system and mount point and restore into this. Or, if your comfortable with overwriting your new data, restore over it.
Support Fatherhood - Stop Family Law
Pete Randall
Outstanding Contributor

Re: Help mounting a drive already containing data

Rick,

Here is an excellent document on recovering from disk failures:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf


Pete

Pete
Rick Frazier_1
Occasional Advisor

Re: Help mounting a drive already containing data

So . . . there is no way to access the drives without mounting them (which will delete them), then restoring them?

The problem with the backup of data is that we will lose alomst a whole day of input. Is this our only option??
Rick Frazier_1
Occasional Advisor

Re: Help mounting a drive already containing data

Thanks eveyone for quick responce . .

The only disk that crashed was the operating system drive. All others are ok. Just need to figure out how to mount the existing volumes and leave the data intact.

I will wait for further responce before I attempt anything. If at all possible, need to retain data on these volumes without deleting them.
Mustafa Gulercan
Respected Contributor

Re: Help mounting a drive already containing data

Rick;
did you read Pete's document.It is a certain answer to your case.i extract a page which include a flowchart from this document.Pls follow those steps.

regards;
mustafa
Rick Frazier_1
Occasional Advisor

Re: Help mounting a drive already containing data

Thanks . . .you guys are great! Was able to mount the existing volumes without losing a thing. Kudos to all!

One more thing . . . I want to make sure and get ignite installed on this server. Is this on the installation disks, or do I need to download it from HP?

Thanks again in advance!!!
Mustafa Gulercan
Respected Contributor

Re: Help mounting a drive already containing data

check if ignite is installed or not by following;
#swlist -l fileset |grep -i ignite

if not dowload it from;
https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=IGNITEUXB


PS:Do not forget the submit points to whom wanna help you pls.read the forım ethics
regards;
mustafa