Software and technical details of CentOS Stream 9 minimal install

Storage

Default installation on a single disk, which has only free space on you disk or you reclaimed all the occupied space during installation. CentOS Stream 9 needs at least 18G space for this kind of installation (Minimal Install), so if you select a destination disk, which has less than 18G of space you should delete existing partitions to free up space or let CentOS Stream 9 installer to do default installation asking you to reclaim the disk space. We used the whole disk for the installation.
By default CentOS Stream 9 uses.

  1. xfs – file system
  2. lvm – root, home and swap partitions
  3. boot, root and home on separate partitions
  4. vfat – efi partition.

CentOS Stream 9 installation:

  1. Disk layout

    [root@srv ~]# parted -l
    Model: ATA KINGSTON SNV425S (scsi)
    Disk /dev/sda: 128GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags: 
    
    Number  Start   End     Size    File system  Name                  Flags
     1      1049kB  630MB   629MB   fat32        EFI System Partition  boot, esp
     2      630MB   1704MB  1074MB  xfs
     3      1704MB  128GB   126GB
    
  2. Mounted Partitions
    [root@srv ~]# df -h
    Filesystem               Size  Used Avail Use% Mounted on
    devtmpfs                  16G     0   16G   0% /dev
    tmpfs                     16G     0   16G   0% /dev/shm
    tmpfs                    6.3G  9.4M  6.2G   1% /run
    /dev/mapper/cs_srv-root   70G  1.6G   69G   3% /
    /dev/sda2               1014M  192M  822M  19% /boot
    /dev/sda1                599M  7.6M  592M   2% /boot/efi
    /dev/mapper/cs_srv-home   36G  288M   36G   1% /home
    tmpfs                    3.2G     0  3.2G   0% /run/user/0
    

    Partitions in configuration:

    [root@srv ~]# cat /etc/fstab 
    
    #
    # /etc/fstab
    # Created by anaconda on Mon Jun 20 09:10:30 2022
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
    #
    # After editing this file, run 'systemctl daemon-reload' to update systemd
    # units generated from this file.
    #
    /dev/mapper/cs_srv-root /                       xfs     defaults        0 0
    UUID=059f784a-2812-47d5-b366-8e55cff9b895 /boot                   xfs     defaults        0 0
    UUID=9819-D9BF          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
    /dev/mapper/cs_srv-home /home                   xfs     defaults        0 0
    /dev/mapper/cs_srv-swap none                    swap    defaults        0 0
    
  3. File system layout
    [root@srv ~]# ls -al /
    total 24
    dr-xr-xr-x.  18 root root  235 Jun 20 09:12 .
    dr-xr-xr-x.  18 root root  235 Jun 20 09:12 ..
    dr-xr-xr-x.   2 root root    6 Aug  9  2021 afs
    lrwxrwxrwx.   1 root root    7 Aug  9  2021 bin -> usr/bin
    dr-xr-xr-x.   5 root root 4096 Jun 20 09:18 boot
    drwxr-xr-x.  21 root root 3820 Jun 20 20:26 dev
    drwxr-xr-x.  81 root root 8192 Jun 20 11:48 etc
    drwxr-xr-x.   2 root root    6 Jun 20 09:14 home
    lrwxrwxrwx.   1 root root    7 Aug  9  2021 lib -> usr/lib
    lrwxrwxrwx.   1 root root    9 Aug  9  2021 lib64 -> usr/lib64
    drwxr-xr-x.   2 root root    6 Aug  9  2021 media
    drwxr-xr-x.   2 root root    6 Aug  9  2021 mnt
    drwxr-xr-x.   2 root root    6 Aug  9  2021 opt
    dr-xr-xr-x. 435 root root    0 Jun 20 11:48 proc
    dr-xr-x---.   2 root root  135 Jun 20 09:19 root
    drwxr-xr-x.  28 root root  800 Jun 20 11:48 run
    lrwxrwxrwx.   1 root root    8 Aug  9  2021 sbin -> usr/sbin
    drwxr-xr-x.   2 root root    6 Aug  9  2021 srv
    dr-xr-xr-x.  13 root root    0 Jun 20 11:48 sys
    drwxrwxrwt.   9 root root 4096 Jun 20 19:44 tmp
    drwxr-xr-x.  12 root root  144 Jun 20 09:12 usr
    drwxr-xr-x.  19 root root 4096 Jun 20 09:18 var
    
  4. LVM configuration
    [root@srv ~]# lvmdiskscan -l 
      WARNING: only considering LVM devices
      /dev/sda3 [    <117.66 GiB] LVM physical volume
      0 LVM physical volume whole disks
      1 LVM physical volume
    [root@srv ~]# pvscan
      PV /dev/sda3   VG cs_srv          lvm2 [117.65 GiB / 0    free]
      Total: 1 [117.65 GiB] / in use: 1 [117.65 GiB] / in no VG: 0 [0   ]
    [root@srv ~]# pvs
      PV         VG     Fmt  Attr PSize   PFree
      /dev/sda3  cs_srv lvm2 a--  117.65g    0
    [root@srv ~]# pvdisplay -m
      --- Physical volume ---
      PV Name               /dev/sda3
      VG Name               cs_srv
      PV Size               <117.66 GiB / not usable 3.00 MiB
      Allocatable           yes (but full)
      PE Size               4.00 MiB
      Total PE              30119
      Free PE               0
      Allocated PE          30119
      PV UUID               HOSjgF-Uddu-k6Xx-Dgsl-S9HR-yqKJ-cx3NY2
       
      --- Physical Segments ---
      Physical extent 0 to 3052:
        Logical volume      /dev/cs_srv/swap
        Logical extents     0 to 3052
      Physical extent 3053 to 12198:
        Logical volume      /dev/cs_srv/home
        Logical extents     0 to 9145
      Physical extent 12199 to 30118:
        Logical volume      /dev/cs_srv/root
        Logical extents     0 to 17919
       
    [root@srv ~]# vgs -o +devices,lv_path
      VG     #PV #LV #SN Attr   VSize   VFree Devices          Path            
      cs_srv   1   3   0 wz--n- 117.65g    0  /dev/sda3(0)     /dev/cs_srv/swap
      cs_srv   1   3   0 wz--n- 117.65g    0  /dev/sda3(3053)  /dev/cs_srv/home
      cs_srv   1   3   0 wz--n- 117.65g    0  /dev/sda3(12199) /dev/cs_srv/root
    [root@srv ~]# vgdisplay -v
      --- Volume group ---
      VG Name               cs_srv
      System ID             
      Format                lvm2
      Metadata Areas        1
      Metadata Sequence No  4
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                3
      Open LV               3
      Max PV                0
      Cur PV                1
      Act PV                1
      VG Size               117.65 GiB
      PE Size               4.00 MiB
      Total PE              30119
      Alloc PE / Size       30119 / 117.65 GiB
      Free  PE / Size       0 / 0   
      VG UUID               7sOxH2-Ld1o-22Nl-Ue44-ZqsL-BJcq-mlQTCf
       
      --- Logical volume ---
      LV Path                /dev/cs_srv/swap
      LV Name                swap
      VG Name                cs_srv
      LV UUID                XaCHG8-mB0J-9p3a-TFlm-e635-aXy3-nAMSQr
      LV Write Access        read/write
      LV Creation host, time srv, 2022-06-20 09:10:24 +0000
      LV Status              available
      # open                 2
      LV Size                <11.93 GiB
      Current LE             3053
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:1
       
      --- Logical volume ---
      LV Path                /dev/cs_srv/home
      LV Name                home
      VG Name                cs_srv
      LV UUID                1GbvFk-ti4D-r42w-ZR6U-Rs4H-9zZJ-xUFr3b
      LV Write Access        read/write
      LV Creation host, time srv, 2022-06-20 09:10:24 +0000
      LV Status              available
      # open                 1
      LV Size                <35.73 GiB
      Current LE             9146
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:2
       
      --- Logical volume ---
      LV Path                /dev/cs_srv/root
      LV Name                root
      VG Name                cs_srv
      LV UUID                YfyiJb-xT7h-A1HF-VS6G-0Bpn-efwg-R6o33l
      LV Write Access        read/write
      LV Creation host, time srv, 2022-06-20 09:10:24 +0000
      LV Status              available
      # open                 1
      LV Size                70.00 GiB
      Current LE             17920
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:0
       
      --- Physical volumes ---
      PV Name               /dev/sda3     
      PV UUID               HOSjgF-Uddu-k6Xx-Dgsl-S9HR-yqKJ-cx3NY2
      PV Status             allocatable
      Total PE / Free PE    30119 / 0
      
    [root@srv ~]# lvs --segments
      LV   VG     Attr       #Str Type   SSize  
      home cs_srv -wi-ao----    1 linear <35.73g
      root cs_srv -wi-ao----    1 linear  70.00g
      swap cs_srv -wi-ao----    1 linear <11.93g
    [root@srv ~]# lvdisplay -m
      --- Logical volume ---
      LV Path                /dev/cs_srv/swap
      LV Name                swap
      VG Name                cs_srv
      LV UUID                XaCHG8-mB0J-9p3a-TFlm-e635-aXy3-nAMSQr
      LV Write Access        read/write
      LV Creation host, time srv, 2022-06-20 09:10:24 +0000
      LV Status              available
      # open                 2
      LV Size                <11.93 GiB
      Current LE             3053
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:1
       
      --- Segments ---
      Logical extents 0 to 3052:
        Type                linear
        Physical volume     /dev/sda3
        Physical extents    0 to 3052
       
       
      --- Logical volume ---
      LV Path                /dev/cs_srv/home
      LV Name                home
      VG Name                cs_srv
      LV UUID                1GbvFk-ti4D-r42w-ZR6U-Rs4H-9zZJ-xUFr3b
      LV Write Access        read/write
      LV Creation host, time srv, 2022-06-20 09:10:24 +0000
      LV Status              available
      # open                 1
      LV Size                <35.73 GiB
      Current LE             9146
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:2
       
      --- Segments ---
      Logical extents 0 to 9145:
        Type                linear
        Physical volume     /dev/sda3
        Physical extents    3053 to 12198
       
       
      --- Logical volume ---
      LV Path                /dev/cs_srv/root
      LV Name                root
      VG Name                cs_srv
      LV UUID                YfyiJb-xT7h-A1HF-VS6G-0Bpn-efwg-R6o33l
      LV Write Access        read/write
      LV Creation host, time srv, 2022-06-20 09:10:24 +0000
      LV Status              available
      # open                 1
      LV Size                70.00 GiB
      Current LE             17920
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:0
       
      --- Segments ---
      Logical extents 0 to 17919:
        Type                linear
        Physical volume     /dev/sda3
        Physical extents    12199 to 30118
       
    

Leave a Reply

Your email address will not be published. Required fields are marked *