😎
Initial Setup for RHEL9(RHEL9初期設定)
Initial Setup for RHEL9
1. Basic Configuration
Change Time Zone
timedatectl
timedatectl set-timezone Asia/Tokyo
Disable Firewall
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
Disable SELinux
getenforce
grubby --update-kernel ALL --args selinux=0
getenforce
reboot
2. Adding an Additional Disk (Without LVM)
Verify the Additional Target Disk
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT
ls -l /dev/disk/azure/scsi1/
Create GPT Partition Table
parted -s /dev/sdc mklabel gpt
Allocate Entire Disk to a Single Partition (For XFS)
parted -s -a optimal /dev/sdc mkpart primary xfs 0% 100%
Create XFS Filesystem on the Partition
mkfs.xfs -f /dev/sdc1
Create Mount Point
mkdir -p /data01
Configure Persistent Mount via UUID in fstab
UUID=$(sudo blkid -s UUID -o value /dev/sdc1)
echo "UUID=$UUID /data01 xfs defaults,nofail 0 2" | sudo tee -a /etc/fstab
Apply Mount Settings
systemctl daemon-reload
mount -a
df -h
Discussion