Dear ADSM friends,
We are starting an ADSM implementation on at least 10 SUN (Solaris 2.4/2.5
Machines). I am using ADSM server for AIX 4.2 (2.1.5.6) and Sun ADSM ver.
2.1.0.5. I read a note concerning symboliclinks and I tried a simple test.
What I got from that
took me both curious and perplexed.
Here it is what I did.:
on the UNIX prompt:
# /usr/lpp/adsm/bin > ln -s /tmp linkdir (create a symbolic link pointing
to /tmp )
# ls -la linkdir
lrwx--x-rw- linkdir -> /tmp ( symbolic link is there !)
# cd linkdir
# pwd
/usr/lpp/adsm/bin/linkdir
# mkdir links
# cd links
# echo > s ( create a simple file )
# cd ../..
# pwd
/usr/lpp/adsm/bin
# dsmc
...... ADSM "welcome"headers ... ver 2.1.5.6 .....
# dsmc> sel /usr/lpp/adsm/bin/linkdir/* -subdir=yes ( selective all from
this)
...... and all files form linkdir went to ADSM server perfectly ... :)
# dsmc> quit
NOW: I removed the dir link and 'unlink' the directory as follows:
# pwd
/usr/lpp/adsm/bin
# cd linkdir
# rm -r links ( delete all files from this directory )
# cd ..
# unlink linkdir ( now we do not have a symbolic dir anymore )
# dsmc
.... ADSM banners again ...... ver. 2.1.5.6
# dsmc> restore /usr/lpp/adsm/bin/linkdir/*
# dsmc> quit
IF I list the directory, I can now see a REAL directory , i.e.:
# ls -la
drwx--x-rw- linkdir , instead of (what I was thinking)
lrwx--x-rw- linkdir -> /tmp
I configured FOLLOWSYMBOLIC as 'NO' and then 'YES' ( I did all the process
for
both, not only the dsm.opt update).
I do not know if FOLLOWSYMBOLIC should do what I expected. If that is not
the
case, my question is :
How could I restore a symboliclink-directory, that was deleted then?
(YES, I want the symbolic link instead of the recreation of a directory)
Thanks in advance.
Armando Lemos
Unibanco - Technical Support
|