Tag Info

New answers tagged

0

XYZ's comments regarding the downside of using ATTRIB are helpful, however it is not sufficient to simply follow a robocopy /MIR command with a robocopy /COPY /M command, to reset archive bits selectively. Robocopy will not reset the bit unless it actually copies the file, and (by default) it will not copy 'Same' files. Therefore, ROBOCOPY source ...


0

(I'd leave this as a comment but I can't yet :( ) Couldn't you mount --bind the new directory? Hard links won't work for this. mount --bind /home/cpanel/ /usr/local/cpanel/ To make the mount permanent you'd have to add it to /etc/fstab Copy the directory to the new directory first, then mount. Check to see if everything works. I don't think you'll ...


0

NFS doesn't save file modification times or attributes like that. If you need it, use a LUN and iSCSI to a server that can host the files and use a filesystem that does this (NTFS, etc).


2

You can either reboot or terminate the process that has the file open. So long as the file is still in use, its space cannot be freed.


2

I've used mount -o rw,remount / without problems many times. The "Abort forced by user" message indicates there may be a problem with the filesystem, which can only be fixed with an fsck. Unfortunately, you'll probably have to reboot to do this. Another alternative is that the disk is a USB or flash device with a physical read-only toggle, which needs to be ...


6

There is generally no need to backup anything under dev, since it's mostly generated upon boot by udev. I did a lot of OS migrations by simply rsyncing everything except stuff like proc, dev, sys etc. Just make sure when you setup your backups, ALWAYS test a recovery, to see if everything is functioning properly.


3

the read speed should be 250Mb/s (31.25MB/s) First off, it is very unlikely you will achieve this performance level with 4 7200 rpm HDDs with a random read access pattern. Even if your disks will be able to read larger block sizes ~ 16-64 KB, the maximum for I/O operations per second for a 7.2k disk is ~100 for non-sequential access. In my experience, ...


1

Sometimes we have to separate i/o from a machine for example case of remote file system ? Why we do that ? There are a gazillion reasons for this, but those reasons can usually be classified into the following categories: increased performance increased reliability increased availability shared filesystems physical limitations (e.g not enough ...


1

fsfreeze uses the FIFREEZE ioctl. Here is the kernel function call chain: ioctl_fsfreeze() freeze_super() sync_filesystem() From the comment above the sync_filesystem() function: "[w]rite out and wait upon all dirty data associated with this superblock [filesystem]. Filesystem data as well as the underlying block [will be written."


1

You can not rsync repository per se as directory at FS, because at physical layer it doesn't correlate with logical content. You must to get content of repository (better - without SVN-related metadata) as real tree on server-side before and rsync this tree Using (any) SVN-client (CLI svn may already exist or you have to install it), you'll svn export from ...


2

As mentioned above, /proc is housekeeping info from the running processes on the machine. It is a virtual filesystem, does not take any diskspace and only contains symlinks and 'files' with information that are generated by the kernel or are read by the kernel (some of them are writable). However, these error messages are completely harmless. What happened ...


4

Actually, the "/proc/" folder is for housing the process info and linkage itself to the irq, file discriptor and other kernel sources (which is expected to see the looping link and depending the process itself operation.) Therefore, it's unable to remove when the process is up and running as the process is occupying the resource on this folder. Also, the ...


-1

You have to open the file with 'w' for write to work: $fh = fopen('test.tmp', 'w');


4

Because of the short file name feature of windows NT, the OS automatically strips tilde characters from the file name, leaving just a space. What this means is that ABC~123.txt becomes ABC 123.txt when windows writes the file to the destination. When you then go and copy an actual file called 'ABC 123.txt' it complains because there's a file with ...


3

You can test this fairly easily create a tar file tar -cf test.tar this.txt that.txt Get it's inode number for later comparison ls -i test.tar 24903987 test.tar Mount the test.tar archive and delete a file from it archivemount test.tar /mnt/a rm /mnt/a/that.txt ls -i test.tar 24903987 test.tar Note above that the file retains it's original inode ...


1

If I understand archivemount correctly, it does not actually update the contents of the archive file before you unmount it. When unmounting, it re-creates the archive and sure, with a huge archive file this will be slow.


1

This seems to me like a permission issue on the host: By default, the qemu/kvm process is started as a non-privileged user (libvirt-qemu in Debian Wheezy). So only files accessible (or writable) by that user are accessible (writable) by the VM guests. You might try setting ownership of the directory to the user qemu is run as (see user= and group= in ...


0

Execute this in the current directory: for f in `ls`; do iconv --from-code=iso-8859-1 --to-code=utf-8 $f -o $f; done


0

If you you have host based firewall and using nfs, check out: http://wiki.debian.org/SecuringNFS You may have specify which ports your daemons are using, so they aren't being randomly assigned.


0

I'm using Yandex.Disk https://disk.yandex.ru/pay/tariffs/ It offers WebDAV access. You can mount it like a local folder via webdavfs. At this moment (june 2014) tariffs include 10G for free forever, 1T for 9000 rubles (nearly 260 USD) per year and more. VISA and MasterCard payments accepted. Speed is good from Russia and CIS.


0

First, find the underlying dm device: ls -l /dev/mapper/vg01-srvvol Example output: lrwxrwxrwx 1 root root 7 Jan 28 14:32 /dev/mapper/vg01-srvvol -> ../dm-0 Take the dm-0, dm-1, etc and see here: cat /sys/block/dm-0/queue/physical_block_size


0

$ sudo tune2fs -l /dev/vda1 tune2fs 1.42.8 (20-Jun-2013) Filesystem volume name: <none> ... Free inodes: 127696 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 256 Blocks per group: 8192 ...



Top 50 recent answers are included