Re: Is perl still the No.1 language for sysadmin?

2023-04-02 Thread Ken Young
Our production system is using heavily perl (many thousand lines of perl5 code) - it's mod_perl, but still perl. Thanks.

service vs systemctl

2023-03-06 Thread Ken Young
Hello For debian 11, service is just a wrapper to systemctl, is it right? So for server management, both commands below have the same results. sudo service nginx start sudo systemclt start nginx Which way is more prefered though? Thanks. -- Sincerely, Ken Young

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread Ken Young
For standalone backup I am using Liteserver's VPS, 512G disk for only 2.4 EUR/m. Then I setup rsyncd on it, and rsync data from clients via crontab for backup purpose. Sincerely, Ken Young On Tue, Mar 7, 2023 at 9:21 AM Celejar wrote: > On Sun, 5 Mar 2023 14:05:37 +0100 > to...@tuxt

Re: what method do you prefer for data transfer between nodes?

2023-03-05 Thread Ken Young
That's smart. Thanks Sincerely, Ken Young On Mon, Mar 6, 2023 at 3:43 AM Linux-Fan wrote: > Ken Young writes: > > > Hello,[1;5B > > > > > > The methods I know, > > > > 1. scp > > pros: the native tool in the OS > > cons: you wi

Re: mount new block deivce in existing dir

2023-03-05 Thread Ken Young
The provider has separated block device service, like what Ceph does. So I have to buy another 100GB block device as the secondary disk. Sincerely, Ken Young On Mon, Mar 6, 2023 at 6:26 AM Andy Smith wrote: > Hi, > > On Mon, Mar 06, 2023 at 03:11:43AM +0800, Ken Young wrote: >

mount new block deivce in existing dir

2023-03-05 Thread Ken Young
% /dev tmpfs98M 496K 98M 1% /run /dev/vda1 9.7G 1.5G 7.9G 16% / ... So I want to add a block device /dev/vdb and fdisk/format it and mount it as /home dir. Since /home already exists (even have data in this path). can I mount it without problem? Sincerely, Ken Young

Re: what method do you prefer for data transfer between nodes?

2023-03-05 Thread Ken Young
Thanks for the suggestion. I will give it a try on mailbox.org. Sincerely, Ken Young On Sun, Mar 5, 2023 at 9:05 PM wrote: > On Sun, Mar 05, 2023 at 07:23:49PM +0800, Ken Young wrote: > > What provider do you recommend then? > > Around here (West Europe), for example,

Re: alias in bash script issue

2023-03-05 Thread Ken Young
Is perl6 production ready? I have not used perl for a long time. Sincerely, Ken Young On Sun, Mar 5, 2023 at 7:28 PM Tom Browder wrote: > My take: > > I use aliases heavily in my shell (bash), but I rarely use bash scripting > at all. > > For any serious scripting, sinc

Re: what method do you prefer for data transfer between nodes?

2023-03-05 Thread Ken Young
What provider do you recommend then? Sincerely, Ken Young On Sun, Mar 5, 2023 at 6:54 PM wrote: > On Sun, Mar 05, 2023 at 11:31:42AM +0100, Michel Verdier wrote: > > Le 5 mars 2023 tomas a écrit : > > > > > The others I'd only use when forced to. Well, rclone, I thin

what method do you prefer for data transfer between nodes?

2023-03-05 Thread Ken Young
Hello, The methods I know, 1. scp pros: the native tool in the OS cons: you will either input password or put key pairs into servers for authentication. 2. rsync pros: it can transfer data by increasement cons: you need to setup rsyncd server and make the correct authorization. 3. ftp/ftps

Re: alias in bash script issue

2023-03-04 Thread Ken Young
On Sat, Mar 4, 2023 at 5:53 PM David wrote: > On Sat, 4 Mar 2023 at 19:30, Ken Young wrote: > > > Do you know why my alias can't work in the bash script? > > The info is as follows. > > > > 1) this alias does exist > > $ alias |grep 'k=' > > alias

Re: besides ping/nslookup, any other tools to resolve a hostname?

2023-03-04 Thread Ken Young
network. To solve this problem, you can do that: > Create a pod in the same network with net tools. > Or > 1 .rebuild a new docker image with another version, with net-tools. > 2. then change the current pod with edit in deployment. > > > > On Fri, Mar 3, 2023 at 9:59 PM

alias in bash script issue

2023-03-04 Thread Ken Young
Hello, Do you know why my alias can't work in the bash script? The info is as follows. 1) this alias does exist $ alias |grep 'k=' alias k='minikube kubectl --' 2) it also exists in .bash_profile $ cat ~/.bash_profile |grep 'k=' alias k="minikube kubectl --" 3) the content of bash

besides ping/nslookup, any other tools to resolve a hostname?

2023-03-03 Thread Ken Young
Hello, I have bitnami/mysql container (debian OS) running on kubernetes. This container seems too restricted for system software, these following commands are removed: sudo (so I can't su to root for apt) ping dig nslookup net-tools Do you know any other way to resolve a hostname by manual on