Operating System - HP-UX
1846590 Members
2171 Online
110256 Solutions
New Discussion

11.11 upgrade, VG00 need to be imported?

 
SOLVED
Go to solution
Vishu
Trusted Contributor

11.11 upgrade, VG00 need to be imported?

Hi,

I have made a cold backup of HP-UX 11.11 on the server, previously having HP-UX 11.00. i installed it on a new disk. now i want to copy some data from my previous VG00 FS to current VG00 FS.

but currenlty i dont have my previous VG00 active as my server booted from current VG00. So,

1) do i need to import that VG with the new name and then mount FS?
2) if it is so, then after importing can i able to boot my server from the previous disks, if in any case i may required to reboot my server from previous disks.

please suggest on this.
16 REPLIES 16
Steven E. Protter
Exalted Contributor
Solution

Re: 11.11 upgrade, VG00 need to be imported?

Shalom,

If you vgexport vg00 under 11.00 prior to this process, or boot 11.00 and do it now.

AND

Install the new OS on a different disk.

You will be able to import the volume group and pull data off of it. This will not effect your ability to boot off it later, unless you mess something up.

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
Vishu
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

first of all,
there is a typo in my first post, I have done cold-install for upgrade(not cold-backup).

my doubt now,
if i boot my server from 11.00 and then vgexport vg00 in LVM maintenance mode, and then import it in 11.11, then can i be able to boot again 11.00 from those disks. or do i have to again perform vgexport in 11.11 and import again on 11.00 in maintenance mode.
Torsten.
Acclaimed Contributor

Re: 11.11 upgrade, VG00 need to be imported?

It's not clear.

You did an upgrade on a new disk? How?

You did a cold backup of the old?

Where is this backup now?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vishu
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

well, the scenario is like

i have to upgrade from HP-UX 11.00 to 11.11. so, i did a cold-install on a spare disk on same server.

Now i want to copy some of the data from my old VG00 FS to new VG00 FS. So, need procedure to do that. i dont have any backup of this server. but i have all disks, having data, working fine on that server
Torsten.
Acclaimed Contributor

Re: 11.11 upgrade, VG00 need to be imported?

So just vgimport the previous vg00, but with a different vg number.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vishu
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

thanks Torsten.

but my doubt is can i able to boot from my old disk after i do vgimport on those disk to a newvg.

OR

do i have to again vgexport it on hpux 11.11 and then try booting from it.
Patrick Wallek
Honored Contributor

Re: 11.11 upgrade, VG00 need to be imported?

>>can i able to boot from my old disk after i do vgimport

Yes, you can.

When rebooting the server you will need to interrupt to boot and then select the disk you want to boot from.

You could set your 11.11 disk as a PRIMARY boot device and the 11.0 disk as a ALTERNATE boot device.

Then, after interrupting the boot you can do a 'bo alt' to boot 11.0.

Then when you want to boot back to HP-UX 11.11, you can just reboot the server and let it boot since the 11.11 disk is the primary boot device.
Torsten.
Acclaimed Contributor

Re: 11.11 upgrade, VG00 need to be imported?

While importing the old VG you don't change anything on this disk. You only import the VG configuration into your new system. This is the reason why you can still boot from the old disk later.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
SoorajCleris
Honored Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Hi Ranju,

"if i boot my server from 11.00 and then vgexport vg00 in LVM maintenance mode, and then import it in 11.11, "


I think you have confusion here. You dont really required to export the VG from old OS to import it.

Just boot the 11.11 OS and import with the disk path ( 11.00 boot disk).
Only problem is, you will get the lvnames general like lvol1,lovl2 ( if you have anything different also).

Then mount the LV manually from which one you want to take data.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Vishu
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Thanks everyone for replying,

one more thing, will it work on my new OS if i simply copy following files from my previous OS FS to new OS FS.

1) /home (complete directory)
2) /etc/passwd
3) /etc/hosts
4) /etc/group
5) /etc/resolv.conf
6) /etc/nsswitch.conf

and what other files i can copy to make my new system config more like my previous one to save my time.

Also, my previous OS(11.00) was having required patches. So, how would i know what patches required to be installed on my new OS(11.11).

your responses will be highly appreciated. Thanks for having patience with me.
Steven E. Protter
Exalted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Please see my inline replies:

Thanks everyone for replying,

1) /home (complete directory)
This should work.
2) /etc/passwd
I would not do this. Not every user is needed. There are application users that should not be migrated. You need a more granular approach.
3) /etc/hosts
This should work, but keep a backup in case things are not working after the copy.
4) /etc/group
This might work, but you need to look and see which entries not to migrate.
5) /etc/resolv.conf
This should work
6) /etc/nsswitch.conf
This should work, but you may do better taking one of the templates in /etc

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
Torsten.
Acclaimed Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Take care about ownership of files! I would tar /home and untar it on the new system.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vishu
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Thanks!!!It cleared up a lot of doubts out of me.

Finally, what about the patches, how do I know what patches are to be installed in my new upgraded OS.

I know i am taking a lot time of yours, but i just wanna make sure that things should go well.
Torsten.
Acclaimed Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Just get them all and install:

http://www13.itrc.hp.com/service/patch/releasePage.do?BC=main|releaseIndexPage|&releaseId=0906-11.11

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vishu
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

thanks all.

closing the thread now. Really appreciate the responses.
Tor-Arne Nostdal
Trusted Contributor

Re: 11.11 upgrade, VG00 need to be imported?

Just as a small p.s. ;)

If you had an ignite image you could pick out single files from this using tar.

This is a good option in case you don't have a spare disk for install - and have 'forgotten' to copy (into f.ex. a zipped tar-ball) your files before you started... which always would be the simplest way ;)

/2r
I'm trying to become President of the state I'm in...