Configuration of VCS(SFHA) for NFS
# /opt/VRTS/install/installsf -configure
Enter unice cluster name
Presss yes
Enter Virtual IP details
See the virtual ip deyails and type y to confirm
create vcs user type y to create new user
verify the user details if correct type y to confirm
If you want to configure SNMP notification type y if not type n
Installation starting
after Installation complated restart the servers.
1. Initialize disks
# vxdisk -e list or vxdisk -eo alldgs list (check on both)
bringing the disk into veritas control
[root@vcsnode1 ~]# /etc/vx/bin/vxdisksetup -i disk_0
[root@vcsnode1 ~]# /etc/vx/bin/vxdisksetup -i disk_1
[root@vcsnode1 ~]# /etc/vx/bin/vxdisksetup -i disk_2
# vxdisk -e list (output should be same on both node)
2. Create disk group nfsdg01
# vxdg -o coordinator=on init nfsdg01 disk_0
# vxdg -g vcsgp set coordinator=off
# vxdg -g vcsgp adddisk disk_1
# vxdg -g vcsgp adddisk disk_2
# vxdg -g vcsdp set coordinator=on
Error
ERROR V-5-1-12061 adddisk not permitted on coordinator dg: vcsgp
Solution
vxdg -g vcsgp set coordinator=off
3. Checking the connectivity policy on a shared disk group
[root@vcsnode1 ~]# vxdg list vcsgp
Create logical volume
[root@vcsnode1 ~]# vxassist -g vcsdg make vcsvol01 2G
[root@vcsnode1 ~]# vxprint
[root@vcsnode1 ~]# vxprint –l <volume_name> #To print details of volume which you create
Create file system
[root@vcsnode1 ~]# mkfs.vxfs /dev/vx/dsk/vcsgp/vcsvol01
Make local directory on both nodes vcsnide1 & vcsnode2
[root@vcsnode1 ~]# mkdir -p /vcsshare01 /vcsshare02
[root@vcsnode1 ~]# mkdir /vcslock
[root@vcsnode1 ~]# chomd 777 /vcsshare01
[root@vcsnode1 ~]# chomd 777 /vcsshare01
root@vcsnode1 ~]# chomd 777 /vcslock
[root@vcsnode1 ~]# mount -t vxfs /dev/vx/dsk/vcsgp/vcsvol01 /vcsshare01
[root@vcsnode1 ~]# mount -t vxfs /dev/vx/dsk/vcsgp/vcsvol02 /vcsshare02
[root@vcsnode1 ~]# df –h #check status
Unmount
[root@vcsnode1 ~]# umount /vcsshare01
[root@vcsnode1 ~]# umount /vcsshare02
Install the nfs server on both nodes
Note: no need to start the NFS service veritas will handle it. Stop the NFS service on OS level
No comments:
Post a Comment