Latest Server related questions

Score: 1
Adaptec 8405E RAID 1 extremely slow expansion (1% per day)
be flag

Our RAID 1 is being expanded from 4 TB to 8 TB. The GUI status looks like this:

enter image description here

enter image description here

The progress happens by about 1% per day. At the same time, the server is quite slow. This seems like an extremely slow rate of progress. This amounts to 4TB/100/86400 = 460KB/s. I'd expect the RAID controller to merely write zeroes sequentially to the new segments which should happen much faster.

I do not believe t ...

Score: 1
ZFS disk error on write
ck flag

our ZFS backup pool is producing strange disk errors when writing data. This pool is replicated via DRBD on a second server with identical hardware which is also experiencing the same errors. This is why I don't think it's a hardware problem.

The setup is the following (on both servers):

  • Debian 10 server with Adaptec ASR 71605 RAID controller card in HBA mode. All disks are exposed as RAW disks.
Score: 0
apache2 docker container writes logs on my host as root user
cl flag

I am running a apache2 docker container on my ubuntu box but it keeps writing logs to my host os. Details below:

samples/docker/apache2/Dockerfile

FROM php:5.6.34-apache
COPY ./sites-available/mysite.conf /etc/apache2/sites-available/mysite.conf
RUN a2dissite 000-default.conf
#RUN a2dissite default-ssl.conf
RUN a2ensite mysite.conf

with:

samples/docker/apache2/sites-available/mysite.conf:

<Virtu ...
Score: 0
CRON[83463]: Failure setting user credentials
us flag

I have a number of docker containers, all set up mostly identically, which successfully use cron to run nightly backup jobs.

I have another container, set up mostly identically, which tries, and fails, to use cron to run a nightly backup job.

I installed rsyslog to get more information, and when cron runs root's crontab I see the following entry in the syslog file:

CRON[83463]: Failure setting user crede ...
Score: 0
Shahaboddin avatar
Debian with 2 ethernet as VPN relay (route all traffic from eth0 to eth1 VPN)
gb flag

Background

I got 2 Debian VMs, first one is pptp/wireguard server on WAN 10.10.0.1 and second one's eth0 192.168.100.1, eth1 172.16.100.1.

Note: WAN IPs written in private ranges Intentionally

Problem

I want second VM's eth1 172.16.100.1 to connect to first VM 10.10.0.1 as VPN client, then run a VPN server on eth0 192.168.100.1 which routes all traffic through eth1 to the first VM.
Basically, then I ca ...

Score: 0
dmx avatar
gpo grant user permissions to install any software from a partner
co flag
dmx

I my work environment, when user want to install new software, he has to send to software to security officer to get approval. Some coming from well know partner don't really need to be approved, but they still go through the same process. This is waist of time and money for users and security officer. I was wandering if there is a way to do this through active directory. Basically to set a rule that al ...

Score: 0
Leon avatar
How to add a routing rule that only match "dport"?
gd flag

In my OpenWrt box, I want to route only a specific protocol(tcp:1888) to a tun interface only for one PC(192.168.28.2), so I do as following:

ip rule add from 192.168.28.2 dport 1888 lookup 123

ip route add default via 10.8.0.2 dev tun0 table 123

But it does NOT work!

When I check the rule list with ip rule, I get:

0: from all lookup local

32765: from 192.168.28.2 lookup 123

32766: from all  ...

Score: 1
How to use EFI Shell to recover from SELinux Lockout?
br flag

I enabled SELinux on my Centos 8 box and now I can't get back into the server. It's hosted with a company, so I don't have physical access to it. But I do have access to advanced boot options, including the EFI shell. I am thinking if I can get access to the partitions, I can disable SELinux like that. However, I don't know how to get to the files. I followed the instructions here but I get stuck on thi ...

Score: 0
Saksham Khare avatar
/var/log/messages getting huge in size
cn flag

I am using CentOS 7 and facing issues with /var/log/messages. For some reason, /var/log/messages gets huge in size filling up the whole partition. To resolve the issue, every time in have to empty the file but it get huge again.

Can anyone please advise permanent solution on this?

Score: 1
bilogic avatar
Downgrade or compile rsync to fix bug
cn flag

rsync: [generator] failed to set permissions : Operation not supported (95)

I'm running ubuntu 21.10 and facing the same problem as the above link, but could not follow the solution steps, for e.g. installing libssl-dev gives me this error below:

[~/tmp/rsync-be3d6c0fbbd07781bbae6261cda109f8f08c031b]# apt install libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state  ...
Score: 0
Docker multiple port to single container port configuration
cn flag

I want to configure localstack as a shared container between different micro services. But the problem in my company's environment is, these different micro services configure different ports for different services in localstack and hence every microservice's docker-compose.yml file has localstack configured as a service and custom ports pointing to different services on localstack. So for example, one  ...

Score: 1
How to retrieve non-delivered postfix emails?
in flag

I recently discovered that all emails that were meant to be being sent to a particular address of mine via postfix on my Ubuntu server have been getting rejected by the 3rd party email provider.

So there is about 6 months of emails I have not received (the emails were from a submission form on my website).

I have checked and postfix mail queue is empty.

This is a sample log entry when an email was non- ...

Score: 0
Mr Giggles avatar
Passing the results of top into a kubernetes pod
de flag

Problem: I want to create a service which can clean up another service that only runs when the node and target pod is not under heavy load on a kubernetes cluster.

Solution: Unsure, I want to try and do something that involves passing the values of kubetctl top into a pod so it can decide what to do based on current load.

Is this possible or is there another solution?

Edit: I've been asked for more clarif ...

Score: 0
Alexey Kholodkov avatar
How to write docker stats to logs?
cn flag

I'm using docker logging plugin to send logs to storage. Now I want to store not only application logs, but also it's docker container's stats (stats command output: CPU, MEM, etc.) collected every few seconds.

Is there a way to configure docker/docker-compose to write container's stats to the same output as logs?

Score: 0
What is the default configuration for logrotate.conf in Ubuntu?
au flag

In /etc/logrotate.conf is user permission different from one ubuntu version to another? .... and why ?? as i found it like that in ubuntu 18.04

# use the syslog group by default, since this is the owning group
# of /var/log/syslog.
su root syslog

and like that in ubuntu 20.04

# use the adm group by default, since this is the owning group 
# of /var/log/syslog.
su root adm

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.