ISCSI разбивка диска

From V5wiki

Jump to: navigation, search

[root@iscsi-server yaricp]# fdisk -l


Disk /dev/sda: 33.3 GB, 33285996544 bytes, 65011712 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x000c2b9a


  Device Boot      Start         End      Blocks   Id  System

/dev/sda1 * 2048 2099199 1048576 83 Linux

/dev/sda2 2099200 5242879 1571840 8e Linux LVM

/dev/sda3 5242880 49283071 22020096 8e Linux LVM

/dev/sda4 49283072 65011711 7864320 8e Linux LVM


Disk /dev/mapper/centos-root: 9386 MB, 9386852352 bytes, 18333696 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-swap: 268 MB, 268435456 bytes, 524288 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


[root@iscsi-server yaricp]# pvs

 PV         VG     Fmt  Attr PSize   PFree 

 /dev/sda2  centos lvm2 a--   <1,50g      0 
 /dev/sda3  share  lvm2 a--  <21,00g <21,00g
 /dev/sda4  centos lvm2 a--   <7,50g      0


[root@iscsi-server yaricp]# vgs

 VG     #PV #LV #SN Attr   VSize   VFree 

 centos   2   2   0 wz--n-   8,99g      0 
 share    1   0   0 wz--n- <21,00g <21,00g


[root@iscsi-server yaricp]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 31G 0 disk

├─sda1 8:1 0 1G 0 part /boot

├─sda2 8:2 0 1,5G 0 part

│ ├─centos-root 253:0 0 8,8G 0 lvm /

│ └─centos-swap 253:1 0 256M 0 lvm [SWAP]

├─sda3 8:3 0 21G 0 part

└─sda4 8:4 0 7,5G 0 part

 └─centos-root 253:0    0  8,8G  0 lvm  /

sr0 11:0 1 1024M 0 rom


Здесь видно что разделы sda2 и sda4 объеденены через LVM и подмонтированы в root.

То есть основная система находится на разделах sda2 - centos-root и на sda4 - centos-root.

Так исторически сложилось

Personal tools