Zapucao sam...
Ne znam kako da promenim tip particije u LVM
Imao sam /dev/sda1 i /dev/sda2
Kada sam dodao nov vHDD, kreirao sam particiju ovako
[root@10-0-0-15 /]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x5d071416.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-23068671, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-23068671, default 23068671):
Using default value 23068671
Partition 1 of type Linux and of size 11 GiB is set
Command (m for help): p
Disk /dev/sdb: 11.8 GB, 11811160064 bytes, 23068672 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: 0x5d071416
Device Boot Start End Blocks Id System
/dev/sdb1 2048 23068671 11533312 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Sad kad okinem ako kapiram dobro, samo mi je sda2 LVM
# fdisk -l
Disk /dev/sdb: 11.8 GB, 11811160064 bytes, 23068672 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: 0x5d071416
Device Boot Start End Blocks Id System
/dev/sdb1 2048 23068671 11533312 83 Linux
Disk /dev/sda: 10.7 GB, 10737418240 bytes, 20971520 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: 0x00038974
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 20971519 9972736 8e Linux LVM
Disk /dev/mapper/centos-root: 9093 MB, 9093251072 bytes, 17760256 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: 1073 MB, 1073741824 bytes, 2097152 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
Kad vidim VG dobijam ovaj rezultat, imam 3 PV sto pretpostavljam da znaci da sam uspeo da dodam nov vHDD u Volume Group "centos"
vgdisplay centos
WARNING: Device for PV FWwsYe-uqOv-vKPr-HLu8-zdry-9bZd-dNQcKV not found or rejected by a filter.
--- Volume group ---
VG Name centos
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 3
Act PV 2
VG Size 31.50 GiB
PE Size 4.00 MiB
Total PE 8064
Alloc PE / Size 2424 / 9.47 GiB
Free PE / Size 5640 / 22.03 GiB
VG UUID zFJGar-zvFr-8Ed1-RURC-ceHa-jtbo-DAGUGh
mada kad okinem komandu vidim da imam jedan unknown PV, koji sam greskom dodao. Namerno sam stavio da je nov vHDD 11GB da bih ga razlikovao od boot vhdd.
Sta li sam uke*ao kad sam napravio taj unknown pv?
[root@10-0-0-15 /]# pvdisplay
WARNING: Device for PV FWwsYe-uqOv-vKPr-HLu8-zdry-9bZd-dNQcKV not found or rejected by a filter.
WARNING: Device for PV FWwsYe-uqOv-vKPr-HLu8-zdry-9bZd-dNQcKV not found or rejected by a filter.
--- Physical volume ---
PV Name /dev/sda2
VG Name centos
PV Size 9.51 GiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2434
Free PE 10
Allocated PE 2424
PV UUID ogKCCz-NY1C-jtFD-eC4v-dXRf-JOGc-3htaku
--- Physical volume ---
PV Name unknown device
VG Name centos
PV Size 11.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2815
Free PE 2815
Allocated PE 0
PV UUID FWwsYe-uqOv-vKPr-HLu8-zdry-9bZd-dNQcKV
--- Physical volume ---
PV Name /dev/sdb1
VG Name centos
PV Size 11.00 GiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2815
Free PE 2815
Allocated PE 0
PV UUID IONJbU-awI0-clyd-xmQJ-qSVd-lAIt-8hYpeE
dakle ideja mi je da napravim sdb1 particiju koja bi bila LV i da nakon toga /var folder prebacim na tu particiju...