Sei sulla pagina 1di 4

vxdg -g diskgroup adddisk disk_name=device_name disk_name specifies the disk media name of the VxVM disk.

. device_name specifies the name of the device in the form c#t#d# disk group configuration is copied onto the disk, and the disk is stamped with the system host ID.

5. Create a service group: # haconf -makerw # hagrp -add newgroup # hagrp -modify newgroup SystemList <sysA> 0 <sysB> 1 # hagrp -modify newgroup AutoStartList <sysA> 6. Create a disk group resource and modify its attributes: # hares -add data_dg DiskGroup newgroup # hares -modify data_dg DiskGroup datadg 7. Create a mount resource and modify its attributes: # hares -add mnt Mount newgroup # hares -modify mnt BlockDevice /dev/vx/dsk/datadg/vol01

# hares -modify mnt FSType vxfs # hares -modify mnt MountPoint /vol01 8. Link the mount resource to the disk group resource: # hares -link mnt data_dg 9. Enable the resources and close the configuration: # hagrp -enableresources newgroup # haconf -dump -makero Method 2 - Editing /etc/VRTSvcs/conf/config/main.cf # hastop -all # cd /etc/VRTSvcs/conf/config # haconf -makerw # vi main.cf Add the following line to end of this file: *****************************************START************************************************** *DONOT ADD THIS LINE group newgroup ( SystemList = { sysA =0, sysB=1} AutoStartList = { sysA } ) DiskGroup data_dg ( DiskGroup = datadg ) Mount mnt ( MountPoint = "/vol01" BlockDevice = " /dev/vx/dsk/datadg/vol01" FSType = vxfs ) mnt requires data_dg *****************************************END***************************************************D ONOT ADD THIS LINE # haconf -dump -makero # hastart -local Check status of the new service group

####################################### ##############
1 Add the resource to the service group using either the GUI or CLI. hares -add nameVol1 Volume nameSG1 2 Set the resource to not critical. hares -modify nameVol1 Critical 0 3 Set the required attributes for this resource, and any optional attributes, if

needed.
hares -modify nameVol1 Volume nameVol1 hares -modify nameVol1 DiskGroup nameDG1 4 Enable the resource. hares -modify nameVol1 Enabled 1 5 Bring the resource online on your system. hares -online nameVol1 -sys your_sys 6 Verify that the resource is online in VCS and at the operating system level. hares -display nameVol1 vxprint -g nameDG1 7 Save the cluster configuration and view the configuration file to verify your

changes.
haconf -dump view /etc/VRTSvcs/conf/config/main.cf

1 Add the resource to the service group using either the GUI or CLI. hares -add nameMount1 Mount nameSG1 2 Set the resource to not critical. hares -modify nameMount1 Critical 0 3 Set the required attributes for this resource, and any optional attributes, if

needed.
hares -modify nameMount1 MountPoint /name1 hares -modify nameMount1 BlockDevice /dev/vx/dsk/nameDG1/nameVol1 hares -modify nameMount1 FSType vxfs hares -modify nameMount1 FsckOpt %-y 4 Enable the resource. hares -modify nameMount1 Enabled 1 5 Bring the resource online on your system. hares -online nameMount1 -sys your_sys 6 Verify that the resource is online in VCS and at the operating system level. hares -display nameMount1 mount 7 Save the cluster configuration and view the configuration file to verify your

changes.
haconf -dump view /etc/VRTSvcs/conf/config/main.cf

Potrebbero piacerti anche