FAlinux04 basics

Disk management

fdisk -l view hard disk

1 fdisk /dec/sdb hard disk partition

    m for help

    n New partition p Primary partition 1      +10G w Save and exit q Exit without saving

MBR mode: Mater Boot Record master boot record single hard disk can not exceed 2TB, more than can not be used can only be divided into four primary partitions

    3P +1E (Logical logical partition volume) extended partition Primary partition plus logic to drive up to 15 extended partitions cannot be used directly and need to be repartitioned, occupying one partition360 screenshot 20210117142336451.jpg

The first logical drive must start at 5

     (rhel 7 gdisk==gpt fdisk gpt 128 primary partitions A single hard disk supports more than 2TB

       rhel6       parted     mklabel gpt )

2 Format the partition

    The disk has a partition mounted, after the new partition, you must execute partprobe /dev/sdb2 to format the partition to take effect

     mkfs.ext4 /dev/sdb1 format, support up to 16T partition format

3 Need to mount to use munt /dev/sdb1 /video

4 Uninstall

    umount /dev/sdb1 or /video

5 vim / etc / fstab permanent mount wrong system may not get up

    blkid query UUid will not change, drive letter may change 

    UUID or /dev/sdb1 /vedio ext4 defaults 0 0 (CD drive format iso9660)

    It is best to copy iso to linux and mount it to avoid loss of CD

    /isos/RHEL7OSP-6.0-2015-02-23.2-x86_64.iso /var/www/html/openstack iso9660 defaults 0 0

    mount -a mount all devices in /etc/fstab

fsck -v /dev/sdb1 Check and repair the file system exs4

xfs_repair /dev/sdb1 for xfs system

Two KVM Management Kernel-based Virtual Machine Kernel-based Virtual Machine

1 cpu must support VT-X

2 Enable this function in BIOX Physical machine

3 Virtualization software 64OS must be installed

4 Install KVM. By default, there is no bridge mode graphical interface to use KVM graphical management tools.

yum groupinstall "Virtualization*"

systemctl restart libvirtb.service to start the service

5 Configure bridge mode

1 copy network card files 

    Modify the following content and other unchanged    

    TYPE=Bridge

    NAME=br0

    DEVICE=br0  

    Original physical network card 

    Add a line BRIDGE=br0

 systemctl restart network 

    brctl show view bridge

Guess you like

Origin blog.51cto.com/14234935/2594218