Tag Info

Hot answers tagged

218

I've had success with Sysinternals Process Explorer. With this, you can search to find what process(es) have a file open, and you can use it to close the handle(s) if you want. Of course, it is safer to close the whole process. Exercise caution and judgement. To find a specific file, use the menu option "Find->Find Handle or DLL..." Type in part of the ...


34

Even assuming you meant GBps and not Gbps... I am unaware of any filesystem that has an actual throughput limit. Filesystems are simply structures around how to store and retrieve files. They use metadata, structure, naming conventions, security conventions, etc. but the actual throughput limitations are defined by the underlying hardware itself ...


33

Just be very careful with closing handles; it's even more dangerous than you'd think, because of handle recycling - if you close the file handle, and the program opens something else, that original file handle you closed may be reused for that "something else." And now guess what happens if the program continues, thinking it is working on the file (whose ...


30

I'd recommend using a regular file system instead of databases. Using file system is easier than a database, you can use normal tools to access files, file systems are designed for this kind of usage etc. NTFS should work just fine as a storage system. Do not store the actual path to database. Better to store the image's sequence number to database and have ...


17

NTFS just can't be accessed by more than one machine at the same time; even when you use Windows' Failover Clustering, only one node has real access to the volume at any given time, the other one is blocked from accessing it by the cluster subsystem. Accessing the volume from one server and sharing it out is really your only option here.


16

I'm going to put my 2 cents worth in on a piece of negative advice: Don't go with a database. I've been working with image storing databases for years: large (1 meg->1 gig) files, often changed, multiple versions of the file, accessed reasonably often. The database issues you run into with large files being stored are extremely tedious to deal with, writing ...


16

subinacl is a Windows sysadmin's power tool for doing everything to do with ownership and ACLs. You can change the ownership to anyone other than just you (you can't do this with the GUI). subinacl /file test.txt /setowner=domain\foo This lets you set the permission to any user you like, without having to be an administrator (as I believe takeown.exe ...


16

It's much better to simply use kpartx tool. usage : kpartx [-a|-d|-l] [-v] wholedisk -a add partition devmappings -d del partition devmappings -l list partitions devmappings that would be added by -a ... Example: # kpartx -l whole_disk # only listing loop0p1 : 0 518144 /dev/loop0 2048 loop0p2 : 0 3674112 /dev/loop0 520192 # kpartx -a ...


15

You don't need to split this at all. Use parted to get details about the partition table: parted image001.dd In parted, switch to byte units with the command u, then B. After that, issue the command print. You will get an output that looks like this (output is from an actual system, not an image): Model: Virtio Block Device (virtblk) Disk /dev/vda: ...


15

You're looking for "TAKEOWN.EXE", which was first in Windows Server 2003 as a standard component, and I believe a resource-kit item prior. See: http://technet.microsoft.com/en-us/library/cc738152(WS.10).aspx


15

Portability: the drive will be unreadable by computers running Windows 95, 98 or Me, (some)Linux, or any other non-Windows device. Longevity: NTFS will shorten the life of the drive. It is a journalling file system, which means that it logs changes, not just the end result, causing more writes to the drive. It also logs last access times for files, so even ...


13

As far as I know NTFS is not meant to be used like that and the only thing you will probably achieve this way is invalid data read from the filesystem. You can either unmount the filesystem from windows and mount it on linux for the migration, or you can use some clustering filesystem for this purpose. Unfortunatelly I know of no opensource cluster ...


12

Perhaps try ntfsfix (or similar program) in your favourite linux (or knoppix). Usually located in package 'ntfsprogs'. Sometimes trying to delete from Linux (with ntfs-3g or other ntfs-write-support) helps. Knoppix (Linux-Live-CD/DVD): http://www.knoppix.net/


12

Microsoft distributes at least two Sysinternals tools for this. Junction lets you manipulate junction points (symbolic links). Streams will show you alternate data streams. That page also shows you the :stream syntax to manipulate them from command-line.


12

"accumulated information that will take forever to recreate" - the time to prepare a backup / restore procedure is right now. Don't wait until the file is somehow deleted or overwritten, or the disk fails. A proper backup strategy with proven (and tested) restore capability is a must.


11

No, if you want to spend the time doing that it's fine. Generally you won't get much for the time you spend doing it, though. Keep in mind that the 2% metric, however, doesn't tell you anything. Does that mean that only 2% of files are fragmented, or that 2% of the drive space has file fragments, or something else? For certain metrics a 2% fragmented ...


11

If you're talking about a disk that doesn't contain a Windows installation, just use the "TAKEOWN" and "ICACLS" utilities: TAKEOWN /f "X:\" /r /d y ICACLS "X:\" /reset /T Then you can reset the ACLs to whatever you want. If it's a disk with a Windows 2000, XP, or Server 2003 operating system installed (don't know about Vista on this one) you could try ...


10

My approach is to not use file/directory level file permissions; use file share level permissions, and set the whole server filesystem data drive to Everyone Full Control (which becomes moot). Over the years (10+), I have found that NTFS permissions are more complex and leads to more errors. If the permissions are set wrong, or the inheritance gets broken, ...


10

Have you tried SpinRite? Steve knows his stuff, and SpinRate has saved my bacon before. The tool is very mature. You can purchase and download at grc.com. I am not a shill, just a customer.


10

NTFS isn't a cluster-aware file system, I get what you're trying to do but there's no mechanism for NTFS to let the Linux box know it's been changed and from the Linux side it has no reason to assume things CAN change without those changes coming from itself. Basically you need to use a file-level sharing system or a multi-OS block-level cluster-aware file ...


10

16TiB is the maximum volume size with 4K clusters. You'll need to do one of: reformat with a larger cluster size change the cluster size to 8K (apparently Acronis can do so) create another NTFS volume so you can use that unallocated space. You can then mount that volume onto a folder in your C drive if you prefer having a single drive, but you'll have to ...


10

I very much doubt there is a data transfer bottleneck related to a filesystem, because filesystems don't dictate implementation details that would hard-limit performance. A given driver for a filesystem on a particular config of hardware will have bottlenecks of course.


9

I have seen it handled two ways: Make the IT staff sign something swearing them to Dire Consequences should it ever be revealed that they accessed the file locations in question without explicit authorization from someone authorized to grand such access. The data is moved to a storage device not accessible by the IT staff. Both have their problems, of ...


9

I compress my IIS logs on a lot of IIS servers, albeit mainly servers that are hosting Outlook Web Access/App or low volume web sites. I have no problems doing it, and quite like the disk space savings. In general, you're trading CPU for storage by making this decision. If you're CPU-bound to begin with then this probably isn't a good tradeoff. For my OWA ...


9

Ideally, you should run some tests on random access times for various structures, as your specific hard drive setup, caching, available memory, etc. can change these results. Assuming you have control over the filenames, I would partition them at the level of 1000s per directory. The more directory levels you add, the more inodes you burn, so there's a ...


8

Your D: drive should be in extended partition. After shrinking, the free space is also in extended partition. To extend C: drive, there must be some contiguous unallocated space on the right side of C: drive. Now it's free space but now unallocated space, it's on the right side of D: drive but not C: drive. The two reasons cause extend volume greyed out. You ...


8

According to Microsoft: The traditional Windows API limits path names to 260 characters, even for applications developed for the latest version. Applications using the Unicode-aware API can use a form of path that allows up to 32767 characters. The file name has to be prefixed with \\?\, and must be an absolute path, e.g., \\?\c:\dir\file or ...


8

No, not really. No matter what you do, the process will still have to touch every single file and directory under that point to make the change (minus the ones that have inheritance turned off). For a 4.7 million file directory, it can take hours. I know this from experience. The fastest way to do it is from the server console. You can get a smidge better ...


8

COM2 is a reserved keyword, quite literally for the hardware port COM2 and I'm not sure how that file got there in the first place, since Windows won't let you create a file called COM2.log. Try it now, you'll get an error message. For fun, also try creating LPT1.txt. According to Naming Files, Paths, and Namespaces, the following are all reserved names and ...


8

These flags control the inheritance of ACLs. There are other flags, too-- IO and NP. You can see more about them in the article I link below. In short, access control entries (ACEs) flagged only with "Object Inheritance" apply that ACE to files in a folder, but not subfolders within that folder. ACEs flagged only with "Container Inheritance" apply that ACE ...



Only top voted, non community-wiki answers of a minimum length are eligible