Knut,
I think you will find you can use wildcards with the mv command (mv /vol/vol1/data1/sub1/* /vol/vol1/data1
ß that would take EVERYTHING under sub1 and drop it under data1)
Of course, as Michael mentioned this should be tested first either with the simlautor, or on a test vol.
Good luck.
Brett.
From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com]
On Behalf Of Knut Kristan Weber
Sent: Friday, 29 February 2008 10:43 PM
To: 'Bernardoff, Michael'
Cc: toasters@mathworks.com
Subject: RE: move data within CIFS
Hi thanks, Michael,
the syntax is:
usage: mv file1 file2
So we would have do do something like „for each file in directory ...“ and „for each subdirectory in directory“ ...
If we would run this from an external server we would have to use plink.
But the server would have to read the structure to know what to tell plink. With tens or hundreds of thousand small files this would take presumably
more time than to copy them directly.
With kind regards.
Knut
From: Bernardoff, Michael [mailto:bmichael@netapp.com]
Sent: Friday, February 29, 2008 11:58 AM
To: k.weber@science-computing.de
Subject: Re: move data within CIFS
You should probably try the "mv" command from the netapp contoler (on a test dir first). Maybe you'll have to change the privilege mode to advanced or diag.
I you've any doubt during the real m€ove take a snapshot before proceeding to be able to quicky restore in case of problem
_________________
Michael Bernardoff
FSE@netapp
+33 679 028 224
-----Original Message-----
From: Knut Kristan Weber <k.weber@science-computing.de>
To: toasters@mathworks.com <toasters@mathworks.com>
CC: winserver-team@science-computing.de <winserver-team@science-computing.de>
Sent: Fri Feb 29 09:20:22 2008
Subject: move data within CIFS
Hello *,
we have a NetApp working as a CIFS-Filer.
A collegue wants to move about 6 TB of data in the directory scruture one
level up within the same volume.
Using the filer with a LUN as a block device would work like this.
A normal windows Server also can move data in between the same drive letter
without copying it - just in a scond.
But the NetApp has no solution I know so far to make a move when it works
itwself as a CIFS filer.
And even worse it does not only cost disk space because it copies and
deletes afterwards, but also all the 6 TB data move over the LAN.
Is there something like a move in advanced mode or any undocumented ways?
Or to use NDMP copy in such a way?
thanks a lot in advance
------------------------------------------------------------
with kind regards
______________________________________creating IT solutions
Dipl.-Chem. Knut Kristan Weber
Senior Solutions Engineer
CAx Professional Services
science + computing ag Hagellocher Weg 73
phone +49 7071 94 57 473 72070 Tübingen, Germany
fax +49 7071 94 57 411 http://www.science-computing.de
--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196