Linux operating system - primary --Linux Disk Management

Disk works

  Cylinder Head Sector tracks

  Category disk: mechanical disk SSD

    IO - Serial sata scsi (iscsi) parallel ata

File system

  The disk must have a file system

  windows fat32 ntfs exfat

  linux single file system - ext2 3 4 xfs

    iNode - index space

    block - storage space

    Data stored procedures, data replication, data deletion process

Dynamic management --LVM Logical Volume Management

  Completed by the Linux kernel module - dm module

    We will integrate one or more disks, re-divide

    First define PV (physical volume)

    Then define the volume group VG

    Finally, we'll get the space from VG LV (Logical Volume)

  biggest advantage:

    You can delete or add free space, eliminating the need to re-partition

  LV add disk space: lvextend

  LV delete disk space: lvreduce

  Last action:

    Disk mirroring to mirror LV command may be a logical partition

    This feature and use a database, data backup

    lvcreate -n Morrie_LV -s -p r -L 1000M /dev/mapper/VGname-LVname

                      /dev/VGname/LVname

Disk Management disk redundancy --RAID

  Complete (Software RAID) by the Linux kernel module - md module

  Redundant array of inexpensive disks

  Redundant array of independent disks

    1, redundancy

    2, to improve the performance of read and write

    raid0 - striping

    raid1 - mirroring

    raid4 - check disk

    raid5 - checksum values ​​stored in the fast disk

    raid6 - secondary calibration

    raid10 better than raid01

  divided into hard and soft raid raid raid

    Hard raid - raid card is required to achieve

    Soft raid - will not do soft raid on the job, do not do raid by raid disk partition

    mdadm

  Disk name:

    md/sd/hd/vd

      primary partitions sda1 2 3 4

      Extended partition can have multiple

 

Guess you like

Origin www.cnblogs.com/lyali/p/11413835.html