# Tag Info

0

You somehow removed the write permissions from root's own home directory, /root. Just restore the permission. chmod u+w /root

0

What would happen is the error message "bad superblock" (or something like it). A filesystem has some "magic" data it puts at specific parts of the block device (different for each filesystem) and if it's not there, the mount program says "sorry, this isn't the filesystem you told me it was" and refuses to mount it. On Windows, if it's a filesystem the OS ...

2

I'm running Debian stable which does not have btrfs send, so I looked to a solution using btrfs subvolume find-new. If you have snapshot1 and snapshot2 and you want to know what changed in the later one, snapshot 2, since snapshot1 was made you can use the script below which provides btrfs-diff oldsnapshot/ newsnapshot/ which will list all files changed ...

1

You should be able to achieve this with most webservers using their Authentication/Authorization modules. For example Apache has a selection of modules available for a variety of situations as does Nginx.

0

Can you tar them? Try to create a tar file of just one troubled file. If it works, try using tar instead of rsync from one fs to another e.g. If I want to copy /a to /b I would use this command (cd /a; tar cpBfb - 20 . ) | (cd /b; tar xvBfb - 20 )

4

I would use NFS with autofs. Your server will boot if it isn't avaiable and it will mount it when you need it.

2

I don't think you'll find a filesystem that will wake the remote if it's offline. I would go with NFS and use soft mounts to avoid the client hanging if the remote isn't available. hard or soft — Specifies whether the program using a file via an NFS connection should stop and wait (hard) for the server to come back online, if the host serving the ...

0

I have this same problem on an old ESX3.5 installation. The problem seems to be a full VMFS filesystem. There is some additional information about this problem in the VMware KB: This issue occurs if the journal file is locked by one of the servers in the cluster, and there is not enough space on the device to release the lock. To resolve this ...

3

There's no way to do this. You can DFS to have a unified namespace independent of servers, but you have to be using the namespace, which you're not. If you were retiring Server1, you could have Server2 answer to either name (Server1 and Server2), but you're not doing that, either. Lesson learned : Don't hard-code server names into code. Use an alias and/or ...

0

Here's a little more concise version of the lsof command used above. This variant has several improvements. One being that it will list ALL the KVM VM's. $lsof -n -p$(pgrep kvm | tr '\012' ,) You could then grep the output looking for .img and .qcow2 files if you knew you were using those extensions to name your VM images. $sudo lsof -n -p$(pgrep ...

1

You can create a cmdlet for this, so you can also use it in your command line: Cmdlet param( [string]$folder, [int]$expiry ) ls $folder | % { if ($_.LastWriteTime -le (date).AddDays(-$expiry)) { rm$_ -fo } } Usage .\script.ps1 -folder "c:\logs\iis\siteA\" -expiry 30 .\script.ps1 -folder "c:\logs\job1\" -expiry 60 .\script.ps1 -folder ...

0

Want to re-iterate: When shrinking, resize the FS first then resize the LVM When extending, resize the LVM first, then resize the FS. When shrinking, you do need to umount the volume. When extending, depending on your linux kernel, you can do it online while system is mounted When shrinking, crucial to have backups When extending, very very very very ...

1

On POSIX compliant systems rename is atomic. So it should be safe and consistent to write to filename.new and then "mv filename.new filename". Any open handles on the "old" filename will get the content at the old inode, and new requests will get the new one.

6

Edited to include your requested text file of c:\logs\iis\siteA\ -30 c:\logs\job1\ -60 e:\archive\clientA\ -90 I tested the new bits of code separately from what I had lying around, but it should still do what you want, I think. $controlfile = "c:\path\to\yourfile.txt"$curr_date = Get-Date New-Item -ItemType directory -Path f:\delete foreach ...

2

Apache is not intended to serve dynamic content from a file system directly. I would expect problems like this simply due to unintentional caching within the program. If you need to serve dynamic content, use scripting, CGI, or similar.

1

I'd recommend you look at an NFS solution. It does exactly what you're saying you need done.

1

The 2 TB limit is not so much a Windows or Linux limitation, it is mostly a limitation of the partition table counters. The old-style MBR partition table uses 32-bit counters to address sectors and specify the length of a partition. This would allow to specify partitions of 512 * (2^32) Bytes in size, which is the 2 TB limit. Of course, you might hit other ...

0

I am definitely NO expert and have very little experience on filesystem in general. So, take what I write with pinch(or handful of salt) :) Now disclaimer aside: Btrfs (to the best of my knowledge ) is not YET fault tolerant and it needs serious working in that department.If my memory serves right ZFS should serve your requirement better. I had myself been ...

Top 50 recent answers are included