Create raid-0 or lvm on CentOS 8

 1. lsblk



2.gdisk /dev/sdf => n => enter => enter => enter => enter => w  # for whole volume

  gdisk /dev/sdg => n => enter => enter => enter => enter  => w  # for whole volume





















4. lsblk




5. mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdf1 /dev/sdg1

6. mkfs -t xfs  /dev/md0 

7. lsblk


# lvm

5-1. pvcreate /dev/sdf1

6-1. pvcreate /dev/sdg1

7-1. vgcreate saspool /dev/sdf1 /dev/sdg1

8-1 vgdisplay


 

 







9-1. lvcreate --size 523.88TB --name lv02 saspool



10-1. lvscan


10-2 lvdisplay /dev/saspool/lv02









11.  mkfs -t xfs  /dev/saspool/lv02






12. mount /dev/saspool/lv02 /home_sas # remeber to add /etc/fstab

13.   df -h


 

14 lsblk  



這個網誌中的熱門文章

取消Excel與word網際網路與網路路徑超連結自動格式

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)