I don't have found the solution, i have just made a modification on my vcb script to made this:
#!/bin/sh rm -rf /vmfs/volumes/vmserv3:storage1/* # disaster recovery des machines virtuelles listees LISTEMACHINEPROD="dnsin.in.ac-lille.fr rr1.in.ac-lille.fr" for MACHINEPROD in $LISTEMACHINEPROD ; do NAME=${MACHINEPROD%%.*} vcbMounter -a ipaddr:$MACHINEPROD -r /vmfs/volumes/vmserv3:storage1/$NAME dsmc archive -subdir=yes -archmc=MC_ESX /vmfs/volumes/vmserv3:storage1/$NAME/* done And i have put it on a crontab for the moment. Thanks for your help. Howard Coles a écrit : > In this section below: > > def clientaction vmserv3 action=a Options="-subdir=yes -archmc=MC_ESX" > objects="/vmfs/volumes/vmserv3:storage1/" > > Change to: > > def clientaction vmserv3 action=a Options="-subdir=yes -archmc=MC_ESX" > objects="/vmfs/volumes/vmserv3:storage1/*" > (Note the ' * ' at the end of the Objects line) > > And see what happens. > Without it you are just telling it to get that directory, not all the > files in that directory, which will exclude subdirs, I think. I could > be wrong, not looking at help files. > > See Ya' > Howard > -----Original Message----- > From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of > Armando.ML > Sent: Monday, February 11, 2008 9:44 AM > To: ADSM-L@VM.MARIST.EDU > Subject: [ADSM-L] Archive ESX virtual machines > > Hello all, > > I try to made an archive of my ESX machines, but it doesn't work!!! > > To make my archives i installed the tsm client on my ESX server and my > dsm.sys looks like this: > > SErvername server1 > COMMmethod TCPip > TCPPort 1500 > TCPServeraddress srvtsm > Httpport 1581 > Tcpclientaddress vmserver > Tcpclientport 1501 > nodename vmserv3 > schedmode prompted > passwordaccess generate > > Schedlogretention 7 d > Errorlogretention 7 d > PRESCHEDULECMD "sh /opt/tivoli/tsm/client/ba/bin/save_esx.sh" > > > include.archive /vmfs/volumes/vmserv3:storage1/.../* > > > My script to save my Virtual Machine looks like this: > > #!/bin/sh > > rm -rf /vmfs/volumes/vmserv3:storage1/* > > # disaster recovery > > LISTEMACHINEPROD="dns1 dns2" > > for MACHINEPROD in $LISTEMACHINEPROD ; do > vcbMounter -a ipaddr:$MACHINEPROD -r > /vmfs/volumes/vmserv3:storage1/$MACHINEPROD > done > > And to made a test i defined a client action like this: > > def clientaction vmserv3 action=a Options="-subdir=yes -archmc=MC_ESX" > objects="/vmfs/volumes/vmserv3:storage1/" > > But the schedule don't archive the sub directory's in > /vmfs/volumes/vmserv3:storage1/ > > if i look into /vmfs/volumes/477e0444-24ccafd8-3361-0019b9ed5bb1/ i > have my 2 directory's created by the save_esx.sh script. > > But on my dsmsched.log i have this: > > 02/11/2008 14:50:26 --- SCHEDULEREC QUERY BEGIN > 02/11/2008 14:50:26 --- SCHEDULEREC QUERY END > 02/11/2008 14:50:26 Next operation scheduled: > 02/11/2008 14:50:26 > ------------------------------------------------------------ > 02/11/2008 14:50:26 Schedule Name: @44 > 02/11/2008 14:50:26 Action: Archive > 02/11/2008 14:50:26 Objects: > /vmfs/volumes/vmserv3:storage1/ > 02/11/2008 14:50:26 Options: -subdir=yes -archmc=MC_ESX > 02/11/2008 14:50:26 Server Window Start: 14:47:12 on 02/11/2008 > 02/11/2008 14:50:26 > ------------------------------------------------------------ > 02/11/2008 14:50:26 > Executing scheduled command now. > 02/11/2008 14:50:26 > Executing Operating System command or script: > sh /opt/tivoli/tsm/client/ba/bin/save_esx.sh > 02/11/2008 14:52:28 Finished command. Return code is: 0 > 02/11/2008 14:52:28 --- SCHEDULEREC OBJECT BEGIN @44 02/11/2008 14:47:12 > 02/11/2008 14:52:28 Archive function invoked. > > 02/11/2008 14:52:29 Directory--> 512 /vmfs [Sent] > 02/11/2008 14:52:29 Directory--> 512 /vmfs/volumes > [Sent] > 02/11/2008 14:52:29 Directory--> 1,260 > /vmfs/volumes/vmserv3:storage1 [Sent] > 02/11/2008 14:52:29 Normal File--> 1,474,560 > /vmfs/volumes/vmserv3:storage1/.fbb.sf [Sent] > 02/11/2008 14:52:29 Normal File--> 63,143,936 > /vmfs/volumes/vmserv3:storage1/.fdc.sf [Sent] > 02/11/2008 14:52:32 Normal File--> 255,655,936 > /vmfs/volumes/vmserv3:storage1/.pbc.sf [Sent] > 02/11/2008 14:52:36 Normal File--> 260,374,528 > /vmfs/volumes/vmserv3:storage1/.sbc.sf [Sent] > 02/11/2008 14:52:36 Normal File--> 4,194,304 > /vmfs/volumes/vmserv3:storage1/.vh.sf [Sent] > 02/11/2008 14:52:36 Archive processing of > '/vmfs/volumes/vmserv3:storage1/' finished without failure. > > 02/11/2008 14:52:37 --- SCHEDULEREC STATUS BEGIN > 02/11/2008 14:52:37 Total number of objects inspected: 8 > 02/11/2008 14:52:37 Total number of objects archived: 8 > 02/11/2008 14:52:37 Total number of objects updated: 0 > 02/11/2008 14:52:37 Total number of objects rebound: 0 > 02/11/2008 14:52:37 Total number of objects deleted: 0 > 02/11/2008 14:52:37 Total number of objects expired: 0 > 02/11/2008 14:52:37 Total number of objects failed: 0 > 02/11/2008 14:52:37 Total number of bytes transferred: 557.81 MB > 02/11/2008 14:52:37 Data transfer time: 3.78 sec > 02/11/2008 14:52:37 Network data transfer rate: 150,725.39 KB/sec > 02/11/2008 14:52:37 Aggregate data transfer rate: 63,206.56 KB/sec > 02/11/2008 14:52:37 Objects compressed by: 0% > 02/11/2008 14:52:37 Elapsed processing time: 00:00:09 > 02/11/2008 14:52:37 --- SCHEDULEREC STATUS END > 02/11/2008 14:52:37 --- SCHEDULEREC OBJECT END @44 02/11/2008 14:47:12 > > if someone know an issue to this problem, help is very appreciated. > > > -- > Martins Armando > -- Martins Armando