Unsolved
This post is more than 5 years old
6 Posts
0
898
October 31st, 2007 23:00
admsnap command issue
Platform- CX500 with Solaris 9.0 & 10.0 hosts.
Goal- "Solaris 9.0" LUN Snapshot to be mounted on "Solaris 10"
Problem- Session Activation using the "admsnap" command doesn't consistently mount the LUN. The command gives the response " No Devices were found that could activate this session" when run on the target server, the first time (after a reboot). However on the second attempt the Snapshot gets mounted.
Elaboration- The commands issued take the following pattern.
# navicli -h snapview -createsnapshot 32 -snaps
hotname
# navicli -h storagegroup -addsnapshot -gname -hlu 71 -snapshotname
# navicli -h snapview -startsession -snapshotname
# /usr/admsnap/admsnap activate -s
Any assistance to point out why this inconsistency arises is much appreciated.
Goal- "Solaris 9.0" LUN Snapshot to be mounted on "Solaris 10"
Problem- Session Activation using the "admsnap" command doesn't consistently mount the LUN. The command gives the response " No Devices were found that could activate this session" when run on the target server, the first time (after a reboot). However on the second attempt the Snapshot gets mounted.
Elaboration- The commands issued take the following pattern.
# navicli -h snapview -createsnapshot 32 -snaps
hotname
# navicli -h storagegroup -addsnapshot -gname -hlu 71 -snapshotname
# navicli -h snapview -startsession -snapshotname
# /usr/admsnap/admsnap activate -s
Any assistance to point out why this inconsistency arises is much appreciated.
No Events found!


sarpydog
2 Intern
•
360 Posts
0
November 1st, 2007 02:00
2. verify the hba driver is correct or not.
Can you add a disk to the server without rebooting ?
159eka
6 Posts
0
November 4th, 2007 20:00
1- "devfsadm -Cv" runs with no outpurt (i.e. returns to the command prompt with no message)
2- hba driver has to be correct since, out of four snapshots, two gets activated. The other two fail the first time, but on repeating the command, they too get activated.
3- quote"Can you add a disk to the server without rebooting ?". You are not clear to me. But as far as the snapshots are concerned, yes, they can be added without rebooting.
159eka
6 Posts
0
November 7th, 2007 00:00
1- "Are you leaving the snapshot in the target server's storage group?" No the reverse, (umount/de-activate-stopsession-"storagegroup removesnapshot"- rmsnaspshot) the umount down deleting of snap shot happens through a script, for all sanpashots created.
2- "The following should be repeated each time a snap is taken" See Jay, The steps I follow is more or less the same as you have advised me to. The only diffence I see is:
If I use "admsnap activate" the command fails, but if I am to repeat the command the snapshot session gets activated & the lun can be mounted.
If I use navicli to activate session, the command executes with no output, but I cannot mount the LUN as there is an error which appears in response to the mount command, saying that the device not available or path is wrong. However if I run a "format" to list the disks & returns without carriying out any changes, I can succesfully mount thereafter. It's as if he can't recognize the snapshot immediately, without some sort of an assistance ( to present it in a layman's perspective).
calle2
133 Posts
0
November 7th, 2007 03:00
Unfortunately I got no scripting experience in Solaris but we looked into doing something v. similar in Windows¿ The only differences in our scripts were that:
1. We looked at issuing both a ¿navicli ¿h SP_IP snapview ¿activatesnapshot etc etc¿ and an ¿admsnap activate ¿s session_name etc etc¿ on the mount host.
2. An ¿admsnap flush¿ before deactivating the snap is recommended.
3. Also in a Windows environment it is common to add some wait commands to ensure that the commands have had the desired effect¿
I hope this helps?