Technical details of a default CentOS 6.10 minimal installation

Author:

Storage

Default installation on a single disk, which has only free space on you disk or you reclaimed all the occupied space during installation. By default CentOS 6.10 uses.

  1. ext4 – file system
  2. lvm – root and swap partitions
  3. boot, root and home on separate partitions

CentOS 6.10 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: msdos
    
    Number  Start   End    Size   Type     File system  Flags
     1      1049kB  525MB  524MB  primary  ext4         boot
     2      525MB   128GB  128GB  primary               lvm
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/vg_srv-lv_home: 61.0GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    Number  Start  End     Size    File system  Flags
     1      0.00B  61.0GB  61.0GB  ext4
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/vg_srv-lv_swap: 12.8GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    Number  Start  End     Size    File system     Flags
     1      0.00B  12.8GB  12.8GB  linux-swap(v1)
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/vg_srv-lv_root: 53.7GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    Number  Start  End     Size    File system  Flags
     1      0.00B  53.7GB  53.7GB  ext4
    
  2. Mounted Partitions
    [root@srv ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/vg_srv-lv_root
                           50G  717M   46G   2% /
    tmpfs                  16G     0   16G   0% /dev/shm
    /dev/sda1             477M   28M  424M   7% /boot
    /dev/mapper/vg_srv-lv_home
                           56G   52M   53G   1% /home
    

    Partitions in configuration:

    [root@srv ~]# cat /etc/fstab 
    
    #
    # /etc/fstab
    # Created by anaconda on Thu Nov  8 16:37:48 2018
    #
    # 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
    #
    /dev/mapper/vg_srv-lv_root /                       ext4    defaults        1 1
    UUID=638bc353-710d-4065-9d5e-842a851a267e /boot                   ext4    defaults        1 2
    /dev/mapper/vg_srv-lv_home /home                   ext4    defaults        1 2
    /dev/mapper/vg_srv-lv_swap swap                    swap    defaults        0 0
    UUID=d43a31be-fc8e-4833-b1a1-52678e5be174 swap                    swap    defaults        0 0
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    
  3. File system layout
    [root@srv ~]# ls -al /
    total 98
    dr-xr-xr-x.  22 root root  4096  8 Nov 16,42 .
    dr-xr-xr-x.  22 root root  4096  8 Nov 16,42 ..
    -rw-r--r--.   1 root root     0  8 Nov 16,42 .autofsck
    dr-xr-xr-x.   2 root root  4096  8 Nov 16,39 bin
    dr-xr-xr-x.   5 root root  1024  8 Nov 16,39 boot
    drwxr-xr-x.  20 root root  4140  8 Nov 16,42 dev
    drwxr-xr-x.  63 root root  4096  8 Nov 16,53 etc
    drwxr-xr-x.   3 root root  4096 23 Sep  2011 home
    dr-xr-xr-x.   8 root root  4096  8 Nov 16,39 lib
    dr-xr-xr-x.   9 root root 12288  8 Nov 16,53 lib64
    drwx------.   2 root root 16384  8 Nov 16,37 lost+found
    drwxr-xr-x.   2 root root  4096 23 Sep  2011 media
    drwxr-xr-x.   2 root root  4096 23 Sep  2011 mnt
    drwxr-xr-x.   2 root root  4096 23 Sep  2011 opt
    dr-xr-xr-x. 633 root root     0  8 Nov 16,42 proc
    dr-xr-x---.   2 root root  4096  8 Nov 16,40 root
    dr-xr-xr-x.   2 root root 12288  8 Nov 16,53 sbin
    drwxr-xr-x.   7 root root     0  8 Nov 16,42 selinux
    drwxr-xr-x.   2 root root  4096 23 Sep  2011 srv
    drwxr-xr-x   13 root root     0  8 Nov 16,42 sys
    drwxrwxrwt.   3 root root  4096  8 Nov 16,53 tmp
    drwxr-xr-x.  13 root root  4096  8 Nov 16,38 usr
    drwxr-xr-x.  17 root root  4096  8 Nov 16,38 var
    
  4. LVM configuration
    [root@srv ~]# lvmdiskscan -l 
      WARNING: only considering LVM devices
      /dev/sda2           [     118.75 GiB] LVM physical volume
      0 LVM physical volume whole disks
      1 LVM physical volume
    [root@srv ~]# pvscan
      PV /dev/sda2   VG vg_srv          lvm2 [118.75 GiB / 0    free]
      Total: 1 [118.75 GiB] / in use: 1 [118.75 GiB] / in no VG: 0 [0   ]
    [root@srv ~]# pvs
      PV         VG     Fmt  Attr PSize   PFree
      /dev/sda2  vg_srv lvm2 a--u 118.75g    0 
    [root@srv ~]# pvdisplay -m
      --- Physical volume ---
      PV Name               /dev/sda2
      VG Name               vg_srv
      PV Size               118.75 GiB / not usable 3.00 MiB
      Allocatable           yes (but full)
      PE Size               4.00 MiB
      Total PE              30400
      Free PE               0
      Allocated PE          30400
      PV UUID               zgJiHY-dPQM-Z3vH-nkeG-ZpyZ-s7xA-9iTUO1
       
      --- Physical Segments ---
      Physical extent 0 to 12799:
        Logical volume      /dev/vg_srv/lv_root
        Logical extents     0 to 12799
      Physical extent 12800 to 27347:
        Logical volume      /dev/vg_srv/lv_home
        Logical extents     0 to 14547
      Physical extent 27348 to 30399:
        Logical volume      /dev/vg_srv/lv_swap
        Logical extents     0 to 3051
       
    [root@srv ~]# vgs -o +devices,lv_path
      VG     #PV #LV #SN Attr   VSize   VFree Devices          Path               
      vg_srv   1   3   0 wz--n- 118.75g    0  /dev/sda2(0)     /dev/vg_srv/lv_root
      vg_srv   1   3   0 wz--n- 118.75g    0  /dev/sda2(12800) /dev/vg_srv/lv_home
      vg_srv   1   3   0 wz--n- 118.75g    0  /dev/sda2(27348) /dev/vg_srv/lv_swap
    [root@srv ~]# vgdisplay -v
        Using volume group(s) on command line.
      --- Volume group ---
      VG Name               vg_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               118.75 GiB
      PE Size               4.00 MiB
      Total PE              30400
      Alloc PE / Size       30400 / 118.75 GiB
      Free  PE / Size       0 / 0   
      VG UUID               SpJeha-xf3S-DrYW-CJOg-Ya5J-AURI-pWfZlB
       
      --- Logical volume ---
      LV Path                /dev/vg_srv/lv_root
      LV Name                lv_root
      VG Name                vg_srv
      LV UUID                atdKQC-00DU-PY4i-6DQR-CO3O-TqZ1-9gxZTo
      LV Write Access        read/write
      LV Creation host, time srv, 2018-11-08 16:37:25 +0000
      LV Status              available
      # open                 1
      LV Size                50.00 GiB
      Current LE             12800
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:0
       
      --- Logical volume ---
      LV Path                /dev/vg_srv/lv_home
      LV Name                lv_home
      VG Name                vg_srv
      LV UUID                xSaD5k-yWIO-E31y-LMBp-MG16-xpHG-ZCMWfM
      LV Write Access        read/write
      LV Creation host, time srv, 2018-11-08 16:37:33 +0000
      LV Status              available
      # open                 1
      LV Size                56.83 GiB
      Current LE             14548
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:2
       
      --- Logical volume ---
      LV Path                /dev/vg_srv/lv_swap
      LV Name                lv_swap
      VG Name                vg_srv
      LV UUID                MjO8jh-ZcZU-iTns-MS70-1vhS-Gvpf-EAhFA7
      LV Write Access        read/write
      LV Creation host, time srv, 2018-11-08 16:37:42 +0000
      LV Status              available
      # open                 1
      LV Size                11.92 GiB
      Current LE             3052
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:1
       
      --- Physical volumes ---
      PV Name               /dev/sda2     
      PV UUID               zgJiHY-dPQM-Z3vH-nkeG-ZpyZ-s7xA-9iTUO1
      PV Status             allocatable
      Total PE / Free PE    30400 / 0
       
    [root@srv ~]# lvs --segments
      LV      VG     Attr       #Str Type   SSize 
      lv_home vg_srv -wi-ao----    1 linear 56.83g
      lv_root vg_srv -wi-ao----    1 linear 50.00g
      lv_swap vg_srv -wi-ao----    1 linear 11.92g
    [root@srv ~]# lvdisplay -m
      --- Logical volume ---
      LV Path                /dev/vg_srv/lv_root
      LV Name                lv_root
      VG Name                vg_srv
      LV UUID                atdKQC-00DU-PY4i-6DQR-CO3O-TqZ1-9gxZTo
      LV Write Access        read/write
      LV Creation host, time srv, 2018-11-08 16:37:25 +0000
      LV Status              available
      # open                 1
      LV Size                50.00 GiB
      Current LE             12800
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:0
       
      --- Segments ---
      Logical extents 0 to 12799:
        Type                linear
        Physical volume     /dev/sda2
        Physical extents    0 to 12799
       
       
      --- Logical volume ---
      LV Path                /dev/vg_srv/lv_home
      LV Name                lv_home
      VG Name                vg_srv
      LV UUID                xSaD5k-yWIO-E31y-LMBp-MG16-xpHG-ZCMWfM
      LV Write Access        read/write
      LV Creation host, time srv, 2018-11-08 16:37:33 +0000
      LV Status              available
      # open                 1
      LV Size                56.83 GiB
      Current LE             14548
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:2
       
      --- Segments ---
      Logical extents 0 to 14547:
        Type                linear
        Physical volume     /dev/sda2
        Physical extents    12800 to 27347
       
       
      --- Logical volume ---
      LV Path                /dev/vg_srv/lv_swap
      LV Name                lv_swap
      VG Name                vg_srv
      LV UUID                MjO8jh-ZcZU-iTns-MS70-1vhS-Gvpf-EAhFA7
      LV Write Access        read/write
      LV Creation host, time srv, 2018-11-08 16:37:42 +0000
      LV Status              available
      # open                 1
      LV Size                11.92 GiB
      Current LE             3052
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:1
       
      --- Segments ---
      Logical extents 0 to 3051:
        Type                linear
        Physical volume     /dev/sda2
        Physical extents    27348 to 30399
    

One thought on “Technical details of a default CentOS 6.10 minimal installation”

Leave a Reply

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