Print View

How to refresh FlashCopy LUNS in Windows

Issue

The IBM DS Series SAN FlashCopy feature creates a point in time, copy on write image of an existing LUN. This FlashCopy LUN may then be presented to a backup server for local backup.

When using the FlashCopy feature of an IBM DS series SAN, the LUNS do not appear to refresh under Windows, even when the FlashCopy is restarted from the Storage Manager or SMcli command line.

Resolution

The LUN must be unmounted before the refresh, and remounted afterwards using the MOUNTVOL command. The following assumes the FlashCopy LUN has been created and presented to the host where the script will be run. In the example below LUN01 is the original logical drive, LUN01-1 is the FlashCopy logical drive, and LUN01-R1 is the FlashCopy Repository logical drive.

Note: SMcli.exe from the Storage Manager client is required to be installed.

recreateFlashCopy.cmd
SET WORKING=C:\Program Files (x86)\IBM_DS4000\client

:: Dismount FlashCopy LUN
mountvol X: /P

:: Recreate Flash Copy LUN
"%WORKING%\SMcli.exe" 192.168.1.100 192.168.1.101 -f "%WORKING%\recreateFlashCopy.txt" -o recreateFlashCopy.log -p PASSW0RD >> "%WORKING%\recreateFlashCopy.console.log" 2>&1

IF ERRORLEVEL 1 GOTO No_Mount

:: Mount FlashCopy LUN if no error
mountvol X: \\?\Volume{0d3c3df6-d5b7-11df-bc56-005056c00008}\

:No_Mount


recreateFlashCopy.txt
recreate FlashCopy logicalDrive ["LUN01-1"];

References

IBM System Storage DS3000, DS4000, and DS5000
Command Line Interface and Script Commands Programming Guide
http://theether.net/download/IBM/DS/DS3k4k5kCLIreference.pdf

C:\>mountvol
Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L
MOUNTVOL [drive:]path /P
MOUNTVOL /R
MOUNTVOL /N
MOUNTVOL /E

    path        Specifies the existing NTFS directory where the mount
                point will reside.
    VolumeName  Specifies the volume name that is the target of the mount
                point.
    /D          Removes the volume mount point from the specified directory.
    /L          Lists the mounted volume name for the specified directory.
    /P          Removes the volume mount point from the specified directory,
                dismounts the volume, and makes the volume not mountable.
                You can make the volume mountable again by creating a volume
                mount point.
    /R          Removes volume mount point directories and registry settings
                for volumes that are no longer in the system.
    /N          Disables automatic mounting of new volumes.
    /E          Re-enables automatic mounting of new volumes.

Products

IBM DS3400 (any)

Created: 17th October 2010
Updated: 17th October 2010

Print View

© 2005-2024 Jamie Morrison