chrisluiz16

role verfication

Jun 28th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.23 KB | None | 0 0
  1.  
  2.  
  3. #### Role Verification /var/lib/mysql  ####
  4.  
  5. [ec2-user@ip-172-31-40-167 ~]$ ssh -i aws.pem 172.31.37.48
  6. The authenticity of host '172.31.37.48 (172.31.37.48)' can't be established.
  7. ED25519 key fingerprint is SHA256:Tl0gsBDONvn1tDzNd1WiLB6OjxsfqGlvDtbyOxgdZ2o.
  8. This key is not known by any other names
  9. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
  10. Warning: Permanently added '172.31.37.48' (ED25519) to the list of known hosts.
  11.    ,     #_
  12.    ~\_  ####_        Amazon Linux 2023
  13.   ~~  \_#####\
  14.   ~~     \###|
  15.   ~~       \#/ ___   https://aws.amazon.com/linux/amazon-linux-2023
  16.    ~~       V~' '->
  17.    ~~~         /
  18.       ~~._.   _/
  19.          _/ _/
  20.        _/m/'
  21. Last login: Wed Jun 28 11:25:51 2023 from 172.31.40.167
  22. [ec2-user@ip-172-31-37-48 ~]$
  23. [ec2-user@ip-172-31-37-48 ~]$
  24. [ec2-user@ip-172-31-37-48 ~]$ ls
  25.  
  26.  
  27. [ec2-user@ip-172-31-37-48 ~]$ df -h
  28. Filesystem      Size  Used Avail Use% Mounted on
  29. devtmpfs        4.0M     0  4.0M   0% /dev
  30. tmpfs           475M     0  475M   0% /dev/shm
  31. tmpfs           190M  2.9M  188M   2% /run
  32. /dev/xvda1      8.0G  2.5G  5.5G  32% /
  33. tmpfs           475M     0  475M   0% /tmp
  34. /dev/xvdb       7.8G  124M  7.3G   2% /var/lib/mysql
  35. tmpfs            95M     0   95M   0% /run/user/1000
  36. [ec2-user@ip-172-31-37-48 ~]$
  37.  
  38.  
  39. #### Filesystem ext4 for /dev/xvdb ####
  40.  
  41. [ec2-user@ip-172-31-37-48 ~]$ lsblk -f
  42. NAME      FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
  43. xvda
  44. ├─xvda1   xfs          /     0bfb954f-5412-4d5a-8d40-3a2596532c79    5.4G    32% /
  45. ├─xvda127
  46. └─xvda128 vfat   FAT16       8EFE-43B9
  47. xvdb      ext4   1.0         d7503892-7b30-41f3-996d-99573b6a015b    7.2G     2% /var/lib/mysql
  48. [ec2-user@ip-172-31-37-48 ~]$
  49.  
  50.  
  51. ### fstab entry properly came ###
  52. [ec2-user@ip-172-31-37-48 ~]$ cat /etc/fstab
  53. #
  54. UUID=0bfb954f-5412-4d5a-8d40-3a2596532c79     /           xfs    defaults,noatime  1   1
  55. UUID=8EFE-43B9        /boot/efi       vfat    defaults,noatime,uid=0,gid=0,umask=0077,shortname=winnt,x-systemd.automount 0 2
  56. /dev/xvdb /var/lib/mysql/ ext4 defaults 0 0
  57.  
  58.  
  59. #### permission correct ####
  60.  
  61. [ec2-user@ip-172-31-37-48 ~]$ ll /var/lib/mysql/
  62. total 122944
  63. -rw-rw----. 1 mysql mysql     24576 Jun 28 11:19 aria_log.00000001
  64. -rw-rw----. 1 mysql mysql        52 Jun 28 11:19 aria_log_control
  65. drwx------. 2 mysql mysql      4096 Jun 28 11:19 blog_db
  66. -rw-rw----. 1 mysql mysql       976 Jun 28 11:19 ib_buffer_pool
  67. -rw-rw----. 1 mysql mysql  12582912 Jun 28 11:19 ibdata1
  68. -rw-rw----. 1 mysql mysql 100663296 Jun 28 11:20 ib_logfile0
  69. -rw-rw----. 1 mysql mysql  12582912 Jun 28 11:20 ibtmp1
  70. drwx------. 2 mysql mysql     16384 Jun 28 11:19 lost+found
  71. -rw-rw----. 1 mysql mysql         0 Jun 28 11:19 multi-master.info
  72. drwx------. 2 mysql mysql      4096 Jun 28 11:19 mysql
  73. srwxrwxrwx. 1 mysql mysql         0 Jun 28 11:20 mysql.sock
  74. -rw-rw----. 1 mysql mysql        16 Jun 28 11:19 mysql_upgrade_info
  75. drwx------. 2 mysql mysql      4096 Jun 28 11:19 performance_schema
  76. [ec2-user@ip-172-31-37-48 ~]$
  77. [ec2-user@ip-172-31-37-48 ~]$ sudo systemctl status mariadb
  78. ● mariadb.service - MariaDB 10.5 database server
  79.      Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
  80.      Active: active (running) since Wed 2023-06-28 11:20:09 UTC; 19min ago
  81.        Docs: man:mariadbd(8)
  82.              https://mariadb.com/kb/en/library/systemd/
  83.    Main PID: 1986 (mariadbd)
  84.      Status: "Taking your SQL requests now..."
  85.       Tasks: 9 (limit: 1114)
  86.      Memory: 85.3M
  87.         CPU: 446ms
  88.      CGroup: /system.slice/mariadb.service
  89.              └─1986 /usr/libexec/mariadbd --basedir=/usr
  90.  
  91. Jun 28 11:20:08 ip-172-31-37-48.ap-south-1.compute.internal systemd[1]: Starting mariadb.service - MariaDB 10.5 databas>
  92. Jun 28 11:20:08 ip-172-31-37-48.ap-south-1.compute.internal mariadb-prepare-db-dir[1939]: Database MariaDB is probably >
  93. Jun 28 11:20:08 ip-172-31-37-48.ap-south-1.compute.internal mariadb-prepare-db-dir[1939]: If this is not the case, make>
  94. Jun 28 11:20:08 ip-172-31-37-48.ap-south-1.compute.internal mariadbd[1986]: 2023-06-28 11:20:08 0 [Note] /usr/libexec/m>
  95. Jun 28 11:20:09 ip-172-31-37-48.ap-south-1.compute.internal systemd[1]: Started mariadb.service - MariaDB 10.5 database>
  96. [ec2-user@ip-172-31-37-48 ~]$
Advertisement
Add Comment
Please, Sign In to add comment