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?
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.
Give this a shot... you can use the 'symsg -sid sg2dg ' command to copy the contents of an SG into a DG, and then run a 'symclone -g query -multi' on the DG to show the clone relationships.
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 query -multi' to see all of the relationships -- including the device IDs of the clone & snap targets.
seancummins
2 Intern
•
226 Posts
2130
0
Posted May 27th, 2014 07:00
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