Posts

Showing posts from May, 2023

shell script to create and extending the volume

[bala@ansserve1 ~]$ ./script2.sh  This script must be run as root. [bala@ansserve1 ~]$ sudo ./script2.sh [sudo] password for bala:  --------list the devices------- NAME                       MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda                          8:0    0   64G  0 disk  |-sda1                       8:1    0    1G  0 part /boot `-sda2                       8:2    0   63G  0 part    |-centos_ansserve-root   253:0    0 40.8G  0 lvm  /   |-centos_ansserve-swap   253:1    0  2.3G  0 lvm  [SWAP]   |-centos_ansserve-home   253:2    0 19.9G  0 lvm  /home   `-centos_ansse...

httpd firewall inbound and outbound

   Last login: Mon May    8 20:10:10 on ttys000 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. balas-MacBook-Pro:~ bala$ ssh bala@192.168.1.100 bala@192.168.1.100's password:  Last login: Mon May  8 20:08:35 2023 -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory [bala@ansserve1 ~]$ sudo -i [sudo] password for bala:  [root@ansserve1 ~]# systemctl status firewalld.service  ●  firewalld.service - firewalld - dynamic firewall daemon    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)    Active:  active (running)  since Mon 2023-05-08 20:11:12 IST; 52s ago      Docs: man:firewalld(1)  Main PID: 781 (firewalld)     Tasks: 2    CGroup: /s...

script and validation for the lvm

[root@ansserve1 ~]# cd / [root@ansserve1 /]# ll total 24 lrwxrwxrwx.   1 root root    7 Aug 11  2022 bin -> usr/bin dr-xr-xr-x.   5 root root 4096 Aug 11  2022 boot drwxr-xr-x.  20 root root 3200 May  8 20:11 dev drwxr-xr-x. 143 root root 8192 May  8 20:11 etc drwxr-xr-x.   3 root root   18 Aug 11  2022 home lrwxrwxrwx.   1 root root    7 Aug 11  2022 lib -> usr/lib lrwxrwxrwx.   1 root root    9 Aug 11  2022 lib64 -> usr/lib64 drwxr-xr-x.   2 root root    6 Apr 11  2018 media drwxr-xr-x.   2 root root    6 Apr 11  2018 mnt drwxr-xr-x.   3 root root   16 Aug 11  2022 opt dr-xr-xr-x. 193 root root    0 May  8 20:11 proc dr-xr-x---.   8 root root  245 Feb 20 16:29 root drwxr-xr-x.  41 root root 1260 May  8 20:11 run lrwxrwxrwx.   1 root root    8 Aug 11 ...