-
厚置备与精简置备
厚置备延迟置零 以默认的厚格式创建虚拟磁盘。创建虚拟磁盘时分配虚拟磁盘所需的空间。创建过程中不会清除物理设备上保留的数据,但以后首次从虚拟机写入时则会按需置零。 厚置备置零 一种厚虚拟磁盘类型,可支持群集功能,如 Fault Tolerance。在创建时为虚拟磁盘分配所需的空间。与厚置备延迟置零格式相反,创建虚拟磁盘时,会将物理设备上保留的数据置零。创建这种格式的磁盘所需的时间可能会比创建其他类型的磁盘长。 精简置备 使用此格式可节省存储空间。对于精简磁盘,可以根据输入的磁盘大小值置备磁盘所需的任意数据存储空间。但是,精简磁盘开始时很小,只使用与初始操作所需的大小完全相同的存储空间。 关于虚拟磁盘置备策略
-
OpenStack使用ceph存储时,glance 上传镜像输出
[root@node2 ~(keystone_admin)]# glance image-create –name bc_win2012 –disk-format qcow2 –container-format ovf –f /meta/iso/bc_win2012.qcow2 +——————+———————————————————————————-+ | Property | Value | +——————+———————————————————————————-+ | checksum | 13422230096bef83fade0418d64e9890 | | container_format | ovf | | created_at | 2020-02-26T12:03:58Z | | direct_url | rbd://d484bdf2-c9ba-4e1f-a69f-86586e0dc8ad/images/b9168a42-244f-4642-b08f- | | | 3e6fdc05645e/snap | | disk_format | qcow2 | | id | b9168a42-244f-4642-b08f-3e6fdc05645e | | min_disk…
-
virsh 虚拟机xml信息,留个记录
virsh dumpxml domain 虚拟机dumpxml例,可以参考格式 xml <domain type=’kvm’ id=’12’> <name>ceph-node3</name> <uuid>4f52f828-f538-45cb-9f02-eeb555e96020</uuid> <memory unit=’KiB’>8388608</memory> <currentMemory unit=’KiB’>8388608</currentMemory> <vcpu placement=’static’>2</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch=’x86_64′ machine=’pc-i440fx-rhel7.0.0′>hvm</type> <boot dev=’hd’/> </os> <features> <acpi/> <apic/> </features> <cpu mode=’custom’ match=’exact’ check=’full’> <model fallback=’forbid’>Haswell-IBRS</model> <feature policy=’disable’ name=’hle’/> <feature policy=’disable’ name=’rtm’/> <feature policy=’require’ name=’hypervisor’/> <feature policy=’require’ name=’xsaveopt’/> </cpu> <clock offset=’utc’> <timer name=’rtc’ tickpolicy=’catchup’/> <timer…
-
esxi 查询磁盘情况
查询主机vsan 磁盘 [root@esxi81:~] esxcli vsan storage list t10.ATA_____ST2000DM0062D2DM164__________________________________W4Z4FCNV Device: t10.ATA_____ST2000DM0062D2DM164__________________________________W4Z4FCNV Display Name: t10.ATA_____ST2000DM0062D2DM164__________________________________W4Z4FCNV Is SSD: false VSAN UUID: 525ea6a3-4652-a155-776e-8f4d58b76918 VSAN Disk Group UUID: 52713c13-17df-3858-c503-fef6bc2db464 VSAN Disk Group Name: t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__ Used by this host: true In CMMDS: true Checksum: 4109026058915579745 Checksum OK: true Emulated DIX/DIF Enabled: false t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7 Device: t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7 Display Name: t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7 Is SSD: false…
-
use-mvn-to-resolve-dependency-conflicts
maven 依赖处理 用于依赖冲突 公司本身对某个jar做了特殊处理.例如修改了spring的源码.需要特殊指定. 使用的项目 : Building an Application with Spring Boot 指定依赖版本 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <!– 排除依赖spring-core –> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> </exclusions> </dependency> <!– specify spring-core version –> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>5.1.0.RELEASE</version> </dependency>