Operating System - HP-UX
1758700 Members
2211 Online
108874 Solutions
New Discussion юеВ

Re: Adding Secondary Harddrive in HPUX that already has data

 
SOLVED
Go to solution
Curt Donaldson
New Member

Adding Secondary Harddrive in HPUX that already has data

So here is the problem. I have a HP C3700 with 2 disks in it. The bootable disk and the data disk. The bootable disk totally died on me this week. my delema is how can I can the data off of the secondary disk. I have a spare disk that I have booted the machine up with but the secondary disk (data disk) is unused in SAM?? How can I mount it

Thanks

Curt
8 REPLIES 8
Court Campbell
Honored Contributor

Re: Adding Secondary Harddrive in HPUX that already has data

# mkdir /dev/vgXX
# mknod /dev/vgXX/group c 64 0xYY0000
# vgimport vgXX /dev/dsk/cXtYdZ

If you need more of an explanation please let me know. But the disk in the vgimport command should be the device file for the secondary disk. It should read the lvm info from the disk and create your lvol files. Then you can mount them.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: Adding Secondary Harddrive in HPUX that already has data

Shalom,

You don't mount a disk, you mount a logical volume as a filesystem.

You may be able to vgimport the disk into a volume group if the second disk was in its own volume group.

More likely you will need to use dd to read all the data off that disk into a tape or NFS share.

Then you'll at least have the data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Adding Secondary Harddrive in HPUX that already has data

I'm hoping that the second disk was in a separate VG from your bootable disk. If so, then it should be a relatively simple matter to vgimport it:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s /dev/vg01
- or -
vgimport /dev/vg01 /dev/dsk/c0t1d0


Pete


Pete
Curt Donaldson
New Member

Re: Adding Secondary Harddrive in HPUX that already has data

Ok thanks for your help so far, this is what I have one. First I am guessing it was setup as a seperate VG but I am not sure as I did not build this machine

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport /dev/vg01 /dev/dsk/c0t1d0

I get this back

vgimport: Physcal volume "/dev/dsk/c0t1d0" is not a block special file

any ideas??

Thanks
Court Campbell
Honored Contributor
Solution

Re: Adding Secondary Harddrive in HPUX that already has data

Is that even the device file for the second drive? run

# ioscan -funC disk

and double check. You may need to run

# insf -e

to create the device file.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Curt Donaldson
New Member

Re: Adding Secondary Harddrive in HPUX that already has data

I may have closed this to fast, I ended up importing the VG whiched imported the lvol's but they are unused. How can I get these mounted. Sorry my UNIX administration is not extensive

Curt
Court Campbell
Honored Contributor

Re: Adding Secondary Harddrive in HPUX that already has data

# mkdir /some_dir
# mount /dev/vg01/lvolX /some_dir

Add lines to /etc/fstab to make them persistent . Unless you want to mount them again after a reboot or power failure.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Curt Donaldson
New Member

Re: Adding Secondary Harddrive in HPUX that already has data

I have installed the old drive I thought was totally crashed but it seem to at least be recognized, just can't boot from it. It seem like there are no VG on it or they have been totally corrupted.

Can someone tell me how to use the dd command to copy everything from this drive to a nfs mount

thanks