Deepees’s Blog

Just another WordPress.com weblog

HP-UX adding a disk to an MC Serviceguard cluster volumegroup

Posted by deepees on February 18, 2009

ADDING NEW DISK TO VG in a Cluster          – existing cluster

                                                           

1.         Stop Application                                    ./usr/local/bin/<shutdown script>                                                                       

            Stop Package                           cmhaltpkg  –v   _                      .pkg                                                                 

 

2.         Remove VG from Cluster           vgchange  –c n /dev/                 _                                                                     

 

3.         Activate VG                              vgchange  –a y /dev/vgprd         _                                                                     

 

  * Check on every system to OK these disks are not in use 1st *

 

5.         Prepare Disks                           pvcreate <-f >  /dev/rdsk/c___t___d___                                                

                                                            pvcreate <-f >  /dev/rdsk/c___t___d___                                                

                                                            pvcreate <-f >  /dev/rdsk/c___t___d___                                                

                                                            pvcreate <-f >  /dev/rdsk/c___t___d___                                                

                                                            pvcreate <-f >  /dev/rdsk/c___t___d___                                                

 

6.         Add HD to VG               vgextend /dev/vg_____ /dev/dsk/c___t___d___                                                 

            Add Alt link                                            vgextend /dev/vg____ /dev/dsk/c___t___d___                         

                                                vgextend /dev/vg_____ /dev/dsk/c___t___d___                                                 

            Add Alt link                                            vgextend /dev/vg____ /dev/dsk/c___t___d___                         

                                                vgextend /dev/vg_____ /dev/dsk/c___t___d___                                                 

            Add Alt link                                            vgextend /dev/vg____ /dev/dsk/c___t___d___                         

                                                vgextend /dev/vg_____ /dev/dsk/c___t___d___                                     

            Add Alt link                                            vgextend /dev/vg____ /dev/dsk/c___t___d__                          

                                                vgextend /dev/vg____ /dev/dsk/c___t___d___                                                   

            Add Alt link                                            vgextend /dev/vg____ /dev/dsk/c___t___d___                         

 

7.         Extend LV         lvcreate lvextend  –l _ _ _ _ /dev/vg____/lv____ /c___t___d___                         

                                    lvcreate lvextend  –l _ _ _ _ /dev/vg____/lv____ /c___t___d___                         

                                    lvcreate lvextend  –l _ _ _ _ /dev/vg____/lv____ /c___t___d___                         

                                    lvcreate lvextend  –l _ _ _ _ /dev/vg____/lv____ /c___t___d___                         

                                    lvcreate lvextend  –l _ _ _ _ /dev/vg____/lv____ /c___t___d___                         

 

8.         Extend FS         newfs               extendfs  –F vxfs /dev/vg____/rlv_____                                                 

                                    newfs               extendfs  –F vxfs /dev/vg____/rlv_____                                                 

                                    newfs               extendfs  –F vxfs /dev/vg____/rlv_____                                                 

                                    newfs               extendfs  –F vxfs /dev/vg____/rlv_____                                                 

                                    newfs               extendfs  –F vxfs /dev/vg____/rlv_____                                                 

 

9.         Check your work:                      vgdisplay  –v /dev/vg____ | more                                                                      

                                                            lvdisplay  –v /dev/vg____/lv_____ | more                                                           

 

10.       Export                          vgexport  –pvs  –m /etc/lvmconf /vg                   .map  /dev/vg                                       

                       

11.       Copy to other node(s)                rcp /etc/lvmconf/vg                    .map                 :/etc/lvmconf                                                    

12.       On all the other nodes:  Note minor #:   /dev/vg_________/group   0x____0000                             

            Export old vg info                      vgexport /dev/vg                                                                                              

            Recreate old vggroup dir            mkdir  /dev/vg______                                                                           

            Create group file new                mknod /dev/vg_______/group c 64 0x_____0000                                       

.           Import On Other Node **           vgimport  –vs  –m /etc/lvmconf/vg                      .map  /dev/vg                                       

           

13.       Confirm the package configuration file </etc/cmcluster/’node’/’pkg’> is same for each pkg

            all nodes.                                                                                                                                             

 

14.       De-Activate VG             vgchange  –a n /dev/vg______                                                             

 

15.       Activate Cluster Control vgchange  –c y /dev/vg______                                                              

 

16.       Restart package                        cmrunpkg  –v  –n __________  ________.pkg                                      

                                                                                                <host>         < pkg>

 

17.       Double check your work   bdf      

2 Responses to “HP-UX adding a disk to an MC Serviceguard cluster volumegroup”

  1. Rahul said

    Very Good link…..

  2. yeah, ur notes are so useful..but for hp ux 11.31 i got to say its /dev/disk/diskXX instead of cXtXdXsX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: