- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: moving PVs between systems
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2002 09:37 AM
07-05-2002 09:37 AM
moving PVs between systems
1) i know about Ignite ...do not want to use it for the stake of learning something here about LVM and L2000s
2) i tried the following and it did not work
a) lvreduce mirrors off of B0 and B1 on frog
b) vgreduce the 2 disks and remove the drives physically from frog ...frog online whole time
c) added new drives from toad into frog and rebuilt the mirrors on frog ...frog 100% again
d) put B0 and B1 in their correct slots on toad and booted to "hpux -lm" on B0 OK
e) could not activate vg00 ...so neve got to the point of changing netconf and building the mirrors on A0 and A1
any suggestions would be greatly appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2002 10:08 AM
07-05-2002 10:08 AM
Re: moving PVs between systems
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2002 10:23 AM
07-05-2002 10:23 AM
Re: moving PVs between systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2002 10:30 AM
07-05-2002 10:30 AM
Re: moving PVs between systems
I suggest that you alter the boot string to override LVM quorum. e.g.
mkboot -a "hpux -lq (;0)/stand/vmunix /dev/rdsk/c1t6d0" using your correct raw disk device.
--------------------------------------------
Now lvreduce/vgreduce your mirrors so that only the original's remain. We are now going to make a rawdisk copy of your boot disks. This should be done while the system is rather quiescent. Because we are copying active filesystems, you will not get an absolutely clean system but the system will automatically run fsck's and your clone will be good to go. I've never had a 'lifeboat' to fail. I'm attaching a 'copy_boot.sh' script. Make sure that you set the SRC and DEST entries to match your system. The first defined SRC entry is copied to the first defined DEST entry and likewise for any addition entries.
I actually run this script on all my boxes during the weekend, in addition to mirroring.
The 'lifeboat' can protect you from two things that mirrors alone cannot: 1) really bad patches 2) your own stupidity.
------------------------------------------
Be aware that because this is a clone, you are instantly going to have duplicate IP's on your network.
All you have to do is run the copy_boot.sh script and then move the copied disks into the original boot slots on the clone machine and then boot. Again, expect the cloned box to fsck the first time you boot but subsequent boots will be perfectly normal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 10:15 AM
07-29-2002 10:15 AM
Re: moving PVs between systems
Clay, i just want to let you know that i used "dd" to make toad. your "lifeboat" approach worked fine. i knew that would work (and had to use it to get toad to my users quickly), but really wanted to try a pure LVM approach. think i am doing something wrong on frog when removing the disks that prevents me from making toad from those removed PVs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 01:32 PM
07-29-2002 01:32 PM
Re: moving PVs between systems
# vgchange -a y -q n /dev/vg00
Have you also try recreating the LVM device file and use vgimport before activating it ?
Side note ..another technique that has worked quite well for me is manually duplicating the root disk (without using MirrorUX). You might want to try that if you have the time.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x37204b3ef09fd611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 02:27 PM
07-29-2002 02:27 PM
Re: moving PVs between systems
ISL> hpux -lm -lq
unknown:[/]# vgchange -a y /dev/vg00
still cannot activate vg00
unknown:[/]# mount -p
all 7 LVs that are to be mounted appear to have been mounted ...strange
unknown:[/]# ls -al /usr/bin/vi
/usr/bin/vi not found
unknown:[/]# mount /usr
mount - Cannot open /dev/vg00/lvol7: No such device or address
unknown:[/]# mount -v
only /dev/root on /
unknown:[/]# vgchange -a y -q n /dev/vg00
still cannot activate vg00
unknown:[/]# mount -p
only /dev/root on / ...changed!?!
unknown:[/]# vgimport -p -v /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t2d0
says /dev/vg00 already exists in /etc/lvmtab
unknown:[/]# ioscan -fnkC disk //OK
unknown:[/]# mv /etc/lvmtab /etc/lvmtab.last
unknown:[/]# vgscan -v
sees that c1t0d0 and c2t2d0 belong to an unknown VG
sees that c1t2d0 and c2t0d0 belong to an unknown VG
makes an empty /etc/lvmtab
unknown:[/]# vgimport -p -v /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t2d0
looked like it may work
unknown:[/]# vgimport -v /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t2d0
unknown:[/]# vgchange -a y -q n /dev/vg00
still cannot activate vg00
unknown:[/]# ls -al /etc/lvmconf/vg00*
/etc/lvmconf/vg00.conf had 0 bytes
/etc/lvmconf/vg00.conf.old
unknown:[/]# vgcfgrestore -f /etc/lvmconf/vg00.conf.old -l
looks good ...yet has all 4 PVs
unknown:[/]# vgcfgrestore -f /etc/lvmconf/vg00.conf.old /dev/rdsk/c1t0d0 //OK
unknown:[/]# vgcfgrestore -f /etc/lvmconf/vg00.conf.old /dev/rdsk/c2t2d0 //OK
unknown:[/]# vgchange -a y -q n /dev/vg00
activated but complained about re-synchronizing stale partitions ...OK, since no mirrors yet
NEVER could get any fsck's to work ...couldn't open the LVs even though vgdisplay works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 04:39 AM
07-30-2002 04:39 AM
Re: moving PVs between systems
Also, keep in mind that all the VG/LVM info is kept on the disks on a special area and (created with the pvcreate) command. When you execute the vgscan or vgimport command all it does is place an entry in the lvmtab file, mostly for the vgchange command, and create the /dev/vg.../lvol1,2... in order to access the volumes. Therefore, when you execute the vgscan command it does not 'see' any volume groups on the VG label of the disks since you executed the lvreduce/vgreduce command on frog that cleared the disks from any volume group.
Hope this helps.
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 04:46 AM
07-30-2002 04:46 AM
Re: moving PVs between systems
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 04:49 AM
07-30-2002 04:49 AM
Re: moving PVs between systems
George