8.28 linux disk management

Disk works - the physical
  track sector cylinder heads

  Category disks: mechanical disk (Interface IO), solid state disk
  IO: serial sata scsi (iscsi)
  parallel ATA
  FC Layer protocol (Xerox - Ethernet technology, explains the object-oriented programming language, graphical interface)

  File System - Logical
  disk must have a file system (data storage) - Database (data management platform)
  awk
  Windows NTFS FAT32 exFAT
  Linux but the file system - ext2 3 4 xfs

  inode - index space (file attributes)
  Block - data storage
  data storage process, the process of data replication, data deletion process
  fdisk - partition parted
  mkfs -t
  Mount -o remount, rw
  -a / etc / fstab
  mount or unmount the file overload point
dynamic management - LVM logical volume management
  linux kernel module - dm
  we will integrate one or more disks, re-division;
  first, we need to define PV (physical volumes)
  then, again defined VG (volume group)
  Finally, acquired from VG space --LV (logical)
  the biggest advantage:
  you can delete or add free space, you do not need to repartition;
  the pvcreate the vgcreate named lv -l | -L -n specifies the name of the specified size
  lvextend - add disk space
  lvreduce - delete disk space
  last action:
  to mirror command lv lv can do disk image for the logical partition;
  this function and use a database, data is;
  lvcreate -L -n Morrie_LV -s -pr 1000M / dev / Mapper / VGname-LVname
  / dev / VGname / LVname
  
Disk management disk redundancy --RAID
  (software RAID) linux kernel module - md
  inexpensive redundant disk array
  independent redundant disk array
  1, redundant
  2, increase read and write performance
  raid0 - striping Disk 1 Disk 2
  raid1 - mirroring
  raid4 - at least three disk check disk (RAID degraded)
  RAID5 - a check value are stored in the plurality of disk
  raid6 - secondary calibration
  raid10 do first mirror, the strips do ( better)
  RAID 01
  RAID50
  hard raid - raid card is required to achieve (BIOS provides raid card management)
  software raid - will not do soft raid on the job (reduces the CPU performance)
    if you do: you can use the disk to do the raid , (do not use partition);
  the mdadm disk management
  mdadm -C / dev / md0 -l 1 -n 2 / dev / sdb2 -x / dev / sdb3
disk name:
  MD / SD / HD / VD
  ABC SDA SDB
  . 1 2. 3 4 sda1 sda2  

Guess you like

Origin www.cnblogs.com/liuyuanzzz/p/11424423.html
Recommended