Operating System - HP-UX
1835419 Members
2531 Online
110078 Solutions
New Discussion

Re: Creating new cluster package for a file system

 
Saurabh Rawat
Advisor

Creating new cluster package for a file system

Hi All,

I have to create a files system which should be highly available So I am thinking of creating a package on cluaster(Cluster is already formed). I have disks both sides visible so what steps should I take to create a package for the fS to be higly avalable on both nodes of cluster.

Your responses will be appreciated
Thanks in advance !!!!
Insanity is often the logic of mind overtasked!!!
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: Creating new cluster package for a file system

Follow the steps from the SG documentation - http://docs.hp.com/en/B3936-90100/ch06s01.html

regards,
ivan
Stephen Doud
Honored Contributor

Re: Creating new cluster package for a file system

After insuring the LUN(s) are visible to both servers, create a volume on the LVM VG or VxVM DG. Doing so creates a /dev// and special files for LVM, or VxVM volumes special files. In an LVM situation, the other node is not apprised of this modification, so you should either use mknod to create the special files or vgexport and vgimport the volume group.
Use 'newfs -F vxfs /dev//' or 'newfs -F vxfs /dev/vx/rdsk//'
... to create the file system within the volume.

Create the mount point directory on each cluster node.

Next, you need to reference the volume and file system mount point in the package.

If you are working with legacy packages (A.11.17 or earlier), create a package directory in /etc/cmcluster, and then a package configuration file and a control script. Ex:
# mkdir /etc/cmcluster/pkg2
# cmmakepkg -p /etc/cmcluster/pkg2/pkg2.conf
# cmmakepkg -s /etc/cmcluster/pkg2/pkg2.sh
Edit both files as required to make a package, and in the control script, include a reference for the VG and LV (the LV reference will also reference the mount directory).

If you are working with A.11.18 Serviceguard, next create a modular package to include a file system reference. The full modular package creation command is 'cmmakepkg -v 2 -n '. The config file will reference these two modules:
module_name sg/volume_group
module_version 1
module_name sg/filesystem
module_version 1
Further down in the file will be a line:
#vg
Edit it and add the VG name, ie vg02
Or if using a VxVM DG:
#vxvm_dg
NOTE: If #cvm_dg appears, it is for use with SGeRAC volumes only.

Locate and edit the following parameter declarations:
#fs_name
#fs_directory
#fs_type
#fs_mount_opt
#fs_umount_opt
#fs_fsck_opt

Complete the customization of the legacy or package files, and them cmapplyconf the package configuration file to add the package.

Test the package startup and watch the package log. NOTE: modular package log is saved in /var/adm/cmcluster by default unless otherwise redirected in the configuration file.




Edit the file to include the VG (DG) and volume reference and file system mount point reference
Emil Velez
Honored Contributor

Re: Creating new cluster package for a file system

you could use the cluster file system to provide this functionality.

are you talking about the HA NFS cross mount package ? ServiceGuard has a toolkit for this.
Suraj K Sankari
Honored Contributor

Re: Creating new cluster package for a file system

Hi,

Please find the attached file.

Suraj