Operating System - HP-UX
1827672 Members
3354 Online
109967 Solutions
New Discussion

Re: Multiple Versions of HP-UX and seperate disks

 
Scott McDade
Frequent Advisor

Multiple Versions of HP-UX and seperate disks

I currently have a system that has 2 physical hard disks. One disk is configured with HPUX 10.2 which is SCSI6(c3t6d0) and the other is configured with 11i on SCSI5(c3t5d0). I would like to transfer files from one disk to the other and keep both configurations in tact.

What I have attempted to do is while booted in 11i environment I have tried mounting the 10.2 disk. I had created a /SD_DISK6 directory with root privi and I received and error that the ???device was not recognized???. Here is the command syntax I followed.

$ mount /dev/dsk/c3t6d0 /SD_DISK6

Can anyone help me with this or tell me if there is a better way of doing this?
Keep it Simple!~
5 REPLIES 5
Michael Tully
Honored Contributor

Re: Multiple Versions of HP-UX and seperate disks

Hi Scott,

If the second disk is supposed to be part
of it's own /dev/vg00 volume group I doubt
whether you can actually mount it possibly
due to the characteristics that have been
placed on the disk, LIF, different LVM and
not being part of the current lvmtab. Not
that I think this will work either, have you
tried to do this the other way around by
booting off the 11i system and trying to mount
the 10.20 disk?

-Michael
Anyone for a Mutiny ?
Roger Baptiste
Honored Contributor

Re: Multiple Versions of HP-UX and seperate disks

hi,

if the 10.20 disk is a Volumegroup disk,
then you cannot mount it like a physical disk.
Instead, try this:

#boot with 10.20 disk
#vgexport -p -f /tmp/vg1020.file -m /tmp/vg1020.map /dev/vg00

#copy the vg1020.* files to a tape or another
system using ftp.

#boot with 11.x disk
#mkdir /dev/vg1020
#mknod /dev/vg1020/group c 64 0x??0000
#copy the map file into the system
#vgimport -v -m /tmp/vg1020.map /dev/vg1020
#now you have the 1020 lv's under volumegroup vg1020.
#mount the LV's you need on temporary mountpoints
eg: mount /dev/vg1020/lvol3 /1020root

#now you can copy the files you need.

Once done, blow away the vg1020 (vgexport /dev/vg1020).

HTH
raj
Take it easy.
Ravi_8
Honored Contributor

Re: Multiple Versions of HP-UX and seperate disks

Hi,
since both HDD have the OS their vg's will be vg00. so u can't import one disk to another.
To do your task make the backup of files to be copied, boot in another version of hp-ux extract from backup.
never give up
Carlos Fernandez Riera
Honored Contributor

Re: Multiple Versions of HP-UX and seperate disks

Rajman's procedure must run correctly.

The trick is vgimport.
unsupported
Santosh Nair_1
Honored Contributor

Re: Multiple Versions of HP-UX and seperate disks

Hi,

You should be able to import the 10.20 disk into a different VG under 11.0, i.e.:

mkdir /dev/VGNAME
mknod /dev/VGNAME/group c 64 0x0nn0000
vgimport /dev/VGNAME /dev/dsk/c3t6d0
vgchange /dev/VGNAME

then mount the LVs on that VG:

mkdir /1020root
mount /dev/VGNAME/lvol3 /1020root
etc...


Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans