Hi Simon,
 
As per my understanding, I have written query for connecting cm-storage scheme from playground scheme to collect vserver and volume details.
Hope it will resolve your issue. If not please explain complete details.
 
 
insert into playground.test (VolumeID,VserverID,VolumeInfo) VALUES (
(SELECT
volume.id AS 'vollume id'
 
FROM
cm_storage.cluster,
cm_storage.vserver,
cm_storage.volume
 
WHERE
vserver.cluster_id = cluster.id
AND volume.vserver_id = vserver.id
AND volume.name = 'TEST_VOLUME'
AND cluster.primary_address = '10.140.110.165'
),
 
(SELECT
vserver.id AS 'vserver id'
 
FROM
cm_storage.cluster,
cm_storage.vserver
 
WHERE
vserver.cluster_id = cluster.id
 
AND vserver.name = 'VS1'
AND cluster.primary_address = '10.140.110.165'
),
 
"volcode"
  )
 
 
Best Regards,
Shiva