Archived from groups: microsoft.public.win2000.general (More info?)
Hello,
I am running win2000 as my backupo server. For backups I use a third
party software.
My backups are stored on the external network storage, which is in
different building.
My network storage is using the nfs file system, which allows me to
perform bigger backups than 4G.
Normally I map the storage drive as X: drive using the map command. (I
have the services for unix installled). My map script looks like this:
>>
net use x: \\192.168.40.7\share1 /persistent:yes
/user:domainname\administrator
>>
Nothing complicated. I want to be sure that my backing software will
have the X drive available every time it starts the backup. Because I
know that backups starts at 12.00 pm I wrote a script that will map the
drive x. The script will run everyday at 11:50 pm using the scheduler.
Scripts looks like above one.
Unfortunalely when I try run that script using the scheaduled task, the
drive is never mapped.
When I run it by clicking it it runs ok and maps the drive.
I wrote another script which is started by scheduler with command:
"C:\mapx.bat > c:\log2.txt" to find out what is going on.
<<
The script looks like this:
echo %username%
net use x: /delete
net use x: \\192.168.40.7\share1 /persistent:yes
x:
dir
cd saturn_files
dir
<<
If I run it using the scheduler the log2.txt file looks like this:
C:\>echo Administrator
Administrator
C:\>net use x: /delete
C:\>net use x: \\192.168.40.7\share1 /persistent:yes
C:\>x:
X:\>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\
05/07/2005 09:11p <DIR> .
05/09/2005 04:16p <DIR> ..
03/28/2005 12:39p <DIR> WWW
05/07/2005 06:18p <DIR> venus_files
05/07/2005 07:18p <DIR> moon_files
05/07/2005 08:19p <DIR> saturn_files
04/26/2005 02:10a <DIR> saturn_files_nfs
11/08/2004 07:33p <DIR> backup_files
11/09/2004 05:04p <DIR> media_files
04/25/2005 09:24p <DIR> moon_files_nfs
05/07/2005 05:19p <DIR> print_files
05/07/2005 06:57p <DIR> backup_files_nfs
01/31/2005 10:57a <DIR> client_files_nfs
01/31/2005 02:05p <DIR> clients_files_nfs
0 File(s) 0 bytes
14 Dir(s) 128,575,807,488 bytes free
X:\>cd saturn_files
X:\saturn_files>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\saturn_files
05/07/2005 08:19p <DIR> .
05/07/2005 09:11p <DIR> ..
05/07/2005 08:55p 4,854,423,552 c_systemstate.bkf
1 File(s) 4,854,423,552 bytes
2 Dir(s) 128,575,807,488 bytes free
>From the output I must say that the drive was mapped and everything was
fine.
Unfortuantely the drive is not showing up in my computer.
When I run the same script by clicking it the output is a little bit
different:
C:\>echo Administrator
Administrator
C:\>net use x: /delete
x: was deleted successfully. (THIS IS NOT IN THE ABOVE OUTPUT)
C:\>net use x: \\192.168.40.7\share1 /persistent:yes
The command completed successfully. (THIS IS NOT IN THE ABOVE OUTPUT)
C:\>x:
X:\>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\
05/07/2005 09:11p <DIR> .
05/09/2005 04:19p <DIR> ..
03/28/2005 12:39p <DIR> WWW
05/07/2005 06:18p <DIR> venus_files
05/07/2005 07:18p <DIR> moon_files
05/07/2005 08:19p <DIR> saturn_files
04/26/2005 02:10a <DIR> saturn_files_nfs
11/08/2004 07:33p <DIR> backup_files
11/09/2004 05:04p <DIR> media_files
04/25/2005 09:24p <DIR> moon_files_nfs
05/07/2005 05:19p <DIR> print_files
05/07/2005 06:57p <DIR> backup_files_nfs
01/31/2005 10:57a <DIR> client_files_nfs
01/31/2005 02:05p <DIR> clients_files_nfs
0 File(s) 0 bytes
14 Dir(s) 128,575,807,488 bytes free
X:\>cd saturn_files
X:\saturn_files>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\saturn_files
05/07/2005 08:19p <DIR> .
05/07/2005 09:11p <DIR> ..
05/07/2005 08:55p 4,854,423,552 c_systemstate.bkf
1 File(s) 4,854,423,552 bytes
2 Dir(s) 128,575,807,488 bytes free
Any ideas what could be wrong. Could it be related to nfs?
Bart
Hello,
I am running win2000 as my backupo server. For backups I use a third
party software.
My backups are stored on the external network storage, which is in
different building.
My network storage is using the nfs file system, which allows me to
perform bigger backups than 4G.
Normally I map the storage drive as X: drive using the map command. (I
have the services for unix installled). My map script looks like this:
>>
net use x: \\192.168.40.7\share1 /persistent:yes
/user:domainname\administrator
>>
Nothing complicated. I want to be sure that my backing software will
have the X drive available every time it starts the backup. Because I
know that backups starts at 12.00 pm I wrote a script that will map the
drive x. The script will run everyday at 11:50 pm using the scheduler.
Scripts looks like above one.
Unfortunalely when I try run that script using the scheaduled task, the
drive is never mapped.
When I run it by clicking it it runs ok and maps the drive.
I wrote another script which is started by scheduler with command:
"C:\mapx.bat > c:\log2.txt" to find out what is going on.
<<
The script looks like this:
echo %username%
net use x: /delete
net use x: \\192.168.40.7\share1 /persistent:yes
x:
dir
cd saturn_files
dir
<<
If I run it using the scheduler the log2.txt file looks like this:
C:\>echo Administrator
Administrator
C:\>net use x: /delete
C:\>net use x: \\192.168.40.7\share1 /persistent:yes
C:\>x:
X:\>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\
05/07/2005 09:11p <DIR> .
05/09/2005 04:16p <DIR> ..
03/28/2005 12:39p <DIR> WWW
05/07/2005 06:18p <DIR> venus_files
05/07/2005 07:18p <DIR> moon_files
05/07/2005 08:19p <DIR> saturn_files
04/26/2005 02:10a <DIR> saturn_files_nfs
11/08/2004 07:33p <DIR> backup_files
11/09/2004 05:04p <DIR> media_files
04/25/2005 09:24p <DIR> moon_files_nfs
05/07/2005 05:19p <DIR> print_files
05/07/2005 06:57p <DIR> backup_files_nfs
01/31/2005 10:57a <DIR> client_files_nfs
01/31/2005 02:05p <DIR> clients_files_nfs
0 File(s) 0 bytes
14 Dir(s) 128,575,807,488 bytes free
X:\>cd saturn_files
X:\saturn_files>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\saturn_files
05/07/2005 08:19p <DIR> .
05/07/2005 09:11p <DIR> ..
05/07/2005 08:55p 4,854,423,552 c_systemstate.bkf
1 File(s) 4,854,423,552 bytes
2 Dir(s) 128,575,807,488 bytes free
>From the output I must say that the drive was mapped and everything was
fine.
Unfortuantely the drive is not showing up in my computer.
When I run the same script by clicking it the output is a little bit
different:
C:\>echo Administrator
Administrator
C:\>net use x: /delete
x: was deleted successfully. (THIS IS NOT IN THE ABOVE OUTPUT)
C:\>net use x: \\192.168.40.7\share1 /persistent:yes
The command completed successfully. (THIS IS NOT IN THE ABOVE OUTPUT)
C:\>x:
X:\>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\
05/07/2005 09:11p <DIR> .
05/09/2005 04:19p <DIR> ..
03/28/2005 12:39p <DIR> WWW
05/07/2005 06:18p <DIR> venus_files
05/07/2005 07:18p <DIR> moon_files
05/07/2005 08:19p <DIR> saturn_files
04/26/2005 02:10a <DIR> saturn_files_nfs
11/08/2004 07:33p <DIR> backup_files
11/09/2004 05:04p <DIR> media_files
04/25/2005 09:24p <DIR> moon_files_nfs
05/07/2005 05:19p <DIR> print_files
05/07/2005 06:57p <DIR> backup_files_nfs
01/31/2005 10:57a <DIR> client_files_nfs
01/31/2005 02:05p <DIR> clients_files_nfs
0 File(s) 0 bytes
14 Dir(s) 128,575,807,488 bytes free
X:\>cd saturn_files
X:\saturn_files>dir
Volume in drive X is Single disk
Volume Serial Number is 12CF-5493
Directory of X:\saturn_files
05/07/2005 08:19p <DIR> .
05/07/2005 09:11p <DIR> ..
05/07/2005 08:55p 4,854,423,552 c_systemstate.bkf
1 File(s) 4,854,423,552 bytes
2 Dir(s) 128,575,807,488 bytes free
Any ideas what could be wrong. Could it be related to nfs?
Bart