Skip to main content

4.6.14 Disconnecting From Media/Ending Remote Storage


4.6.14 Disconnecting From Media/Ending Remote Storage
This section describes the operations for disconnecting from media in the terminal used and ending remote storage.
The descriptions are divided into the following three cases:
- Physical partition stopped

- Control domain at the ok prompt

- Oracle Solaris running on the control domain
In the above three cases, the basic operation for disconnecting from media/ending remote storage is the same. However, the operations for the control domain before and after the media is disconnected/remote storage is ended are different. The basic operation for any of the above cases is the same as in the "Physical partition stopped" contents.
Physical partition stopped
  1. XSCF Remote Storage Server is running. Confirm that the status of each line of Status, Selected media, and XSCF IP Address at the top of the screen are as follows.
    Status Connected

    Selected media Selected media path

    XCP IP Address Physical IP address of specified XSCF-LAN
  1. Disconnect XSCF Remote Storage Server and the XSCF. [Detach]
    - Operating with XSCF Web

    -- From the Interface column in the Remote Storage Network Configuration table on the [Remote Storage] screen in XSCF Web, select the XSCF-LAN interface for disconnecting the target media of the terminal.

    -- Click the [Detach] button.

    Connection in the Remote Storage Network Configuration table displays "Available". This operation disconnects the XSCF from the target media. While XSCF Remote Storage Server is running, you can reconnect the media by clicking the [Attach] button.
    - Operating with XSCF shell
    Specify the XSCF-LAN interface and the IP address of the terminal, and execute the setremotestorage -c detach command.
    This operation disconnects the XSCF from the target media. While XSCF Remote Storage Server is running, you can reconnect the media by executing the setremotestorage -c attach command.
  1. Each Address line is refreshed as shown below.
    Status Waiting for connection from XSCF

    Selected media Selected media path

    XCP IP Address None
  1. To disconnect the target media, click the [Stop] button on the [XSCF Remote Storage Server] screen.
    A confirmation message appears. Click the [OK] button.
    This operation disconnects the target media. However, even after this operation is performed, the network port of the terminal used with remote storage can still be used. Clicking the [Run] button again will result in the target media waiting for connection from the XSCF.
  1. Each line of Status, Selected media, and XSCF IP Address at the top of the [XSCF Remote Storage Server] screen is refreshed as shown below.
    Status Disconnected

    Selected media Selected media path

    XCP IP Address None
  1. To end remote storage, click [x] at the top right of the [XSCF Remote Storage Server] screen.
    The screen closes and ends.
Control Domain at the ok Prompt
  1. Perform steps 1 to 4 in "Physical partition stopped."
  2. Execute the console command from the XSCF shell to switch to the control domain console that is at the ok prompt.
    The following example shows switching to the control domain console of physical partition#0.
XSCF> console -p 0
  1. Execute the reset-all command to reset the control domain that is at the ok prompt.
{0} ok reset-all
Note - To reset the control domain when stopping it again at the ok prompt, change the value of the OpenBoot PROM environment variable auto-boot? to false with the setenv command.
  1. At the ok prompt of the reset control domain, execute the show-disks command, and confirm that the remote storage device path has been deleted.
{0} ok show-disks
a) /pci@8000/pci@4/pci@0/pci@0/scsi@0/disk
...

Enter Selection, q to quit:
Oracle Solaris Running on the Control Domain
  1. Execute the console command from the XSCF shell to switch to the control domain console where Oracle Solaris is running.
    The following example shows switching to the control domain console of physical partition#0.
XSCF> console -p 0
  1. Confirm that Oracle Solaris is not accessing the target media. If necessary, unmount the remote storage device.
    The following example unmounts the remote storage device.
# cd /
# umount /media/xxxxx
  1. Stop the removable media management service.
    The following example executes the svcadm command to stop the removable media management service.
  1. - For Oracle Solaris 11 or later
# svcadm disable hal
  1. - For Oracle Solaris 10
# svcadm disable volfs
Note - To use remote storage in a guest domain, stop the removable media management service of the guest domain.
  1. Execute the cfgadm -c unconfigure command from Oracle Solaris to stop the remote storage device on a particular path.
    The following example executes the cfgadm command and shows that usb1/3 is a remote storage device.
# cfgadm
Ap_Id Type Receptacle Occupant Condition
...
usb1/3 usb-storage connected configured ok
  1. The following example executes the cfgadm -c unconfigure command and shows that the remote storage device is stopped.
Note - If the resource of remote storage (vdisk) has been assigned to a guest domain, disconnect the resource (ldm remove-vdisk) and then execute cfgadm -c unconfigure from the control domain.
# cfgadm -c unconfigure usb1/3
  1. The following example executes the cfgadm command and checks that usb1/3 is stopped.
# cfgadm
Ap_Id Type Receptacle Occupant Condition
...
usb1/3 usb-storage connected unconfigured ok
  1. Perform steps 1 to 4 in "Physical partition stopped."
  2. Execute the df command or cfgadm command from Oracle Solaris, and confirm that the remote storage device path has been deleted.
    The following example executes the df command and shows that /media on the remote storage device has been deleted.
# df
/ (rpool/ROOT/solaris):425092886 blocks 425092886 files
/devices (/devices ): 0 blocks 0 files
...

  1. The following example executes the cfgadm command and shows that the remote storage device (usb1/3) is stopped.
# cfgadm
Ap_Id Type Receptacle Occupant Condition
...
usb1/3 unkown empty unconfigured ok