Highlighted
8 Krypton

List clones and snaps of storage group

Jump to solution

I have 200 devices in storage group, and have 1 clone and 2 snaps fore each device. The clones are snaps are not kept in any storage group( or grouped, no idea of group name). How to get the id of clones and snaps?

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

Nope, this is pretty unobtrusive... as you said, it's just creating a new device group (logical container), and then querying its contents.

Thanks,

- Sean

0 Kudos
9 Replies
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

symdev show on source device and grep out clone/snap device id

0 Kudos
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

Hi,

Give this a shot... you can use the 'symsg -sid <serial> sg2dg <sgname> <dgname>' command to copy the contents of an SG into a DG, and then run a 'symclone -g <dgname> query -multi' on the DG to show the clone relationships.

Here's an example from a lab box:

apple# symsg -sid 0240 show sean_test

Name: sean_test

   Symmetrix ID             : 000195700240

   Last updated at          : Thu May 22 11:21:46 2014

   Masking Views            : No

   FAST Policy              : No

   Host I/O Limit           : None

   Host I/O Limit MB/Sec    : N/A

   Host I/O Limit IO/Sec    : N/A

   Number of Storage Groups : 0

   Storage Group Names      : N/A

   Devices (2):

    {

    ---------------------------------------------------------

    Sym                             Device               Cap

    Dev    Pdev Name                Config        Sts    (MB)

    ---------------------------------------------------------

    2918   N/A                      TDEV           RW     898

    2919   N/A                      TDEV           RW     898

    }


apple# symsg -sid 0240 sg2dg sean_test sean_test


apple# symclone -sid 0240 -g sean_test query -multi

Device Group (DG) Name: sean_test

DG's Type            : REGULAR

DG's Symmetrix ID    : 000195700240

        Source Device                  Target Device            State    Copy

--------------------------------- ---------------------------- ------------ ----

              Protected Modified                Modified

Logical  Sym  Tracks    Tracks  Logical  Sym  Tracks  CGDP SRC <=> TGT  (%)

--------------------------------- ---------------------------- ------------ ----

DEV001    2918        0        0 N/A      291A        0 X.X. Copied      100

                      0        0 N/A      291B        0 X.X. Copied      100

DEV002    2919        0        0 N/A      291C        0 X.X. Copied      100

                      0        0 N/A      291D        0 X.X. Copied      100

Total          -------- --------                --------

  Track(s)            0        0                      0

  MB(s)              0.0      0.0                    0.0

8 Krypton

Re: List clones and snaps of storage group

Jump to solution

Dynamox: looking for workaround as cant perform the task on 200 devices

Sean: The disk group is unknown, we know only storage group.

0 Kudos
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

Hi,

Yes, I understand the device group is unknown -- the process I gave you first copies the contents of the known storage group to a new device group, which you can then query. It is two commands that will show you the relationships you're looking for.

Thanks,

- Sean

0 Kudos
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

emcsanman101 wrote:

Dynamox: looking for workaround as cant perform the task on 200 devices

don't think there is a "pretty" way of getting that info without getting into parsing output from other commands:

symclone -sid 123 list

symsnap -sid 123 list

0 Kudos
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

To elaborate on this a bit more...

You can't run symclone/symsnap queries against SGs (only DGs), but you can copy the contents of an SG to a DG using the symsg sg2dg command as outlined previously. And you don't need to have the clone/snap targets in the DG in order to query clone/snap relationships -- you only need the source devices. So all you have to do is copy the contents of your known SG to a DG (using symsg sg2dg), then run 'symclone/symsnap -g <dgname> query -multi' to see all of the relationships -- including the device IDs of the clone & snap targets.

Thanks,

- Sean

0 Kudos
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

Sean Cummins

Will there be any pre-checks to validate before performing on Prod? I think we are only creating a logical container for the devices?

0 Kudos
8 Krypton

Re: List clones and snaps of storage group

Jump to solution

what do you want to validate ? You are creating a logical container, you are not moving any devices.

8 Krypton

Re: List clones and snaps of storage group

Jump to solution

Nope, this is pretty unobtrusive... as you said, it's just creating a new device group (logical container), and then querying its contents.

Thanks,

- Sean

0 Kudos