dbTalk Databases Forums  

[Info-Ingres] Mounting the clone...a little off topic

comp.databases.ingres comp.databases.ingres


Discuss [Info-Ingres] Mounting the clone...a little off topic in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Bowes
 
Posts: n/a

Default [Info-Ingres] Mounting the clone...a little off topic - 07-21-2009 , 03:22 AM






Hi All,



I have a DELL-Equallogic SAN box on which I've put a database in a
volume. I've snapshotted that volume and then cloned the snapshot into a
new volume which I wish to mount. Having mounted it I can then back it
up to tape and replicate it elsewhere.



Trouble is that I can't work out a good way to determine what device the
new volume is on so I can mount it.



This is what I've kludged up...Suggestions would be appreciated...

BTW. I've tried using kudzu but this wasn't very useful ... it didn't
seem to do anything.



In this example I have database bowtest and the snapshot is associated
with checkpoint 'c0002001'. Furthermore 'ingres' has sudo permissions to
everything.

a. First cat /proc/partitions and save the output...

b. Discover the new iSCSI target...

sudo iscsiadm --mode discovery --type sendtargets --portal 192.168.0.210

192.168.0.210:3260,1
iqn.2001-05.com.equallogic:0-8a0906-da3132e04-73b000000e74a5c5-bowtest

192.168.0.210:3260,1
iqn.2001-05.com.equallogic:0-8a0906-e6e132e04-6a8000001234a5f1-bowtest-c
0002001



c. Get an initiator to connect to the new volume:

sudo iscsiadm --mode node \

--targetname
iqn.2001-05.com.equallogic:0-8a0906-e6e132e04-6a8000001234a5f1-bowtest-c
0002001 \

--portal 192.168.0.210 --loginall=all



d. sudo mkdir /bowtest-c0002001



e. cat /proc/partitions

This shows the new entries....

8 16 1048581120 sdb

8 17 1048578583 sdb1



f. sudo mount /dev/sdb1 /bowtest-c0002001



It seems to work, but it has a real kludgy feel about it.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.