This post is more than 5 years old
1 Rookie
•
17 Posts
0
3121
List clones and snaps of storage group
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?
seancummins
226 Posts
0
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
seancummins
226 Posts
0
May 22nd, 2014 08:00
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
seancummins
226 Posts
1
May 22nd, 2014 08:00
Hi,
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.
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
emcsanman101
1 Rookie
1 Rookie
•
17 Posts
0
May 22nd, 2014 08:00
Dynamox: looking for workaround as cant perform the task on 200 devices
Sean: The disk group is unknown, we know only storage group.
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
May 22nd, 2014 08:00
symdev show on source device and grep out clone/snap device id
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
May 22nd, 2014 10:00
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
seancummins
226 Posts
0
May 22nd, 2014 17:00
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 query -multi' to see all of the relationships -- including the device IDs of the clone & snap targets.
Thanks,
- Sean
emcsanman101
1 Rookie
1 Rookie
•
17 Posts
0
May 27th, 2014 06:00
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?
dynamox
2 Intern
2 Intern
•
20.4K Posts
1
May 27th, 2014 07:00
what do you want to validate ? You are creating a logical container, you are not moving any devices.