Operating System - HP-UX
1833796 Members
4992 Online
110063 Solutions
New Discussion

Re: Mounting secure a HDD

 
SOLVED
Go to solution
Stefan Savu
New Member

Mounting secure a HDD

Hello. I have a problem. I had a HDD mounted on HP-UX B.10.20. This has a vg01. I removed the HDD from the system an put it in another system (B.10.20) where I whant to mount the HDD. The problem is that it tells me that has already a volume group and I could lose data. Can you tell me how can I do it safe ?
Regards,
Stefan
6 REPLIES 6
Shrikant Lavhate
Esteemed Contributor

Re: Mounting secure a HDD

Hi stefan,

You need to do vgexport on previous machine before removing disk and vgimport on new machine to get disk properly available on new machine.
Will it remain a personal, if I broadcast it here!
Pete Randall
Outstanding Contributor

Re: Mounting secure a HDD

mkdir /dev/vgXX
mknod /dev/vgXX/group c64 0xXX0000
vgimport -s /dev/vgXX

where XX is a non-existing volume group number and also a non-used minor number.


Pete

Pete
Robert-Jan Goossens
Honored Contributor
Solution

Re: Mounting secure a HDD

Hi Stefan,

an example.

Use ioscan -fnCdisk to find the correct disk device files, lets say c1t0d0

# mkdir -p /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport -v /dev/vg01 /dev/dsk/c1t0d0
# vgchange -a y /dev/vg01
create mountpoints
# mkdir /new_mount_point
# mount /dev/vg01/lvol1 /new_mount_point
same for other lvols.
add them to the /etc/fstab.

Regards,
Robert-Jan
Stefan Savu
New Member

Re: Mounting secure a HDD

Hi, I have another problem now:

vgchange -a y /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c3t0d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c3t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Couldn't query the list of physical volumes.
vgchange: Couldn't activate volume group "/dev/vg01":
Quorum not present, or some physical volume(s) are missing.

What can I do next ?
Robert-Jan Goossens
Honored Contributor

Re: Mounting secure a HDD

please post the output of the vgdisplay -v command.
Stefan Savu
New Member

Re: Mounting secure a HDD

Hello!
For the system HDD - vg00 the display is correct. For vg01 I get the following:

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".

Regards,
Stefan