Print View

How to refresh FlashCopy LUNS in Windows


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.


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.

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

:: Dismount FlashCopy LUN
mountvol X: /P

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


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


recreate FlashCopy logicalDrive ["LUN01-1"];


IBM System Storage DS3000, DS4000, and DS5000
Command Line Interface and Script Commands Programming Guide

Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L
MOUNTVOL [drive:]path /P

    path        Specifies the existing NTFS directory where the mount
                point will reside.
    VolumeName  Specifies the volume name that is the target of the mount
    /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.


IBM DS3400 (any)

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

Print View

© 2005-2024 Jamie Morrison