Latest Server related questions

Score: 0
LVM aggressive read and write cache
np flag

I've added a 2 TB RAID1 SSD as a writeback cache to a 10 TB RAID1 HDD using LVM 2.03.11(2) (2021-01-08) like this:

lvcreate --type raid1 --mirrors 1 --nosync -l 100%FREE -n sshd sshd /dev/sdc /dev/sdd
lvcreate --type raid1 --mirrors 1 --nosync -l 100%FREE -n cache sshd /dev/nvme1n1 /dev/ssd_blend/ssd_blend
lvconvert --type cache --cachemode writeback --chunksize 2M --cachevol cache sshd/sshd

and the d ...

Score: 0
postfix high availability and scalability
us flag

i have successfully set up a postfix , dovecot , mysql container .i can receive and send emails through this container and every thing is going alright.now i am thinking about high availabilty and scalabilty.how to build a high available postfix , dovecot and mysql dockerized system? and how to scale up this system ?

Thanks

Score: 0
MrTux01 avatar
Nginx Query String rewrite
cn flag

I have a configuration as below, but I am getting 500 error. Where could this error be?

upstream masterservers {server 192.168.1.1:8000;}
upstream slaveservers {server 192.168.1.2:8001;}

map $request_uri $redirect_to {
    "target=master"     masterservers;
    "target=slave"   slaveservers;
}

server {
    listen 80;
        server_name 192.168.1.10;

       location / {
        proxy_pass        ...
Score: 0
Skig avatar
zpool import Failure: can I recover data?
cn flag

I have a personal zpool server that was going down, and I want to know if there is a way to recover what I have. Most of my critical data (photos, tax into, etc) got backuped to OneDrive, so I am mostly ok, but would like the rest of the data if possible.

I watched the LTT video on ZFS maintenance/data loss, saw I have never done a scrub either, so I ran it, hit a bunch of checksum errors, a cou ...

Score: 0
Mat.C avatar
Apache2 Blacklist ip based on x-forwarded-for header in virtualhost
pe flag

I'm behind cloudflare dns and i'm trying to block specific client's ips that spams my website, i understood that i can achieve this by adding a SetEnvIf rule inside my virtualhost config that deny the reques when the blacklisted ip is in the X-Forwarded-For header, so i tried to do that.

The virtuaHost config now looks like this

<VirtualHost *:80>
    ServerName xxx
    ServerAlias xxx
    ServerAd ...
Score: 18
root login or sudo user for server administration?
br flag

I'm trying to understand the technical arguments/security implications between ssh'ing with root directly, or making an auxiliary sudo user in the context of maintaining a server. To clarify, we're talking about servers owned by a single admin. For multiple people working on the machine, it's obvious that there is the audit trail benefit of having unique users for each actual person and fine-grained per ...

Score: 0
cplater avatar
What would prevent php-fpm (8.0.16) from being able to write to an NFS mounted filesystem?
rs flag

I have a php-fpm (8.0.16) instance that cannot write files to an NFS share. I am using a simple php script for testing:

<?php

ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);

$fp = fopen('test.txt', 'a');

fwrite($fp, 'test'); 

When running via php-fpm, in a directory that is an NFS share, the following error is received:

Warning: fopen(test.txt): Failed to open stream: Read-only  ...

Score: 1
How do I create a Kubernetes service that routes traffic to different pods based on the port?
ng flag

I would like to have a Service of LoadBalancer type that points to an nginx on port 80, and point to a separate sshd pod for port 22. However I can't route based on the port with a single selector.

The use case I'm going for is similar to github.com which accepts traffic to github.com for port 80 as well as 22 for ssh traffic. So DNS would point to a set of k8s loadbalancers in this case that I w ...

Score: 2
kube-proxy not working for service cluster IPs
es flag

I installed a k8s 1.23.3 cluster on four raspberry pi's running raspberrypi OS 11 (bullseye) arm64; mostly by following this guide.
The gist of it is that the control plane was created using this command

kubeadm init --token={some_token} --kubernetes-version=v1.23.3 --pod-network-cidr=10.1.0.0/16 --service-cidr=10.11.0.0/16 --control-plane-endpoint=10.0.4.16 --node-name=rpi-1-1

I then created my  ...

Score: 1
lafleur avatar
What is the difference beween $uri and $uri/ in the try_files directive?
in flag

This is the configuration:

index index.html;
location / {
    try_files $uri $uri/ = 404;
}

I make a request at http://localhost/path/a/. I assume this is the URI, so at the $uri stage try_files will look at /path/a/ and serve index.html if there's any.

I read from the docs that It is possible to check directory’s existence by specifying a slash at the end of a name, e.g. “$uri/”. but this does  ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.