Latest Server related questions

Score: 0
What was linux/unix time standard before inventing epoch?
do flag

As in the title, I was looking for, but hadn't found. How were time stored and processed before epoch standardizing in 2000?

Score: 2
justadev avatar
How to access service running on host from WSL2 (connection refused)
cn flag

I have selenium running on my host machine, and my app is inside a docker container (inside WSL2).

I am trying to get the app connect to the selenium, that is listening on port 4445. It used to work a few months ago, I think something changed in WSL.

Host is listening on 4445:

PS> netstat -ano | findstr :4445
  TCP    0.0.0.0:4445           0.0.0.0:0              LISTENING       11604
  TCP    [::]:44 ...
Score: 0
pink0.pallino avatar
is the PERC controller limited to 1M of stripe size?
jp flag

I have a dell powerdge linux (CentosOS8) server with a perc h740p controller and I am testing different strip/chunk sizes for a 10+2 RAID6 array of disks.

For what I understood after spending days reading docs on the internet, under linux the stripe size ( stripSize* DataDisks) is saved into the value "/sys/block/sdX/queue/optimal_io_size" and XFS itself relies on this value to set correct alig ...

Score: -5
Colin Jack avatar
NTFS file owner is able to delete a file with read permission
ve flag

I have a file on NTFS partition, and I'm the owner of this file .

I have the read permission only on this file and no other permissions are set.

I tried to delete the file thinking it will show "Access is Denied " message ,but i was able to delete the file !

I created a folder and tried the same ,but I was not able to delete it !

how is that possible to delete a file with read permission only ? is it beca ...

Score: 1
e-info128 avatar
Howto set a host virtual interface (failover) to a vm in kvm+libvirt?
br flag

Have a Ubuntu Server 20.04 and 2 address, one in eno1 interface with first default public address and a failover with second address.

I can create a virtual interface using a netplan called failover1 and works fine:

network:
    version: 2
    ethernets:
        eno1:
            dhcp4: true
            match:
                macaddress: xx:xx:xx:xx:xx:xx
            set-name: eno1
    bridges:
        fa ...
Score: -1
flyerhawk avatar
ansbile template weird formatting
dz flag

I'm trying to create yaml based configuration files. Everything is working except that the lines after a loop is being indented for some reason.

So when I have this...

- job_name: {{ inventory_hostname }}
    pipeline_stages:
        - regex:
            expression: {{ pipeline_regex }}
        - labels:
{% for labels in pipeline_vars %}
{{ labels }}:
{% endfor %}
        - timestamp:
            so ...
Score: 0
Totally isolate two interfaces -Linux
us flag

I'm a bit embarrassed but I need your help.

I have three interfaces on a virtual machines. I want to completely isolate my interfaces between them. I created one route table for each interface:

    inet 192.168.1.100/24 brd 192.168.1.255 scope global ens192
3: ens224: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    inet 192.168.10.100/24 brd 192. ...
Score: 2
QEMU/KVM guest VM cannot resolve DNS hostnames or SSH/ping from host
mx flag

I have a QEMU/KVM-based virtual machine with CentosOS 6.4 that cannot fully connect to the Internet. I can ping IP addresses (ex. ping 8.8.8.8 works successfully), but domain names are not resolved (ex. ping google.com returns ping: unknown host google.com).

The guest has a static IP assigned to it, and I am using the default (NAT-based) network:

<network>
  <name>default</name>
  &lt ...
Score: 0
Why would a local network go down when a local server is powered down?
tr flag
Max

I'm running Ubuntu 20.04 on a machine hosting various websites, an email server, and a bind9 DNS server. Whenever that machine is powered off, the network connected to a local network Linksys router goes down.

  1. Internet connected to provider modem
  2. Modem connected to provider router
  3. Provider router connected to Linksys router
  4. Linksys router manages local network

The router has a dedicated IP address  ...

Score: 0
skillz21 avatar
Proxy server with output bound to individual network interface
cn flag

I have a server running Windows 10, and I want to host a proxy server on it which directs outbound traffic to an individual network interface.

I have looked around and have not been able to find a straightforward solution to this.

I have attempted to use Squid. Other serverfault threads such as this suggest the use of tcp_outgoing_address, but this doesn't work for IP addresses which may change.

I ...

Score: -2
alireza kariminia avatar
how can change filesystem from ext4 to xfs
ng flag

how can I change filesystem from ext4 to xfs without data losing? I've centos7 on Arvan cloud (IaaS like linode) and I don't have special permisson.

Score: 0
aag avatar
how to log the MAC addresses of devices acquiring an IP address through DHCP (Windows server 2022)
br flag
aag

My network serves DHCP through a Windows 2022 server. I would like to log the MAC addresses of all devices that acquire an IP address through this DHCP server. I have installed the IPAM role in the server, but I don't understand how to activate the logging. The server is standalone; it does not use Active Directory and it's not connected to a domain.

Score: 0
aag avatar
mapping the external WAN address to a Nginx variable
br flag
aag

I have an Nginx webserver within a LAN which is being addressed from the internet by NAT. The variable $server_addrcontains the internal LAN address of the server. Is there a way to map the external (internet-exposed) IP address of the webserver to an Nginx variable?

Score: 0
Gabor Szarnyas avatar
Persistence of local SSDs of EC2 instances
de flag

Certain EC2 instance types (r5d, m5d, c5d, z1d, etc.) offer local disks coupled to the lifetime of the instance. For example:

With R5d instances, local NVMe-based SSDs are physically connected to the host server and provide block-level storage that is coupled to the lifetime of the R5 instance

Other instance types with a local instance store (e.g. i3) do not have this claim.

Do the persistence gua ...

Score: 2
huangyingw avatar
How can I crontably reboot a Linux host upon network failure?
id flag

I have a personal Ubuntu host, connected to a public/sharing Wi-Fi AP (not under my control).

Sometimes, it would have a network issue, and I am very sure, only restarting the network service would not work. The only way is to reboot it.

My plan is to add a crontab, to test the network connection. If it fails, then reboot the computer.

If I manually run the auto_reboot.sh, it does reboot, when a

Score: 1
corefile avatar
How to use wget http status codes in an if else statement to take an action based on the status code
fk flag

I'm writing a script that is downloading a bunch of files, I'm using wget to download the file and I want to echo back to the terminal custom status messages for each file based on 3 scenarios:

  1. Files downloaded successfully (HTTP/1.1 200 OK)
  2. Files did not change from the one locally (HTTP/1.1 304 Not Modified)
  3. Anything else is a failed download

I'm able to get the status code and use awk to isolat ...

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.