JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle VM Server for SPARC 3.0 Administration Guide     Oracle VM Server for SPARC
search filter icon
search icon

Document Information

Preface

Part I Oracle VM Server for SPARC 3.0 Software

1.  Overview of the Oracle VM Server for SPARC Software

2.  Installing and Enabling Software

3.  Oracle VM Server for SPARC Security

4.  Setting Up Services and the Control Domain

5.  Setting Up Guest Domains

6.  Setting Up I/O Domains

7.  Using Virtual Disks

Introduction to Virtual Disks

Managing Virtual Disks

How to Add a Virtual Disk

How to Export a Virtual Disk Back End Multiple Times

How to Change Virtual Disk Options

How to Change the Timeout Option

How to Remove a Virtual Disk

Virtual Disk Identifier and Device Name

Virtual Disk Appearance

Full Disk

Single-Slice Disk

Virtual Disk Back End Options

Read-only (ro) Option

Exclusive (excl) Option

Slice (slice) Option

Virtual Disk Back End

Physical Disk or Disk LUN

How to Export a Physical Disk as a Virtual Disk

Physical Disk Slice

How to Export a Physical Disk Slice as a Virtual Disk

How to Export Slice 2

File and Volume

File or Volume Exported as a Full Disk

How to Export a File as a Full Disk

How to Export a ZFS Volume as a Full Disk

File or Volume Exported as a Single-Slice Disk

How to Export a ZFS Volume as a Single-Slice Disk

Exporting Volumes and Backward Compatibility

Summary of How Different Types of Back Ends Are Exported

Guidelines for Exporting Files and Disk Slices as Virtual Disks

Configuring Virtual Disk Multipathing

Virtual Disk Multipathing and Virtual Disk Timeout

How to Configure Virtual Disk Multipathing

CD, DVD and ISO Images

How to Export a CD or DVD From the Service Domain to the Guest Domain

How to Export an ISO Image From the Control Domain to Install a Guest Domain

Virtual Disk Timeout

Virtual Disk and SCSI

Virtual Disk and the format Command

Using ZFS With Virtual Disks

Configuring a ZFS Pool in a Service Domain

Storing Disk Images With ZFS

Examples of Storing Disk Images With ZFS

How to Create a Disk Image Using a ZFS Volume

How to Create a Disk Image Using a ZFS File

How to Export the ZFS Volume

How to Export the ZFS File

How to Assign the ZFS Volume or File to a Guest Domain

Creating a Snapshot of a Disk Image

How to Create a Snapshot of a Disk Image

Using Clone to Provision a New Domain

Cloning a Boot Disk Image

Using Volume Managers in a Logical Domains Environment

Using Virtual Disks on Top of Volume Managers

Using Virtual Disks on Top of Solaris Volume Manager

Using Virtual Disks When VxVM Is Installed

Using Volume Managers on Top of Virtual Disks

Using ZFS on Top of Virtual Disks

Using Solaris Volume Manager on Top of Virtual Disks

Using VxVM on Top of Virtual Disks

8.  Using Virtual Networks

9.  Migrating Domains

10.  Managing Resources

11.  Managing Domain Configurations

12.  Performing Other Administration Tasks

Part II Optional Oracle VM Server for SPARC Software

13.  Oracle VM Server for SPARC Physical-to-Virtual Conversion Tool

14.  Oracle VM Server for SPARC Configuration Assistant (Oracle Solaris 10)

15.  Using Power Management

16.  Using the Oracle VM Server for SPARC Management Information Base Software

17.  Logical Domains Manager Discovery

18.  Using the XML Interface With the Logical Domains Manager

Glossary

Index

Managing Virtual Disks

This section describes adding a virtual disk to a guest domain, changing virtual disk and timeout options, and removing a virtual disk from a guest domain. See Virtual Disk Back End Options for a description of virtual disk options. See Virtual Disk Timeout for a description of the virtual disk timeout.

How to Add a Virtual Disk

  1. Export the virtual disk back end from a service domain.
    # ldm add-vdsdev [-fq] [options={ro,slice,excl}] [mpgroup=mpgroup] \
    backend volume-name@service-name
  2. Assign the back end to a guest domain.
    # ldm add-vdisk [timeout=seconds] [id=disk-id] disk-name volume-name@service-name ldom

    You can specify an ID of a new virtual disk device by setting the id property. By default, ID values are automatically generated, so set this property if you need to match an existing device name in the OS. See Virtual Disk Identifier and Device Name.


    Note - A back end is actually exported from the service domain and assigned to the guest domain when the guest domain (ldom) is bound.


How to Export a Virtual Disk Back End Multiple Times

A virtual disk back end can be exported multiple times either through the same or different virtual disk servers. Each exported instance of the virtual disk back end can then be assigned to either the same or different guest domains.

When a virtual disk back end is exported multiple times, it should not be exported with the exclusive (excl) option. Specifying the excl option will only allow exporting the back end once. The back end can be safely exported multiple times as a read-only device with the ro option.


Caution

Caution - When a virtual disk back end is exported multiple times, applications running on guest domains and using that virtual disk are responsible for coordinating and synchronizing concurrent write access to ensure data coherency.


The following example describes how to add the same virtual disk to two different guest domains through the same virtual disk service.

  1. Export the virtual disk back end two times from a service domain by using the following commands.
    # ldm add-vdsdev [options={ro,slice}] backend volume1@service-name
    # ldm add-vdsdev -f [options={ro,slice}] backend volume2@service-name

    Note that the second ldm add-vdsdev command uses the -f option to force the second export of the back end. Use this option when using the same back-end path for both commands and when the virtual disk servers are located on the same service domain.

  2. Assign the exported back end to each guest domain by using the following commands.

    The disk-name can be different for ldom1 and ldom2.

    # ldm add-vdisk [timeout=seconds] disk-name volume1@service-name ldom1
    # ldm add-vdisk [timeout=seconds] disk-name volume2@service-name ldom2

How to Change Virtual Disk Options

For more information about virtual disk options, see Virtual Disk Back End Options.

How to Change the Timeout Option

For more information about virtual disk options, see Virtual Disk Back End Options.

How to Remove a Virtual Disk

  1. Remove a virtual disk from a guest domain by using the following command.
    # ldm rm-vdisk disk-name ldom
  2. Stop exporting the corresponding back end from the service domain by using the following command.
    # ldm rm-vdsdev volume-name@service-name