LVM Basics ReviewBoot Disk Data Disk pvcreate -B mkboot vgcreate pvcreate -B pvcreate -B Lvlnboot lvcreate/lvextend pvcreate vgcreate lvcreate/lvextend pvcreate LIF Header PVRA BDRA LIF Volume VGRA Bad Block Pool User Data Area PVRA VGRA Bad Block Pool User Data Area
5.
LVM PVRA DiskStructures PVRA 中的 lvm record : 128 sector 主要包含以下几个部分等信息: Lvm_id: 为 LVMREC01 ,标示为 PA RISC HPUX 的 LVM 结构。 PVID VGID PV 在 vg 中的 num 号。 LIF Header PVRA BDRA LIF Volume VGRA Bad Block Pool User Data Area Reserved LVM Record Bad Block Dir Reserved Duplicate LVM Record Duplicate Bad Block Dir lvm_id pv_id vg_id last_psn pv_num vgra_len,psn vgda_len,psn vgsa_len mcr_len,psn usr_data info alt_pool_info max_defects reserved BDRA info
6.
LVM PVRA DiskStructures PVRA 中的 BBD : 55 sector 当有 IO 请求网盘上写数据出现错误无法完成时,即在该表中记录下该块的 sector 号,并将数据写入 BBR 区,并记录下该块的 sector num 。 LIF Header PVRA BDRA LIF Volume VGRA Bad Block Pool User Data Area Reserved LVM Record Bad Block Dir Reserved Duplicate LVM Record Duplicate Bad Block Dir Reason Status Defect PSN Alt PSN Sector 423 Sector 1724
7.
LVM Physical DiskLayout BDRA : 16 sector 包含指向 / , root , dump , swap 区的指针。 LIF Header PVRA BDRA LIF Volume VGRA Bad Block Pool User Data Area Magic/ Timestamp PVs in root vg Root PV list Root LV #s Root VG # Swap Lvols Root Lvols Dump Lvols State info PVol List Duplicate BDRA & PVol List
8.
LVM VGDA DiskStructures VGRA 中 VGDA 用于描述 VG 中所包含的每个 PV 和 LV 的信息, LIF Header PVRA BDRA LIF Volume VGRA Bad Block Pool User Data Area Volume Group Descriptor Area Mirror Consistency Record Duplicate Info. Volume Group Status Area VG Header LV entry [1] LV entry [maxlvs] . . . PV entry [1] PV entry [maxpvs] . . . VG Trailer
LVM VGSA DiskStructures Volume Group Descriptor Area Mirror Consistency Record Duplicate Info. Max PEs Max PVs PV Missing Array Data Pointers vgsa_magic timestamp Volume Group Status Area PV Stale Array Data Pointers VGSA 包含 vg 的状态信息,包含“丢失”的 pv 及 stale 的 extend LIF Header PVRA BDRA LIF Volume VGRA Bad Block Pool User Data Area
#5 LIF Header 包含指向 LIF 的指针 LIF Data Area ( Logical Interchange Format ) 包含 LIF PA RISC 机器 HPUX 系统使用的工具: ISL (Initial System Loader) : Chooses a boot disk using hardware paths in NVRAM Loads and runs the ISL utility from the boot disk hpux loader utility : Reads AUTO file from boot disk for kernel load options Loads and runs the hpux kernel loader Autofile Label file Offline Diagnostics