Quantcast
Channel: File Services and Storage forum
Viewing all 395 articles
Browse latest View live

Shadow Copy via Script

0
0

Hello,

I setup multiple Windows 2008 R2 Servers. I have managed to script a lot of what needs to be setup but I would like to script the Shadow Copy.

I would like to match exactly what happens if you click the Enable button on the config page, including the schedule and the size limitation. Does anyone have this script?

Thank you for you help


Recover corrupted .bkf file by SysTools BKF Repair.

0
0
Hi All,

My .bkf file corrupted due to power failure, and now i bought SysTools BKF Repair to retrieve the data from .bkf files. Theare are a few catalogs, say Catalog 1 and Catalog 2, in the corrupted .bkf files, and for some unknown reason the SysTools always loads the same catalog (Catalog 1), but really i want to load Catalog 2, so i deleted the Catalog 1 in the corrupted .bkf file, however SysTools is still loading up Catalog 1 even i deleted it in the .bkf file.

Can someone in here plz shed me a light will be much appreciated.

iSCSI Initiator Session Logout

0
0
On GREPI02 (W2K3 SP2 x86, iSCSI Initiator 2.08) I can't logout the iSCSI Initiator session on the "Targets" tab and then "Details" button as I get the following error:

The session cannot be logged out since a device on that session is currently being used.

When I attempt this session logout I also get the following System event entries:

Event Type:    Information
Event Source:    MSiSCSI
Event Category:    None
Event ID:    116
Date:        5/8/2010
Time:        9:34:56 AM
User:        N/A
Computer:    GREPI02
Description:
Removal of device MPIO\DISK&VEN_IET&PROD_VIRTUAL-DISK&REV_0___\1&7F6AC24&1&343934353534303030303030303030313030303334423332303130_________0 on iSCSI session ffffffff8a0762ec-400001370000001a was vetoed by STORAGE\Volume\1&30a96598&0&Signature2E8F7689Offset7E00Length9FFABCC00.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 06 00 00 00               ....   

Event Type:    Information
Event Source:    PlugPlayManager
Event Category:    None
Event ID:    271
Date:        5/8/2010
Time:        9:34:56 AM
User:        N/A
Computer:    GREPI02
Description:
The Plug and Play operation cannot be completed because a device driver is preventing the device from stopping. The name of the device driver is listed as the vetoing service name below.

 Vetoed device: MPIO\DISK&VEN_IET&PROD_VIRTUAL-DISK&REV_0___\1&7F6AC24&1&343934353534303030303030303030313030303334423332303130_________0
 Vetoing device: STORAGE\Volume\1&30a96598&0&Signature2E8F7689Offset7E00Length9FFABCC00
 Vetoing service name: FileSystem\Ntfs
 Veto type 6: PNP_VetoDevice

When Windows attempts to install, upgrade, remove, or reconfigure a device, it queries the driver responsible for that device to confirm that the operation can be performed. If any of these drivers denies permission (query-removal veto), then the computer must be restarted in order to complete the operation.

User Action
Restart your computer.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


I can do this same logout from another W2K3 SP2 virtual machine and it works fine so appears to be something specific to this GREPI02 node.
Joe

WMI Bug with Scale out file server

0
0

Think I've uncovered a WMI bug with Scale out file server. The issue manifests itself in the fact that SOFS utilizes a DNS name pointing to multiple nodes. The problem is that certain calls seem to rely on named pipes on the SOFS cluster object, and because that name could point at any node in the cluster, the call fails if it happens to try connecting to another node instead. To reproduce, use this powershell cmdlet (either locally from one of the SOFS nodes or remotely):

gwmi Win32_ClusterShare

And sometimes you'll get output of all of the cluster shares including SOFS shares, and other times you'll get nothing. Running procmon during a failure shows an Access Denied failure on the srvsvc named pipe of the SOFS cluster object (in my case, CLOUD-VMMLIB):

 

This call succeeds when WMI returns all of the SOFS shares. I can think of two workarounds for the issue. First, either modify the local hosts file on each SOFS node to point the SOFS name to the local node (this is what I implemented and confirmed works), or second, add the computer account of each node in the SOFS cluster to the local administrators group on every other node.

Regardless, this definitely seems like a bug because anything that relies on the WMI data (BITS in VMM for instance) fails because it doesn't think any shares exist in the SOFS cluster.


Jeff Graves, ORCS Web, Inc.

MSFT_ISCSITarget.Connect() Method is throwing System.Management.ManagementException "not found"

0
0

I am using c# wmi calls to connect to connect to ISCSI LUN through ISCSI initiator. I am using windows server 2012 r2. From server manager I am able to connect through ISCSI initiator. From GUI every thing is working fine.  I am able to list ISCSISessions through ISCSISession.GetInstances() in c# code. WmiExplorer is also showing that connect method is there. Generated class contains the connect() method.

System.Management.ManagementException was unhandled by user code
  HResult=-2146233087
  Message=Not found  
  Source=System.Management
  StackTrace:
       at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.Initialize(Boolean getObject)
       at System.Management.ManagementObject.get_ClassPath()
       at System.Management.ManagementObject.GetMethodParameters(String methodName, ManagementBaseObject& inParameters, IWbemClassObjectFreeThreaded& inParametersClass, IWbemClassObjectFreeThreaded& outParametersClass)
       at System.Management.ManagementObject.GetMethodParameters(String methodName)
       at ROOT.MICROSOFT.WINDOWS.STORAGE.ISCSITarget.Connect(String AuthenticationType, String ChapSecret, String ChapUsername, String InitiatorInstanceName, String InitiatorPortalAddress, Boolean IsDataDigest, Boolean IsHeaderDigest, Boolean IsMultipathEnabled, Boolean IsPersistent, String NodeAddress, Boolean ReportToPnP, String TargetPortalAddress, UInt16 TargetPortalPortNumber, ManagementBaseObject& CreatediSCSISession) at ROOT.Microsoft.Windows.Storage.MSFT_iSCSITarget.cs:line 402
      

AvailableDisk.AddToCluster() throwing System.Management.ManagementException with message generic failure

0
0

I am trying to add available disk to cluster using c# wmi calls. I have generated the class with visual studio.Disk is added to cluster successfully . But in the end it is throwing exception.

System.Management.ManagementException was unhandled by user code
  HResult=-2146233087
  Message=Generic failure  
  Source=System.Management
  StackTrace:
       at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.InvokeMethod(String methodName, ManagementBaseObject inParameters, InvokeMethodOptions options)
       at CloudStack.Plugin.WmiWrappers.ROOT.MSCLUSTER.AvailableDisk.AddToCluster(String ResourceName, String& Path) ROOT.MSCluster.MSCluster_AvailableDisk.cs:line 919

            

ftp custom membership provider dll is never invoked

0
0
Hi!
I've implemented custom membership provider dll for ftp. It was working perfectly fine on windows server 2012R2 but it's never invoked on Windows Server 2008.

I've run out of ideas why. I'm afraid it have something to the with the version of the asp.net but I'm not sure. Any help will be appreciated!

 - I'm working on windows server 2008.
 - I've asp.net 4.5 installed on the server
 - I've installed this thing: http://www.iis.net/downloads/microsoft/ftp
 - Port 21 is open (anonymous logging is working just fine)
 - The dll: class library, target .net framework 4
 - the dll is added to GAC
 - I've registered new custom provider in IIS and connected it with ftp site. 
   It's registered as ManagedProvider. 
   FtpFormsAuthenticationProvider.FtpAuthDemo,FtpFormsAuthenticationProvider,version=1.0.0.0,Culture=neutral,PublicKeyToken=056911470e973009

    The token is correct -- I've checked it. 

The code:

    
    public class FtpAuthDemo : BaseProvider,
            IFtpAuthenticationProvider,
            IFtpRoleProvider
        {
            //Reading from config file did not work for some reason
            private string _path = "http://localhost:81/ftp/";
            bool IFtpAuthenticationProvider.AuthenticateUser(
                string sessionId,
                string siteName,
                string userName,
                string userPassword,
                out string canonicalUserName)
            {
                EventLog.WriteEntry("ftp", "DLL CALLED");
                canonicalUserName = userName;
                return true;
            }
            bool IFtpRoleProvider.IsUserInRole(
                string sessionId,
                string siteName,
                string userName,
                string userRole)
            {
                return true;
            }
        }


I'm using FileZilla as ftp client. The response is:

    Status: Connecting to ***...
    Status: Connection established, waiting for welcome message...
    Response: 220 Microsoft FTP Service
    Command: USER admin
    Response: 331 Password required for admin.
    Command: PASS ***
    Response: 530 User cannot log in.
    Error: Critical error
    Error: Could not connect to server

[Forum FAQ] How to map a drive to a domain name

0
0

Symptom

There is a shared folder (Share) on a DC of contoso.com. If you access the shared folder using the path\\contoso.com\Share, you will find the shared folder is empty. If you try to create a new folder in \\contoso.com\Share, you will get an error“Could not find this item. This is no longer located in contoso.com. Verify the item's location and try again”. (Figure 1)

Figure 1

However, you can create a new folder in\\Controller\Share or\\Controller.contoso.com\Share without issue (Controller is the server name). The NETLOGON and SYSVOL shares are not subject to this error.

Cause

Mapping a drive to the domain name is reserved for DFS. The SMB client will connect to IPC$ and get a list of DFS namespaces. If DFS has not been setup there is nothing to refer, thus the blank“folder.”

When using the controller name, either short or FQDN, it establishes a normal SMB share connection. This is why you can create folders through explorer.

Solution

You must create folders/share on the DFS root through the DFS Management tool, or via CMD/PowerShell. You cannot achieve this via Windows Explorer.

Please refer to Figure 2 and Figure 3, create a DFS domain-namespace namedShare, then you can create a new folder in \\contoso.com\Share.

Figure 2

Figure 3


Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.


Error "document not saved" when want to save Word/Excel files on NAS server

0
0

Hello everybody!

I have a NAS server (QNAP storage).I want to have some folders with these permissions : 

1.nobody can create or delete folders in first parent folders (blue folder and red folders )

2.everybody can create/save folders,docs... in it. (Black folders)

flowchart

when I set permission like picture below,people can not save documents in Excel or Word format in folders ( I have this problem just for Word and Excel).they face with errors : document not saved / access denied,contact your administrator.

special permission for blue folder (domain users) 

(include inheritable permission) and (replace all child subfolders...) are unchecked.

  • traverse / execute files
  • List folders/ read data
  • Read attribiutes
  • Read extended attribiutes
  • Read permission

special permission for red folder :

(include inheritable permission) and (replace all child subfolders...) are unchecked.

  • traverse / execute files
  • List folders/ read data
  • Read attribiutes
  • Read extended attribiutes
  • create files / write data
  • create folders / append data
  • write attributes
  • write extended attributes
  • delete subfolders
  • delete
  • Read permission

special permission for black folder :

these folders inherit permissions from parents.

(include inheritable permission is checked.

(replace all child subfolders...) is unchecked.

when I uncheck "delete" permission in red folders and save it,"modify" permission in main permission will uncheck,too.I dont know why?in this situation,people can save docs, but they can rename/delete folders,too ( I dont want they delete or rename parent folders).

what I must do?

regards,



atiye moghaddam

DFS Replication problem between server 2012 and server 2008 R2

0
0

Dears:

i have clustered file server of 2 servers windows 2008 r2 , and is configured for DFS replication with the DR site on windows server 2008 r2

now we have storsimple , and we have configured it to work with windows server 2012 , 

I have configured the storsimple server to DFS replication with the clustered file server 

no replication is appeared and no errors appeared in the event log


John Yassa - Senior Platform Engineer - http://johnyassa.wordpress.com/

Error mounting DFS on CentOS 6.4

0
0

Hi,

I'm having a few issues mounting a windows DFS share on a centos 6.4 server. Initially I followed the instructions on this blog but I'm still getting the error below.

http://mikemstech.blogspot.co.uk/201...-in-linux.html

I've installed/updated cifs-utils and keyutils and added the lines to request-key.conf.

We're now getting the error below.

/]sudo mount -t cifs //domain.dev.com/share/content /mnt/testdfs -o username=domain/user

Password:

mount error(40): Too many levels of symbolic links

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Thanks!

Filtered ports vulnarble?

0
0

Hello, i am pentesting anserver and i waswondering if the Filtered ports are  still vuln?

I've run an NMAP of  the server and i got around 4 filtered ports

135/tcp   filtered msrpc
139/tcp   filtered netbios-ssn

445/tcp   filtered microsoft-ds
593/tcp   filtered http-rpc-epmap

IIS Security Issue : Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

0
0

hi I am Having 2 servers in load balancing. i have hosted my application in both the servers. When i browse it comes upto Login PAge and shows me the error 

Then  if Restart the IIS or REstart the App Pool it works fine for sometime and i receive the same later. 

Please Advice.

Volume Shadow Copy Service - Recovery

0
0

Hi,

I created COW Snapshots using DoSnapshotSet Method.

I am using IVssBackupComponents for Recoverying my volume to a previous state using these COW snapshots.

I am using the API RevertToSnapshot() for the same.

My Volume gets recovered successfully, however all the subsequent(those created after the Currently recovered snapshot)COW snapshots gets deleted after Recovery.

Because of this at a later point in time, I am not able to use these COW snapshots(Shadow copies).

Is there a way to Recover my Volume, without the snapshots getting deleted ?

-Saurabh Bhansali.

Confused about CSV IO and performance counters in a scale out file server

0
0

Hi all,

A quick question about CSV IO paths when using in a SOFS.

I've been reading through the following article about performance monitoring CSV volumes.  http://blogs.msdn.com/b/clustering/archive/2014/06/05/10531462.aspx

Looking at our performance counters under "Cluster CSV File System" when observing IO on the CSV volume it seems that all IO is going through the redirected route, instead of direct IO.

The following counters are always zero and should represent direct IO?

  • IO Reads/sec
  • IO Writes/sec

The following counters are showing the correct counters

  • Reads/sec
  • Writes/sec

Does this imply that all IO is going through redirected IO instead of direct IO?

Is this a symptom of running CSV on top of a clustered storage space?


Windows 7 running Foxpro program error

0
0

Hi,

I am experiencing a very strange error while running foxpro executable program from a client machine. when I run the executable I get the following error and windows explorer change the current path: working directory and moves one level back.

The exe foxpro program is stored on a shared drive on windows server 2008 r2, and it was working fine all time.

Any idea about this behavior ?

Thank you,

Tarek Faraj



Program For Logging Hard Disk Activity

0
0

Hey Everyone,

I am having an issue with a server in which the Hard disks keep failing, within the last year 3 of them have died.

I am in need of a program that can record logs of the hard drive activity overnight, a period of about 12 hours. This will help us track down at what time the issue is occuring, and then what is causing it. Something similar to the built-in windows hard disk monitor is task manager, but with the ability to record would be perfect. I have tried other programs but they log in text, and it would take hours of looking through the logs to find any abnormalities

Does anyone know of such a software?

Block accessing NFS v3 Share from AIX

0
0

Hello Gurus,

I have an AIX 6.1 server hosting NFS and exported a share \\aixserver\share to a windows 2008 R2 server.

When I try to access \\aixserver\share from winserver I can access for all users in windows. I dont have any User Name Mapping enabled Since I have exported the share as Root Security.

Is there any way to limiting only one user to access the \\aixserver\share ? or Can there be any logs to say that the current user tried to access the \\aixserver\share ?

Regards

Anand  

DFS-R Health Check

0
0

Here is a DFS-R Health Check utility i wrote, so i though i would post a quick note about it.

http://networkadminkb.com/Utilities/Descriptions/DFS-R%20Health%20Check.aspx

If you have a large DFS-R implementation to support, you know trying to find a free utility that can quickly generate a single health report on many servers at once is nearly impossible.  (i couldn't find a single free utility).  Microsoft has their Health Reporting tool that can be ran from the command line and GUI, but it will only report on one replication group at a time.  If you have 100s of these, that's 100s of reports to generate and review.

So i decided to write a quick utility that can monitor all of our 50+ DFS-R servers/100s of replication groups and create a single report.  I can check that report daily and take action to get more information if something is abnormal, otherwise i can ignore it.  I also wrote it so it will discover new replication groups/servers automatically, so there is not much to configure.  As long as you give it the the central hub in a DFS-R replication topology, it will discover all partners from that hub.  If you have mulitple hubs, specify all of the hubs in a single text file.

The first time i ran it, it mmediately told me about 3 problems i didn't know i had, because i hadn't checked on those replication groups in months.  Luckily, they were just minor errors, but being proactive is what this utiltiy is to be used for.  If it reports a problem, you still need to review the issue, and come up with a solution on your own...its a free utility after all.

Its simple and easy to use.  Give it a try.  Comments are welcome.

Event ID 4625 Logon Failure event

0
0
I have a Windows 2012R2 file server that was upgraded from Server 2012. Initially the file server was working and users were able to access their home directories on the single shared folder. A few days ago the server stopped allowing access to the shared folder and began giving the following event in the security log. I double-checked the local security policies "Allow logon locally" had everyone and "Deny logon locally" had no users or groups. I can login to the server as one of the user accounts and access that user's homedirectory by mapping to the share\%username%, however, when I try to map from another computer I get the following error: logon failure the user has been granted the requested logon type I disjoined the server from the domain then rejoined it. I also moved the computer account to the Computers container in AD and rebooted the server (just in case someone had set a group policy). I stopped sharing the shared folder then reshared it with the correct group permissions, which has full control for share rights and modify for ntfs acls. I've tried adding a test user to the share group with full control then modify ntfs acls. I tried to run sysprep on the server, but it fails with an error that it can't be ran on a machine that has been upgraded from a previous version of Windows. I ran cacls on the ntfs folders and the permissions are set correctly. Same is true when viewed from the gui. I am out of ideas. Can anyone please assist? --------------------------------------------------------------------------------- Event ID 4625 on server: An account failed to log on. Subject: Security ID: NULL SID Account Name: - Account Domain: - Logon ID: 0x0 Logon Type: 3 Account For Which Logon Failed: Security ID: NULL SID Account Name: xxxxxxxx Account Domain: xxxxxxxx Failure Information: Failure Reason: The user has not been granted the requested logon type at this machine. Status: 0xC000015B Sub Status: 0x0 Process Information: Caller Process ID: 0x0 Caller Process Name: - Network Information: Workstation Name: xxxxxxxx Source Network Address: xxxxxxxx Source Port: 50146 Detailed Authentication Information: Logon Process: NtLmSsp Authentication Package: NTLM Transited Services: - Package Name (NTLM only): - Key Length: 0 This event is generated when a logon request fails. It is generated on the computer where access was attempted. The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe. The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network). The Process Information fields indicate which account and process on the system requested the logon. The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases. The authentication information fields provide detailed information about this specific logon request. - Transited services indicate which intermediate services have participated in this logon request. - Package name indicates which sub-protocol was used among the NTLM protocols. - Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
Viewing all 395 articles
Browse latest View live


Latest Images