Hi Eric,
Thanks, for your prompt response. Yes, your right. I want to mount the LUN clone on solaris, so that i can access and restore the files from clone LUN as well.
I would like to share some more info on the procedure i followed, for better understanding the issue :
1) Using snapdrive we have mounted a LUN which is on Solaris /mnttest, following is the syntax command:
bash-3.00# snapdrive storage create -fs /mnttest -lun naante1:/vol/vol1/qtree2/testlun -lunsize 4g
LUN naante1:/vol/vol1/qtree2/testlun ... created
mapping new lun(s) ... done
discovering new lun(s) ... done
LUN to device file mappings:
- naante1:/vol/vol1/qtree2/testlun => /dev/dsk/c3t60A98000486E5876644A516C7873696Ed0s2
disk group mnttest-1_SdDg created
host volume d0 created
file system /mnttest created
2) We have created a snapshot, for this snapdrive storage mount :/mnttest:-
bash-3.00# snapdrive snap create -fs /mnttest -snapname test_snap
Starting snap create /mnttest
WARNING: DO NOT CONTROL-C!
If snap create is interrupted, incomplete snapdrive
generated data may remain on the filer volume(s)
which may interfere with other snap operations.
Successfully created snapshot test_snap on naante1:/vol/vol1
snapshot test_snap contains:
disk group mnttest-1_SdDg containing host volumes
d0 (filesystem: /mnttest)
>>VERIFING the snapdrive storage :
bash-3.00# snapdrive storage show -all
Connected LUNs and devices:
Host devices and file systems:
dg: mnttest-1_SdDg dgtype SVM
hostvol: /dev/md/mnttest-1_SdDg/dsk/d0 state: AVAIL
fs: /dev/md/mnttest-1_SdDg/dsk/d0 mount point: /mnttest (persistent) fstype ufs
device filename adapter path size proto state clone lun path backing snapshot
---------------- ------- ---- ---- ----- ----- ----- -------- ----------------
/dev/dsk/c3t60A98000486E5876644A516C7873696Ed0s2 - P 4g fcp online No naante1:/vol/vol1/qtree2/testlun -
=============================================================================================
--On filer, side we have created a LUN clone, using a LUN command syntax :
naante1> lun show -m
LUN path Mapped to LUN ID Protocol //This is the Original LUN
-----------------------------------------------------------------------
/vol/vol1/qtree2/testlun ts1_fcp_SdIg 8 FCP
naante1> lun clone create /vol/vol1/qtree2/testlun_clone -b /vol/vol1/qtree2/testlun test_snap //Creation of LUN clone
naante1> lun show all
/vol/vol1/qtree2/testlun 4g (4294967296) (r/w, online, mapped)
/vol/vol1/qtree2/testlun_clone 4g (4294967296) (r/w, online) //CLONED LUN
naante1> lun map /vol/vol1/qtree2/testlun_clone ts1_fcp_SdIg
lun map: auto-assigned ts1_fcp_SdIg=9
naante1> lun show -m
LUN path Mapped to LUN ID Protocol
-----------------------------------------------------------------------
/vol/vol1/qtree2/testlun ts1_fcp_SdIg 8 FCP
/vol/vol1/qtree2/testlun_clone ts1_fcp_SdIg 9 FCP //Mapped to same hostname(solaris)
As we know, LUN is not a physicall drive. Its a Logical Volume Number, so as per your suggestion,
if i mount the LUN using "bash-3.00# mount naante1:/vol/vol1/qtree2/testlun_clone /test", it will chnage the mount point from directory to a file.
bash-3.00# cd /test
bash: cd: /test: Not a directory
bash-3.00# ls -la
total 1064
drwxr-xr-x 27 root root 512 Jul 20 09:34 .
drwxr-xr-x 27 root root 512 Jul 20 09:34 ..
-rw------- 1 root root 10719 Jul 18 15:45 .bash_history
drwx------ 2 root root 512 Oct 14 2008 .ssh
drwx------ 3 root root 512 Aug 8 2008 .sunw
lrwxrwxrwx 1 root root 9 Aug 8 2008 bin -> ./usr/bin
drwxr-xr-x 2 root nobody 512 Oct 3 2008 cdrom
drwxr-xr-x 2 root root 512 Aug 28 2008 data01
drwxr-xr-x 17 root sys 5120 Jul 20 09:40 dev
drwxr-xr-x 2 root sys 512 Jun 18 13:26 devices
drwxr-xr-x 85 root sys 4608 Jul 20 09:40 etc
drwxr-xr-x 3 root sys 512 Aug 8 2008 export
dr-xr-xr-x 1 root root 1 Jun 18 13:27 home
drwxr-xr-x 15 root sys 512 Aug 8 2008 kernel
drwxr-xr-x 7 root bin 5632 Aug 8 2008 lib
drwx------ 2 root root 8192 Aug 8 2008 lost+found
drwxr-xr-x 2 root sys 512 Aug 8 2008 mnt
drwxr-xr-x 3 root root 512 Jul 20 09:34 mnttest
dr-xr-xr-x 1 root root 1 Jun 18 13:27 net
drwxr-xr-x 9 root sys 512 Aug 26 2008 opt
drwxr-xr-x 40 root sys 1536 Aug 8 2008 platform
dr-xr-xr-x 344 root root 480032 Jul 20 09:41 proc
drwxr-xr-x 2 root sys 1024 Aug 8 2008 sbin
drwxr-xr-x 4 root root 512 Aug 8 2008 system
-rw------- 1 root root 4291821568 Jul 20 2009 test
drwxrwxrwt 7 root sys 466 Jul 20 09:37 tmp
drwxrwxr-x 43 root sys 1024 Aug 26 2008 usr
drwxr-xr-x 46 root sys 1024 Aug 8 2008 var
dr-xr-xr-x 6 root root 512 Jun 18 13:27 vol
I hope this clarifies, my issue in much clear way, I want to mount the LUN CLONE using SNAPDRIVE tool, to solaris...It will be appreciatable and helpfull if you can guide me through the process, to get this thing workout.