On 02/18/09 11:28, Rohit wrote: > Hi All, > > I am new to LDom concept. I have some questions about snapshots using LDom. > > 1: IIUIC, Each Ldom can be treated as virtual machine(vmware.. not > exactly same but quite similar) with its > own guest os etc. Does it also support features like snapshot ? Can > snapshot be taken when machine is running ? Or do we have to > shut it down or at least suspend and then take the snapshot ?
There's currently no snapshot of a running domain with LDoms. What you can only do is snapshot a disk image. > 2: Also from what i have read so far about LDom, we can use > file,normal hard disk, LUN exported from filer as 'disk' in LDom. So > What kind of snapshot possibilities we have got here ? Can we snap the > entire LDom (including ldom configuration, guest OS data, > memory state) in each of these cases ? Here is what i think but i am not sure. > > When disk is file based , it is possible. > When its normal disk and have some file system like ZFS or volume > manager which supports snapshot , it's possible.Otherwise its not > When its LUN from filer , if filer has snapshot capabilities , it is > supported. otherwise not. You are correct. For disk image snapshot, this depends on the capability of the backend storage where the disk image is stored. The easiest solution is to store disk images with ZFS and you will have quick snapshot features. Note that when you snapshot a disk image, you only take a snapshot of the virtual disk, this does not include the domain configuration or the memory state. > Also my question would be, does LDom admin tool takes care of these > snapshot work in the back end? Or it is the user's responsibility > to manage all these different snapshots. This has to be done manually. > 3: What is the preferred way to take LDom snapshots in community ? Use ZFS to store disk images (either on ZFS filesystem or volume), then use 'zfs snapshot/clone'. This is frequently used to clone an existing domain to create a new one. > 4:Does Ldom have suspend and resume support at machine level ? There's a suspend/resume feature but it can not be used directly. It is used by warm migration. During warm migration, a domain is going to be suspended, its memory and cpu state is going to be transfered to another platform where it will be resumed. But there's currently no option to use this feature to suspend a domain to disk. > 5: Is there any way for third party application to access these > snapshots and memory state ? Is there any too/library which provides > interface for accessing such snapshots and other machine state (e.g > memory in case of hibernation). Any links ? This is not applicable as there's currently no suspend to disk. alex.
