mbr分区
gpt GUID Partition Table 全局唯一标识磁盘分区表 是一个实体硬盘的分区表的结构布局的标准。它是可扩展固件接口(EFI)标准(被Intel用于替代个人计算机的BIOS)的一部分,被用于替代BIOS系统中的一32bits来存储逻辑块地址和大小信息的主开机纪录(MBR)分区表。
不管是什么操作系统,都是安装在硬盘上的,所在就有相应的格式,这就是根本所在
partition schema of ESXi,win,centos,xenserver,openfiler
windows7的分区类型
centos6.5的分区类型
xenserver6.2的分区类型
esxi5.1的分区类型
openfiler2.99的分区类型
*物理存储介质(PhysicalStorageMedia)
指系统的物理存储设备:磁盘,如:/dev/hda、/dev/sda等,是存储系统最底层的存储单元。
*物理卷(Physical Volume,PV)
指磁盘分区或从逻辑上与磁盘分区具有同样功能的设备(如RAID),是LVM的基本存储逻辑块,但和基本的物理存储介质(如分区、磁盘等)比较,却包含有与LVM相关的管理参数。
分区与物理卷是不一样的,把分区做成物理卷
/dev/sda3与pv
esx5.1的分区/vmfs/device目录很重要 ~ # esxcli storage core device list t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 Display Name: Local ATA Disk (t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0) Has Settable Display Name: true Size: 476940 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 Vendor: ATA Model: ST500DM002-1BD14 Revision: KC45 SCSI Level: 5 Is Pseudo: false Status: on Is RDM Capable: false Is Local: true Is Removable: false Is SSD: false Is Offline: false Is Perennially Reserved: false Queue Full Sample Size: 0 Queue Full Threshold: 0 Thin Provisioning Status: unknown Attached Filters: VAAI Status: unknown Other UIDs: vml.01000000002020202020202020202020205a33544659364830535435303044 Is Local SAS Device: false Is Boot USB Device: false ~ # esxcli storage core device partition listDevice Partition Start Sector End Sector Type Size------------------------------------------------------------------------- --------- ------------ ---------- ---- ------------t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 0 0 976773168 0 500107862016t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 1 64 8192 0 4161536t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 2 1843200 10229760 6 4293918720t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 3 10229760 976773135 fb 494870208000t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 5 8224 520192 6 262127616t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 6 520224 1032192 6 262127616t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 7 1032224 1257472 fc 115326976t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 8 1257504 1843200 6 299876352 esx5.0版没有showguid~ # esxcli storage core device partition showguidDevice Partition Layout GUID------------------------------------------------------------------------- --------- ------ --------------------------------t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 0 GPT 00000000000000000000000000000000t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 1 GPT c12a7328f81f11d2ba4b00a0c93ec93bt10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 2 GPT ebd0a0a2b9e5443387c068b6b72699c7t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 3 GPT aa31e02a400f11db9590000c2911d1b8t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 5 GPT ebd0a0a2b9e5443387c068b6b72699c7t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 6 GPT ebd0a0a2b9e5443387c068b6b72699c7t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 7 GPT 9d27538040ad11dbbf97000c2911d1b8t10.ATA_____ST500DM0022D1BD142___________________________________Z3TFY6H0 8 GPT ebd0a0a2b9e5443387c068b6b72699c7 esx5.0的硬件~ # esxcli storage core adapter listHBA Name Driver Link State UID Description-------- --------- ---------- ------------- ---------------------------------------------------------------------vmhba0 ahci link-n/a sata.vmhba0 (0:0:31.2) Intel Corporation Cougar Point 6 port SATA AHCI Controllervmhba32 ahci link-n/a sata.vmhba32 (0:0:31.2) Intel Corporation Cougar Point 6 port SATA AHCI Controllervmhba33 ahci link-n/a sata.vmhba33 (0:0:31.2) Intel Corporation Cougar Point 6 port SATA AHCI Controllervmhba34 ahci link-n/a sata.vmhba34 (0:0:31.2) Intel Corporation Cougar Point 6 port SATA AHCI Controllervmhba35 ahci link-n/a sata.vmhba35 (0:0:31.2) Intel Corporation Cougar Point 6 port SATA AHCI Controllervmhba36 ahci link-n/a sata.vmhba36 (0:0:31.2) Intel Corporation Cougar Point 6 port SATA AHCI Controllervmhba37 iscsi_vmk online iscsi.vmhba37 iSCSI Software Adapter
lvm备份信息 /etc/lvm目录/dev/disk目录也很重要 [[email protected] backup]# ll total 8 -rw------- 1 root root 3904 May 21 16:46 VG_XenStorage-85ce0366-7bf3-c074-ca54-d3a9f908e3db -rw------- 1 root root 3558 Sep 18 16:02 VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f [[email protected] backup]# less VG_XenStorage-85ce0366-7bf3-c074-ca54-d3a9f908e3db [[email protected] ~]# xe vm-list uuid ( RO) : c34d6c6d-3f33-c073-25f5-1f4bbdf65ccf name-label ( RW): CentOS 5.5_template power-state ( RO): halted uuid ( RO) : 4c34d88d-d6fa-e706-cede-f60ec3f5da00 name-label ( RW): CentOS 6.0 (32-bit) _Mail power-state ( RO): halted uuid ( RO) : 31f0faa0-29cd-4054-973d-81349762fda4 name-label ( RW): Control domain on host: xenserver-flt power-state ( RO): running uuid ( RO) : a69506ea-e8fa-0a9b-a0de-409c6da7f370 name-label ( RW): CentOS 5.5_SVN power-state ( RO): halted uuid ( RO) : 1c16616b-099a-0400-b4d3-a36277b45fba name-label ( RW): CentOS 5.5(FILE) power-state ( RO): halted uuid ( RO) : 2edccca8-b608-f06a-b210-f6abcd9e75d2 name-label ( RW): CentOS 6.0 (32-bit) _template power-state ( RO): halted uuid ( RO) : 6beb4fca-7b93-d9fb-bcd2-dad6354738e4 name-label ( RW): CentOS 6.0 (32-bit)(OA) power-state ( RO): halted [[email protected] mapper]# pvdisplay --- Physical volume --- PV Name /dev/sdb VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f PV Size 465.76 GB / not usable 8.10 MB Allocatable yes PE Size (KByte) 4096 Total PE 119232 Free PE 67406 Allocated PE 51826 PV UUID jn47SO-hAXu-ASKy-BwBh-iJtq-GmCb-lDCsxj [[email protected] mapper]# vgdisplay --- Volume group --- VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 107 VG Access read/write VG Status resizable MAX LV 0 Cur LV 7 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 465.75 GB PE Size 4.00 MB Total PE 119232 Alloc PE / Size 51826 / 202.45 GB Free PE / Size 67406 / 263.30 GB VG UUID 3TNxBp-PtAk-Xxia-6aIq-BTzI-oT1Y-GFx2ex [[email protected] mapper]# lvdisplay --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/MGT VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID KaL8Bh-XpuX-G9Cq-SXUr-Pn7A-DDve-sepHWB LV Write Access read/write LV Status available # open 0 LV Size 4.00 MB Current LE 1 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 1024 Block device 252:0 --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/VHD-509e25fc-f708-4849-9ed6-393235f3b611 VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID Ze9gvg-Re7Z-v71E-RzJx-oU8U-aWuc-KkThsL LV Write Access read/write LV Status NOT available LV Size 40.09 GB Current LE 10262 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/VHD-826741c7-5064-45c0-810d-ddbfc2a7f8ea VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID heNU6V-95tA-me2v-O73u-4bI8-1h1J-ydp3bO LV Write Access read/write LV Status NOT available LV Size 50.11 GB Current LE 12827 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/VHD-4d6c90eb-13b5-4f12-9115-b0609b62074a VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID YKudqI-ldHa-bhK4-jRYn-UBIu-kGAu-WxtVyM LV Write Access read/write LV Status NOT available LV Size 16.04 GB Current LE 4106 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/VHD-4674802b-6ef0-415f-b4d5-933b056deea1 VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID gXlbQ5-tr0G-s7ja-dk68-PcIY-nfrC-1EGC8Q LV Write Access read/write LV Status NOT available LV Size 16.04 GB Current LE 4106 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/VHD-8be06a30-e705-44b4-8f6f-8f96d242090d VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID WPuQVw-aNNz-Oqiz-D92J-gU0S-dkL5-kM2zga LV Write Access read/write LV Status NOT available LV Size 40.09 GB Current LE 10262 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Name /dev/VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f/VHD-3bf8e4f3-6ca0-4b99-960c-9db6bc2d5a66 VG Name VG_XenStorage-e4d10b8c-de2d-2e64-c386-3fee17bf7f4f LV UUID 4F7Bya-D96U-nftP-13He-1tJR-dG6Q-mIMvg9 LV Write Access read/write LV Status NOT available LV Size 40.09 GB Current LE 10262 Segments 2 Allocation inherit Read ahead sectors auto [[email protected] mapper]#
时间: 2024-10-05 23:45:11