- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replace vg00 disk with ignite
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
03-11-2004 06:59 AM
03-11-2004 06:59 AM
Replace vg00 disk with ignite
1) make_tape_recovery of both nodes (vg00 only) while packages are mounted and running on each node (this is a production system)
2) Switch all packages to node A
3) halt node B and replace vg00 disks
4) boot node B from ignite tape, modify size of vg00 logical volumes in interactive mode, and let ignite reinstall the system.
5) repeat steps 2-5 in reverse order
I have reached step 4, but after hitting the GO! button, ignite complained that the contents of the shared vgs would be erased, so I interrupted the process.
Can this be done without affecting the shared vgs? How can I have ignite not see the shared vgs, while keeping all config files related to those vgs on vg00?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 07:15 AM
03-11-2004 07:15 AM
Re: Replace vg00 disk with ignite
How many vgs you have? Where SG resides? On which VG?
If I understand your question correctly, you want to replace the disks in vg00? VG00 is mirrored? right? If yes then you can just switch the package to another node, do cmhaltnode, break the mirror, put big disk, mirror again, then boot from big disk, replace another boot disk in vg and mirror again. Done with one node. Same to the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 07:29 AM
03-11-2004 07:29 AM
Re: Replace vg00 disk with ignite
I would suggest remove the cables to the storage and keep even only the bigger disks. This way you are sure that it is not going to touch your data.
You can very easily import the volume groups back by either preview exporting the volume groups with -s or -f option.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 07:44 AM
03-11-2004 07:44 AM
Re: Replace vg00 disk with ignite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 07:48 AM
03-11-2004 07:48 AM
Re: Replace vg00 disk with ignite
Could you be more specific as to what cables you want disconnected and which commands are you refering to? The vg00 disks are regulare SCSI mounted on the L2000 server. The shared VG disks are in fibre channel cabinet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 08:06 AM
03-11-2004 08:06 AM
Re: Replace vg00 disk with ignite
1. Swtich all packages to another node.
2. Package is active on another node, so shared vgs are active on another node. On another node, do vgexport -pv -s -m /tmp/map.files vgname. Repeat it for all shared vgs.
3. On first node (from where you switched the package)break the mirror, boot and replace disk.
4. Prepare the static copy of root disk. Procedure is at the bottom. (This will take care of large size of disk.)
5. Boot. Now boot from this large disk. Replace another disk and mirror again.
6. Copy all map files for all shared vgs from another node. Do vgimport.
7. Switch package to first node.
8. Follow procedure for another node.
Procedure for preparing staic copy.
Note: This will create an identical copy of the current vg00. The
new volume group needs to as big as vg00. This will also be a static
version of the primary boot disk which could be use in case of
problem.
Note: The following example is using the disk c1t6d0 and the
volume group vg01
1) Initialize the disk and make it bootable
pvcreate -B /dev/rdsk/c1t6d0
Note: the -B parameter tells pvcreate that this will be a bootable
disk.
mkboot /dev/dsk/c1t6d0
mkboot -a "hpux" /dev/rdsk/c1t6d0
2) Create the volume group
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate /dev/vg01 /dev/dsk/c1t6d0
(Use -e option in vgcreate to take care of large size of replaced disk)
3) Find the size of each logical volume in vg00
vgdisplay -v /dev/vg00 | more
look at LV Size (Mbytes) for each logical volume and note it.
Note: this example will use these value:
lvol1 84M
lvol2 256M
lvol3 140M
lvol4 500M
lvol5 64M
lvol6 20M
lvol7 500M
lvol8 500M
Note: The size of the new logical volumes needs to be exactly the
same as the size of the logical volumes on the primary root disk.
4) Create the first 3 logical volumes contiguous (needed by the system)
lvol1:
lvcreate -L 84 -C y -r n /dev/vg01
lvol2:
lvcreate -L 256 -C y -r n /dev/vg01
lvol3:
lvcreate -L 140 -C y -r n /dev/vg01
5) Now create the other logical volumes
lvol4:
lvcreate -L 500 /dev/vg01
lvol5:
lvcreate -L 64 /dev/vg01
lvol6:
lvcreate -L 20 /dev/vg01
lvol7:
lvcreate -L 500 /dev/vg01
lvol8:
lvcreate -L 500 /dev/vg01
6) Copy each logical volume except the swap which is usually lvol2.
dd if=/dev/vg00/rlvol1 of=/dev/vg01/rlvol1 bs=1024k
dd if=/dev/vg00/rlvol3 of=/dev/vg01/rlvol3 bs=1024k
dd if=/dev/vg00/rlvol4 of=/dev/vg01/rlvol4 bs=1024k
dd if=/dev/vg00/rlvol5 of=/dev/vg01/rlvol5 bs=1024k
dd if=/dev/vg00/rlvol6 of=/dev/vg01/rlvol6 bs=1024k
dd if=/dev/vg00/rlvol7 of=/dev/vg01/rlvol7 bs=1024k
dd if=/dev/vg00/rlvol8 of=/dev/vg01/rlvol8 bs=1024k
7) Verify the integrity of all the new volume except swap.
Note: The following lines are base on a system with vxfs
filesystems except for /stand (lvol1) which needs to be hfs.
fsck -F hfs /dev/vg01/rlvol1
fsck -F vxfs /dev/vg01/rlvol3
fsck -F vxfs /dev/vg01/rlvol4
fsck -F vxfs /dev/vg01/rlvol5
fsck -F vxfs /dev/vg01/rlvol6
fsck -F vxfs /dev/vg01/rlvol7
fsck -F vxfs /dev/vg01/rlvol8
8) Now configure the Boot Data Reserved Area (BDRA)
Note: The following commands assume that /stand is lvol1,
swap is lvol2 and / is lvol3
lvlnboot -b /dev/vg01/lvol1 /dev/vg01
lvlnboot -r /dev/vg01/lvol3 /dev/vg01
lvlnboot -s /dev/vg01/lvol2 /dev/vg01
lvlnboot -d /dev/vg01/lvol2 /dev/vg01
9) Modify the fstab file on the new disk.
a) If /tmp_mnt doesn't exist create it
mkdir /tmp_mnt
b) Mount the new root filesystem on /tmp_mnt
mount /dev/vg01/lvol3 /tmp_mnt
c) change to etc directory on the new disk.
cd /tmp/etc
d) Modify all occurence of vg00 in the fstab for vg01
sed "s/vg00/vg01/" fstab > fstab.out
mv fstab fstab.BAK
mv fstab.out fstab
e) Unmount the new root filesystem
cd /
umount /tmp_mnt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 08:08 AM
03-11-2004 08:08 AM
Re: Replace vg00 disk with ignite
#vgexport -p -s -v -m /tmp/vgxx.s.map vgxx
#vgexport -p -v -m /tmp/vgxx.map -f /tmp/vgxx.disk vgxx
The second export command will capture all the disks into vgxx.disk file. That is only if the first option doesn't work or takes a long time.
DO it on all the VGs and copy them back to the restored server. Create directories and group files and import the VGs.
#mkdir /dev/vgxx
#mknod /dev/vgxx/0x0?0000
(get the minor number from the seondary node)
#vgimport -v -s -m /tmp/vgxx.s.map vgxx
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:20 AM
03-12-2004 01:20 AM
Re: Replace vg00 disk with ignite
Thanks for such a detailed procedure. Essentially, what you are doing is:
1)booting on half vg00 with the new disk connected,
2) creating vg01 as a copy of vg00 (one may increase the size of each logical volume)
3) erase all references to vg00 in vg01
4) halt, remove vg00 and insert the second new disk
5) boot from vg01 and mirrior onto the second new disk
Now the system uses vg01 as its boot vg.
The process is lengthy and prone to human error. I am looking for an ignite-based solution which would be more automated and reliable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 03:41 AM
03-12-2004 03:41 AM
Re: Replace vg00 disk with ignite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 04:07 AM
03-12-2004 04:07 AM
Re: Replace vg00 disk with ignite
Ignite is not supposed to touch anything other than vg00 if the tape is created with -x inc_entire=vg00 option. But to be on the safer side, you can disconnect the cables to your external storage and recover the image.
1. Create make_tape_recoveries for both the servers.
2. Move the package to other node and halt node1.
2. Disconnect cables to the external storage. Only disks you have in the system will be bigger disks. This way you are sure your shared VGs as well your original disks are not touched.
3. Once the system is up, reconnect the cables, do 'ioscan' followed by 'insf' and vgimport the VGs. If the device files are changed then you will have to change your lock disk definition in your cluster configuration file and re-apply the configuration. But it doesn't hurt as you will have to take downtime anyway to move the package.
You may be unnecessarily complicating the procedure. Backout is real easy. Put back the old disks and boot.
-Sri