Latest Server related questions

Score: 2
GingkoFr avatar
Is it possible to have MySQL/MariaDB bidirectional replication?
in flag

I am trying to install replication on several MariaDB servers. With no experience at all on this.

I am wondering something.

Would it be possible to have both servers acting simultaneously as master and as slave for each others, for different databases?

The idea would be replicating some databases from one main server to a slave server, then running some periodical heavy loading post-processing on these da ...

Score: 0
cr0c avatar
How to share ansible variables between loop tasks
kz flag

I'm trying to create a Fortinet FortiManager automation with their Ansible collection.

I've created a dynamic ADOM creation task which runs in a loop and now I'm trying to run another dynamic tasks that creates CLI templates inside all of the created ADOM's. The problem I'm facing is that I have to defined ADOM name multiple times in different tasks that run in a loop, but what I would like to do i ...

Score: 1
trivelt avatar
How can I create VM using my custom Image on Azure?
kw flag

I have a problem with starting a VM on Azure using my custom image.

How I prepared my custom image:

  1. I had a VM running, based on an image from the Azure Marketplace.
  2. I stopped that VM and exported the OS disk (downloaded the VHD file).
  3. I uploaded that VHD file as a BLOB to my storage account on Azure.
  4. I created a new image (Images -> Create), selecting the previously uploaded VHD file as "Storage ...
Score: 3
LKM avatar
Choose any available SSH tunnel
tn flag
LKM

I need to connect to a remote server behind jump hosts. There are several jump hosts (residing in different regions) that I can tunnel through to reach this remote server.

So I need to connect to this remote server via any available jump host. If one of the jump host is down (or I may manually choose to), my connection must automatically choose any available tunnel, through the alternate jump hos ...

Score: 0
Ahmad Eidizadeh avatar
How to block all requests starting with "?mode" on Apache?
ms flag

Recently my website was hacked and now I have around 20000 indexed links in Google that were redirected to other sites via my website. Now I have stopped all redirects but I have too many request on my host. All indexed links in Google are something like this:

  • example.com/?mode=list1124413.html

  • example.com/?mode=grid125761916.html

I want to block all requests starting with ?mode but I don't k ...

Score: 2
RyBoneCoder avatar
Time difference between NTP servers
ph flag

I have a unique offline LAN. It contains two servers that get time from the same source. They do not reach out to the internet for their time source. They receive time from an application layer. I trust their time. I have a client that should sync to their time when I plug it into the network. All three of these devices run a Windows 10 LSTC. I jumped down the rabbit hole of learning how to wake the N ...

Score: 0
mauro23 avatar
Bad performance with HP P840 and P440ar and consumer SSD in Raid 10 or consumer HDD in Raid 5
es flag

i know that my setup isn't supported officially by this kind of hardware, but still i am really astonished how bad it behaves. i am running a ML350 Gen9 with 128GB of RAM, dual Xeon E5-2630 V3 on which i am using the P440ar to run 8 SSDs Crucial MX500 4TB and a P840 with 14 HDDs Seagate Barracuda SATA. Both hardware raid card have the latest firmware, so as the SAS expander cards and the rest of the ser ...

Score: 1
Peet avatar
Failover load balancing by iptables is possible?
ng flag

I'm playing around with iptables in my home lab. My first goal is to take my active directory communication into one load balancing virtual IP. I used prerouting chain to do that. For testing purposes, I started only with the DNS service. My rules looks like:

-A PREROUTING -d 10.0.0.1 -p udp --dport 53 -j DNAT --to-destination 192.168.2.1:53

-A PREROUTING -d 10.0.0.1 -p udp --dport 53 -j DNAT --to ...
Score: 0
jfreak53 avatar
ZFS mismatched replication level
pm flag

I have a RAIDZ1 running 6x 3TB drives, and I want to expand my pool by adding 5x 2TB drives to it. But when I tell it to add to the pool I get this:

$ zpool add zpool1 raidz1 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde
invalid vdev specification
use '-f' to override the following errors:
mismatched replication level: pool uses 6-way raidz and new vdev uses 5-way raidz

Just how bad is doing this? I do ...

Score: 0
spaceemotion avatar
What AWS architecture would be mosted suited for a SaaS that uses uses git repositories as data storage?
in flag

I am currently working on an application that is dealing with frontmatter markdown files 99% of the time (some things have to communicate with a DB like RDS).

Locally, I have a folder that stores all the users data like this:

- user_1
  - project_A
    - file1.md
    - file2.md
  - project_B
- user_2
  - project A

Each project is its own git repository in order to track changes between files and to provi ...

Score: 2
user12158726 avatar
Xcp-Ng VMs hardware spec recommendations
cn flag

I'm upgrading host machine in order to host 20VMs on xcp-ng Each VMs is windows server 2019, 200GB had, 32GB.

What is the best server in market and the right spec for it?

Or noob question. Is xcp-ng good enough for long run project?

Score: 1
kab00m avatar
Hardware RAID status on SMBUS architecture
br flag

This question is kind of theoretical, but I found no other StackExchange site to suite it better. I would like to know a little more about SMBUS and if it is possible to collect data from random PCI-E controller via SMBUS.

My current conclusions are:

  1. There are many brand servers with IPMI BMC being able to collect data from RAID controller (RAID just for example).
  2. IPMI have its own impression if RAID is  ...
Score: 0
Paul Stearns avatar
Is it possible to force a remote desktop computer to login as a specific user?
de flag

We are in a situation where users forget their domain password for local desktop access. We have a procedure where we contact their manager before resetting the password in order to avoid human engineering. However, sometimes the user needs their password reset when the manager is unavailable, usually at 5 AM and the manager does not start until 9 AM.

One thought we had was to remotely login thei ...

Score: 2
Slava Knyazev avatar
Why is my DNS not propagating?
ru flag

Around a month ago, in anticipation of the demise of Google Domains, I migrated to porkbun.

The moment I did this, Google rug-pulled me and deleted all records of my domain from their side despite my domain's NS records still pointing to Google. Guh! (Note to self: copy DNS first, move domain second)

Anyways, after copying the DNS records over the porkbun, service was restored... Or was it?

The domain  ...

Score: 0
EdgarLemke avatar
How to configure samba+winbind with AD redundancy?
gh flag

I work for a company that offers a software solution for network management. Part of the solution is proxy authentication. An already legacy option in our software, is to configure a proxy to use NTLM authentication (among other possible authentication schemes). Currently, however, there's a limitation in the software for using only a single Active Directory server for authentication, and I received a t ...

Score: 0
Keith Palmer Jr. avatar
What happens, and how quickly, to the old container when I do a docker stack deploy --prune
ca flag

We're doing deployments with docker swarm deploy --prune ... and having great success for the most part, but I have questions that I can't find answers to around what exactly --prune does.

I know it removes the old services, but I have questions about:

  • when does it remove the old services?
  • how does it remove the old services?

So for example, say Apache is running in the old container, and we do a

Score: 2
GPG hangs when using a Yubikey
gw flag

I am trying to debug why all of the sudden my Yubikey is taking very long to access. The Yubikey holds a GPG private key, that is then used for GPG and SSH. It was working just fine for several months and now it is taking several seconds just to complete a decryption or signature:

$ echo hi | time gpg --clearsign
...
gpg --clearsign  0.00s user 0.00s system 0% cpu 21.660 total

This used to be instanta ...

Score: 0
nike avatar
PostfixAdmin on Nginx returning 403 Forbidden
co flag

I haven't used PostfixAdmin in a while. When I recently went to mail.domain.com/postfixadmin I was greeted with a message telling me to point an alias to /postfixadmin/public. After a bit of searching online, this is what I changed my Nginx configuration to:

server {
    if ($host = mail.domain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    server_na ...
Score: 1
Ed Black avatar
Exposing OpenShift Services to External Domain Using Ingress Controller
mf flag

I have an OpenShift cluster set up with the default Ingress controller for an internal domain, let's say app.internal.com. I need to expose specific services to the internet and access them via Ingress with an existing external domain, for example, app.external.com/api/....

I attempted to create a second Ingress controller for this external domain, but I've encountered an issue. All of my routes  ...

Score: 0
Marc avatar
SAS channel speed and multiple disk setup
cn flag

I have the following setup and looking for recommendations on the 2 connection options:

  • 1x SAS Controller in HBA mode with 2x SAS Ports
  • 2 SAS cables with 4 SAS connectors each
  • 4x HDs with 6GB/s SAS speed

So I could connect all 4 HDs with 1 SAS cable to 1 SAS port on the controller or I could connect 2 HDs on each of the 2 SAS ports.

HD1+HD2 ---- Cable1 ----Controller port 1

HD1+HD2 ---- Cable2  ...

Score: 0
Robin avatar
I want to check the storage used by GKE Node
cr flag

I have created a GKE cluster with 20 GB of storage and it is runnning 4 pods. 3 of them are angular application and 1 is node applicaiton and 10.5GB is already used and only 3.96 GB is left. I wanted to check how much storage is used by whom these 4 pods cannot use that much of storage i think. Is there any way to check how and who is using the storage

Screenshot

No ephemeral-storage is being used ...

Score: 0
Path not excluded by mod_rewrite config
ws flag

I am trying to roll my own vhost config to handle certbot/letsencrypt. I want to redirect anything other than requests to /.well-known to HTTPS. But the exception for .well-known is not working; requests for http://www.example.com/.well-known/ return a 301 redirect to https. I have anonimized the hostname in the code below.

Note that I came across this post/answer before posting here - and the acce ...

Score: 0
Matt avatar
netsh advfirewall import resets connections
uz flag

On Window Server 2022, if I run this:

netsh advfirewall export"C:\firewall-rules.wfw" 

then, straight away run this:

netsh advfirewall import "C:\firewall-rules.wfw" 

Meaning I export all current rule, then without changing any rules, import the same rule set, Windows Server 2022 resets active connections.

Is there a way to do netsh advfirewall import "C:\firewall-rules.wfw", without resetting activ ...

Score: 0
DanRan avatar
Nginx FastCGI Skip Cache Rules for /shop/ in Wordpress woocommerce, why aren't they working?
mx flag

I am running a LEMP server with Wordpress and Woocommerce. My site is live at https://www.mcmo.is.

My Nginx Skip Cache rules seem to be working except for on one page: https://www.mcmo.is/shop

When adding a product to the cart, and clicking "Continue Shopping", the cache doesn't update the product number in the cart on the shop page. All of my other pages show an updated cart number after adding some ...

Score: 0
Dimitar Veljanovski avatar
Getting broken pipe error after spending significant time idle in mysql command line
us flag

I often spend a lot of time in my MySQL console - managing databases, making sure the integrity is in tact and browsing through recent records for possible vulnerabilities.

Whenever I am active with SSH on my servers, it lasts up to 1 hour, but whenever I am in a MySQL terminal, it closes with broken pipe within 20 minutes of inactivity or less. This is not practical for me as I am often shuffling ...

Score: 0
Francois Botha avatar
Active Directory Sync - RPC Server Unavailable Error, but all services and network protocols are fine
nu flag

Background: 4 Windows Server 2016 domain controllers at 4 different sites. Sites are connected by S2S IPSec connections. The one site moved and the server in this site broke down, so we had to restore the server to a new Hyper-V instance. Everything went fine and all looks 100% again... However:

Problem: When running AD sync on this restored AD, I get RPC Server Not Available errors for all serve ...

Score: 1
fred59xc06 avatar
Nginx: rewriting while checking args format with a regex
tr flag

I have an API endpoint like /my/api/PARAM1/abcd?arg1=val1&arg2=val2, and use a redirect to proxy to a fastcgi server elsewhere (using upstream).

Basically I have the current configuration :

location ~ "^/my/api/(?<api_name>[A-Z0-9]+)?$" {
    rewrite ^ "/cgi-bin/apiserver?api_name=${api_name}&p1=${arg_arg1}&p2=${arg_arg2}" last;
}

location /cgi-bin/apiserver {
    include fastcgi ...
Score: 0
user3018558 avatar
Add context menu for file passing multiple parameters to target
ca flag

I would like to use an AI subtitles sync program (Alass). This is very simple in Linux/bash but I was trying for a way to achieve this using Windows and the context menu. So here my requirement:

  • make the context menu appear when two files are selected AND one of the two files is .srt
  • Given I would select two files in no particular order, the first (%1) would always need to be the video one (mkv/mp4/avi/e ...
Score: 2
DevelJoe avatar
Rewrite Apache Condition not preventing rewrite from getting applied
in flag

I'm trying to only allow incoming requests to /multi if the Content-Type request header starts with multipart/form-data, while requests to other POST, PUT, or DELETE endpoints must always have the application/json Content-Type.

When doing the following in my web roots .htaccess file (no root access):

# Enforce multipart/form-data content type for /multi routes
RewriteCond %{REQUEST_URI} ^/multi [NC]
Rewr ...
Score: -2
Green Peters avatar
Upgrading to 10gbps port or getting multiple 1gbps
sm flag

need help I run a file hosting company my current servers run at 1gbps uplink and sometimes downloads are slow, I am thinking of upgrading to 10gbps or should I just add additional servers? Which will be the best solution please.

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.