1 / 17

VERITAS Cluster Server Solaris

VERITAS Cluster Server Solaris. Volume Manager and Process Resources. Objectives. After completing this lesson, you will be able to: Describe how Volume Manager enhances high availability. Describe Volume Manager storage objects. Configure shared storage using Volume Manager.

lev
Download Presentation

VERITAS Cluster Server Solaris

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VERITAS Cluster ServerSolaris Volume Manager and Process Resources

  2. Objectives After completing this lesson, you will be able to: • Describe how Volume Manager enhances high availability. • Describe Volume Manager storage objects. • Configure shared storage using Volume Manager. • Create a service group with Volume Manager resources. • Configure Process resources. • Configure Application resources.

  3. Physical Disks Virtual Volumes System1 System2 Volume Management

  4. Physical Disks VxVM Disks Volumes Subdisk Subdisks Subdisk Subdisk Disk Group Plexes Volume Manager Objects

  5. Disk Groups Physical Disks VxVM Disks Disk1 Disk Group: testDG • VxVM objects cannot span disk groups. • Disk groups represent management and configuration boundaries. • Disk groups enable high availability. Disk2 Disk3

  6. VxVM Volume Physical Disks VxVM Disks Disk1 VxVM Volume Disk2 Volume1 Disk3 Disk Group: testDG

  7. Volume Manager Configuration • Initialize disk(s). vxdisksetup -i device • Create a disk group. vxdg init disk_groupdisk_name=device • Create a volume. vxassist -g disk_group make vol_name size • Make a file system. mkfs -F vxfs volume_device

  8. Testing Volume Manager Configuration • On the first system: • Create a mount point directory. • Mount the VMVol file system on the first system. • Verify that the file system is accessible. • Unmount the file system. • On the next system(s): • Create a mount point directory with the same name. • Import the disk group. • Start the volume. • Mount and verify the file system. • Unmount the file system. Deport the disk group. Deport the disk group.

  9. Volume Manager Resources Proc Mount VMSG VMVol VMDG

  10. DiskGroup Resource and Agent • Functions: Online Imports a Volume Manager disk group Offline Deports a disk group Monitor Determines the state of the disk group using vxdg • Required attributes: DiskGroup Name of the disk group • Optional attributes: StartVolumes, StopVolumes • Configuration Prerequisites: Disk group and volume must be configured

  11. Volume Resource and Agent • Functions: Online Starts a volume Offline Stops a volume Monitor Reads a byte of data from the raw device interface for the volume • Required attributes: DiskGroup Name of the disk group Volume Name of the volume • Optional attributes: None • Configuration Prerequisites: Disk group and volume must be configured

  12. Process Resource and Agent • Functions: Online Starts a daemon process Offline Stops a process Monitor Determines whether the process is running using procfs • Required attributes: PathName Specifies the full path of the executable file; if the executable is a shell script, specify the shell (/bin/ksh, for example) • Optional attributes: Arguments Script name followed by arguments for shell scripts; arguments only for binaries

  13. Process Resource Configuration • Sample configuration for a shell script: Process statsSGproc (  PathName = “/bin/ksh”  Arguments = “/bin/getstats -day –month”) • Sample configuration for an executable: Process mailSGproc (  PathName = “/usr/lib/sendmail”  Arguments = “-db –q1h”) • Use % to escape dashed arguments to binary executables: hares –modify mailSGproc Arguments “%-db –q1h”

  14. The Application Resource and Agent • Functions: Online Brings an application online using StartProgram Offline Takes an application offline using StopProgram Monitor Monitors the status of the application Clean Takes the application offline using CleanProgram or kills all the processes specified for the application • Required Attributes: StartProgram Name of executable to start application StopProgram Name of executable to stop application One or more of the following: MonitorProgram Name of executable to monitor application MonitorProcesses List of processes to be monitored PidFiles List of files that contain the process ID of the processes to be monitored • Optional Attributes: CleanProgram, User

  15. Application Resource Configuration • Configuration prerequisites: • The application should have its own start and stop programs. • It should be possible to monitor the application by either running a program that returns 0 for failure and 1 for success or by checking a list of processes. • Sample configuration: Application samba_app ( StartProgram = “/usr/sbin/samba start” StopProgram = “/usr/sbin/samba stop” PidFiles = { “/var/lock/samba/smbd.pid” } MonitorProcesses = { “smbd” } )

  16. Summary You should now be able to: • Describe how Volume Manager enhances high availability. • Describe Volume Manager Storage Objects. • Configure shared storage using Volume Manager. • Create a service group with Volume Manager resources. • Configure Process resources. • Configure Application resources.

  17. Test Loopy Test Mount TestVol TestDG Lab : Volume Manager and Process Resources Student Blue Student Red TestSG Prod Loopy ProdSG Prod Mount ProdVol ProdDG RedNFSSG BlueNFSSG ProdDG TestDG TestVol ProdVol /test /prod

More Related