Tag Info

Hot answers tagged

9

Yes, it all works... Dedupe, compression, checksumming, caching are all present when using zvols in ZFS. But I really prefer NFS for virtualization purposes because of the transparency. But either will do the job. Can you elaborate a bit more on your intended use for ZFS? I ask because there are a lot of potential design/planning issues. Take a good read ...


6

ZFS pool information is not stored in a plain text file. Information about a pool is stored on the disks themselves. ZFS pool information can also be written to a ZFS cache file, but it does not contain mount point information. If you want to get mount point values for your ZFS pools you can use the following: zfs get mountpoint <pool name> zfs get ...


6

I think there are a few obvious solutions to finding out more: Hook up an additional device to the same UPS output. If both devices reboot simultaneously, that would be evidence of a power issue. Hook up some equipment that can monitor the actual voltage output by the UPS output and record changes over time.


5

Rationale for turning keep-alive on by default was given here: https://svnweb.freebsd.org/base?view=revision&revision=47752 Add handle to control global TCP keepalives and turn them on as default. Despite their name it doesn't keep TCP sessions alive, it kills them if the other end has gone AWOL. This happens a lot with clients which use ...


4

FYI, 454 4.7.1 <someemail@example.com: Relay access denied; was the result of defer_unauth_destination. It's slightly different with reject_unauth_destination, with reject means permanent error with code 550 and defer means temporary error with code 450. But wait..., I don't have any parameter that use defer_unauth_destination. Where does the weird ...


4

ZFS is very resilient. The most basic example of shipping a file system would be: # zfs snapshot tank/test@tuesday # zfs send tank/test@tuesday | ssh user@server.example.com "zfs receive pool/test" Note the snapshot prior to the send (and sending the snapshot). You could wrap that up into a script to delete the local snapshot after you've sent it to the ...


4

As Gene points out, the list of file systems (not partitions!) in a ZFS pool is stored within the pool itself. Specifically, it is stored as a part of the pool metadata, which is not easily accessible in raw form. You can access the metadata using zdb (the ZFS debugger tool), but you need to be careful as well as have some familiarity with the ZFS on-disk ...


4

I think you're looking for /etc/make.conf.


4

I've been playing around a bit with my own mail logs. Try grep 'to=<emailaddress' /var/log/maillog | cut -d ' ' -f 6 | grep -f - /var/log/maillog The -f - will read the list of strings to search for from stdin.


4

Since the 10.0 Release, FreeBSD ships its own Hypervisor: bhyve. Its possible to emulate BSD and Linux Guests, with Windows-support on the way.


3

PHP 5.6.0 was released today. It wont be in the ports tree for at least a week, more likely a month. www/mod_php5 is just a meta-port for lang/php5 with certain options enabled. The lang/php5 port is always one minor version behind the current production release (currently PHP 5.5 is considered the "current" release, so lang/php5 is still PHP 5.4). I would ...


3

Ok so it turns out this is a bug with the bxe driver in FreeBSD 10.0-Release specifically The bxe(4) driver can cause packet corruption when TSO (TCP Segmentation Offload) feature is enabled. This feature is enabled by default and can be disabled by using a -tso parameter of ifconfig(8). It can be specified in rc.conf(5) like the following: ...


3

According to Mozilla, this configuration should work: <VirtualHost *:443> ... SSLProtocol all -SSLv2 -SSLv3 ... </VirtualHost>


3

Using ZFS + VMware + NFS is a terrible idea. It will get you the worst result. Vmware uses an implementation of NFS that need constantly to do SYNCed writes, and wait for each one to do so. And this is extremely slow on ZFS.. ZFS first writes in the ZIL log and a lot latter do the actual wirte on disks (and only then confirm the sync write). I got 5MB/s on ...


3

I don't get you're question becouse you say some nonsens. If you are on linux/unix system that not run dns server 'named/bind/other' system not cache any dns query. Applications (DNS clients) just query the DNS server every time without caching, just query the DNS server every time. If you use dns server 'named/bind' and want clear cache just restart this ...


3

Please run: zpool scrub tank And then look a little more into the properties and attitudes of ZFS and how it tries to protect data.


3

Dovecot allows you to configure a master user which can be used to access user mailboxes without knowing their passwords. The master user can be used with imapsync (as well as most other IMAP tools) to copy the messages between servers. From the dovecot configuration file on my server: By adding master=yes setting inside a passdb you make the passdb a ...


3

No, there isn't. You know that it's trivial for people to change their MAC addresses, correct? Additionally, the instant a packet passes through a later 3 routing device, the Mac address information of the source machine is lost. So even if you did want to do something like this, it would only ever work for clients that are on the same L2 LAN as your ...


3

You could run zfs mount -a from a startup script? Not that I'd recommend doing ZFS on USB, but hey.


2

Sadly there doesn't seem to be pip integrated in python3.4 in the FreeBSD ports. So I had to install pip like discribed here


2

The problem was that inside the jail the repository directory was empty, unlike the /etc/pkg/ directory on the host. In this directory on the host is a file called FreeBSD.conf, which defines the repository. This file was made automatically on the host, but not in the jail. (even though pkg was also installed inside of the jail. Apparently 'pkg -j' looks ...


2

I have figured this out thanks to @citrin's comment. Adam Weinberger reported this as a bug here. He also provided two patches for two different desirable options: pre-building the man pages, or building cmake without them. I opted for the latter one. The attachment here includes little fixes to the Makefile and pkg-plist of the corresponding port. I just ...


2

FreeBSD has a great port named sysutils/apcupsd intended to interact with APC smart-UPSes. Link your UPS with usb-cable to the host. Edit /usr/local/etc/apcupsd/apcupsd.conf: ### UPSCABLE usb UPSTYPE usb DEVICE POLLTIME 60 LOCKFILE /var/spool/lock BATTERYLEVEL 15 MINUTES 10 TIMEOUT 0 ANNOY 300 ANNOYDELAY 60 KILLDELAY 120 UPSCLASS standalone STATTIME 60 ...


2

I don't feel like you've done the bare minimum of troubleshooting here. This has become a bad question because of the scare details presented. Maybe your server is crashing. What type of server hardware are you using? Do you have out-of-band management on this server? (ILO, IPMI, DRAC) If so, what does it say? How frequently is this happening? Do any of ...


2

You need to add listen [IP:]80; inside of the server section in your _includes/XXX.conf file.


2

I would use incremental ZFS send/receive. It should be more efficient than rsync as ZFS knows what has been changed since the previous snapshot without needing to explore the whole file system. Assuming you want to fully backup a file system namen datapool/fs. You first create a pool to store your backup on the destination server and a recursive snapshot ...


2

Your machine can't really tell what happened in a power outage: those electrons just stop showing up. The UPS might know (if you're losing power, as opposed to a flaky power supply or something) but I don't think you have much hope of the server being able to tell you.


2

gstat show average across given interval for all metrics except L(q) (queue length). L(q) is snapshot of that moment. In gstat the devstat_compute_statistics() is used, and this function documented in devstat(3).


2

No. Don't do it. Any form of backup that revolves around intentionally failing an array or pool of disks is fraught and irresponsible. If you could provide details about your rsync command line, what you're transferring, the connection between the servers and any other specifics, we may be able to help with a more robust solution.


2

Two disks hardware raided into a raid1 will present a single disk to the OS, in this case mfid0 as you noticed. That single disk can't then be made into a raid1 on a software level. If you would've had four physical disks to begin with, it would be possible but quite silly. Chose either all hardware raid or all software raid. If you go for the hardware ...



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