|
Objective 1.2 - Implement and Manage Complex Data Security and Replication Configurations |
|
|
|
Written by Matthijs van den Berg
|
|
Tuesday, 06 January 2009 10:38 |
KNOWLEDGE
- Describe methods to secure access to virtual disks and related storage devices
- Distributed Lock Handling
Each ESX server uniquely owns a VM when it is running. VMFS provides the distributed lock management that arbitrates access, allowing each VM and ESX server to share the clustered pool of storage. This principle facilitates VMotion, HA and DRS. Each VM on a pool of storage can run on different ESX servers.
- Identify tools and steps necessary to manage replicated VMFS volumes
Replication creates full copies of LUNs. Replicas are usually made to separate storage systems, possibly to separate sites to protect against major outages that incapacitate or destroy an entire storage system or site. This functionality is usually offered by the storage solution. Replication can be done in realtime (synchronous or asynchronous write to a second storage array)or via a copy of a LUN based point in time snapshot.
- Resignaturing
VMFS-3 volumes uses a unique identifier (a UUID) in the Logical Volume Manager (LVM) that "signs" the volume. It's a long 16 character hexadecimal value that we can look up in the directory /vmfs/volumes with a ls -al. When another ESX Server scans the SAN and finds a LUN with a VMFS-3 filesystem, it compares the data from the SCSI disk ID information returned from the LUN/storage array with the data currently stored in the LVM header Metadata. When these values are different the LUN will be treated as a snapshot by the VM kernel. To make the LUN usable for the second ESX hosts that thinks the LUN is a snapshot the LUN must be resigned. This process is disabled by default. To enable resignaturing of LUNs the value for LVM.EnableResignature must be changed to on. This can be done via the GUI or the CLI.
From the ESX San guide: Understanding Resignaturing Options This section discusses how the EnableResignature and DisallowSnapshotLUN options interact and explains the three states that result from changing these options:
- State 1: EnableResignature=0, DisallowSnapshotLUN=1 (the ESX Server 3.xdefault)
- State 2: EnableResignature=1 (DisallowSnapshotLUN is not relevant)
- State 3: EnableResignature=0, DisallowSnapshotLUN=0 (ESX Server 2.x behavior)
- State 1: EnableResignature=0, DisallowSnapshotLUN=1 (default)
In this state: You cannot bring snapshots or replicas of VMFS volumes made by the storage system into the ESX Server host regardless of whether the ESX Server has access to the original LUN. LUNs formatted with VMFS must have the same ID for each ESX Server host. State 1 is the safest state but: If you use Clariion AX100i or AX150i with Navisphere Express, you cannot configure the same LUN ID across storage groups. You must instead use a version of Navisphere software that has more comprehensive management capabilities. For IBM TotalStorage 8000, if you have LUNs that are not configured to present the same LUN ID to all servers, you need to either use the settings in state 3 or recreate the LUNs from scratch.
- State 2: EnableResignature=1, (DisallowSnapshotLUN is not relevant)
In this state: You can safely bring snapshots or replicas of VMFS volumes into the same servers as the original and they are automatically resignatured. VMFS volumes containing LUNs from AX100i or AX150i that are not presented with the same LUN numbers to all servers effectively lose the ability to use the virtual machines stored on that VMFS volume. Avoid this situation.
- State 3: EnableResignature=0, DisallowSnapshotLUN=0
This is similar to ESX Server 2.x behavior. In this state the ESX Server assumes that it sees only one replica or snapshot of a given LUN and never tries to resignature. This is ideal in a DR scenario where you are bringing a replica of a LUN to a new cluster of ESX Servers, possibly on another site that does not have access to the source LUN. In such a case, the ESX Server uses the replica as if it is the original. If you have an AX100i or AX150i that cannot be configured to present the same LUN numbers to all servers for some reason, you need this setting to allow all ESX Server systems to use the same LUNs for features like VMotion, VMware DRS, and VMware HA. Do not use this setting if you are bringing snapshots or replicas of a LUN into a server with access to the original LUN. This can have destructive results including:
- If you create snapshots of a VMFS volume one or more times and dynamically bring one or more of those snapshots into an ESX Server, only the first copy is usable. The usable copy is most likely the primary copy. After reboot, it is impossible to determine which volume (the source or one of the snapshots) is usable. This nondeterministic behavior should be avoided.
- If you create a snapshot of a spanned VMFS volume, an ESX Server host might reassemble the volume from fragments that belong to different snapshots. This can corrupt your file system.
- Snapshot LUNs
Allows snapshot VMFS-3 Volumes to be seen by a different ESX host. This can be usefull when storage data is replicated from the primary site to a secondary site that is used for disaster recovery. You can present a snapshot VMFS-3 volumes to a different ESX Server host using 2 options
- EnableResignature - DisallowSnapshotLUN
To allow snapshot LUNs, set LVM.EnableResignature to 0 & LVM.DisallowSnapshotLUN to 0 Do not use DisallowSnapshotLUN to present snapshots back to same ESX server as the original LUN. Unpredictable results can occur since you will have 2 LUNs with the same UUID so LVM.EnableResignature will have to be used to make the volume located on a replicated LUN visible to the same ESX server. Last but no least, LVM.EnableResignature overrides LVM.DisallowSnapshotLUN.
- Understand how to configure physical storage adapter properties
TODO
SKILLS AND ABILITIES
TOOLS
- VI client
- CLI
- esxcfg-advcfg
- esxcfg-module
|