Hello all,
got a rather old community-version PVE system running:
On this system I'm utilising 3 disks:
* /dev/sda is the boot
* /dev/sdb holds the actual VMs
* /dev/sdc holds backups
/dev/sdb used to be a WD blue drive with a native 512 sector size. For performance reasons I replaced this with a WD Black drive, after using dd_rescue to clone the blue to the black.
System boots and works just fine. However, I'm afraid of the disk performance I am losing due to having partitions on the new /dev/sdb misaligned:
Also:
This WD disk holds a VG named ExternalStorage on /dev/sdb1:
ExternalStorage VG details:
Contained in ExternalStorage:
All in all, I'm trying to figure out how to align all things ExternalStorage-related... Being newbie in this area certainly does not help.
Any ideas on how to proceed, has someone tackled this successfully.
got a rather old community-version PVE system running:
Code:
# pveversion -v
proxmox-ve-2.6.32: 3.4-172 (running kernel: 2.6.32-44-pve)
pve-manager: 3.4-13 (running version: 3.4-13/4c745357)
pve-kernel-2.6.32-44-pve: 2.6.32-172
pve-kernel-2.6.32-41-pve: 2.6.32-164
pve-kernel-2.6.32-37-pve: 2.6.32-150
pve-kernel-2.6.32-42-pve: 2.6.32-165
pve-kernel-2.6.32-26-pve: 2.6.32-114
pve-kernel-2.6.32-43-pve: 2.6.32-166
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-3
pve-cluster: 3.0-19
qemu-server: 3.4-7
pve-firmware: 1.1-5
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-34
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.2-23
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1
On this system I'm utilising 3 disks:
* /dev/sda is the boot
* /dev/sdb holds the actual VMs
* /dev/sdc holds backups
/dev/sdb used to be a WD blue drive with a native 512 sector size. For performance reasons I replaced this with a WD Black drive, after using dd_rescue to clone the blue to the black.
System boots and works just fine. However, I'm afraid of the disk performance I am losing due to having partitions on the new /dev/sdb misaligned:
Code:
# fdisk -lu /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x7e996182
Device Boot Start End Blocks Id System
/dev/sdb1 63 976768064 488384001 7 HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
Code:
cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
UUID=e1746fa2-eb42-4aa9-a09d-53cd3c6387b2 /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
/dev/sdc1 /mnt/backups ext3 errors=remount-ro 0 2
This WD disk holds a VG named ExternalStorage on /dev/sdb1:
Code:
# pvdisplay
--- Physical volume ---
PV Name /dev/sdb1
VG Name ExternalStorage
PV Size 465.76 GiB / not usable 1.50 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 119234
Free PE 88770
Allocated PE 30464
PV UUID 9EPIVy-go2e-3k2W-L2Y7-5g3Z-NQFj-Bp0XmC
--- Physical volume ---
PV Name /dev/sda2
VG Name pve
PV Size 297.59 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 76182
Free PE 4094
Allocated PE 72088
PV UUID BKx0SX-Ycta-hi1f-24zL-VMb6-O4F6-tubCC0
ExternalStorage VG details:
Code:
# vgdisplay ExternalStorage
--- Volume group ---
VG Name ExternalStorage
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 28
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.76 GiB
PE Size 4.00 MiB
Total PE 119234
Alloc PE / Size 30464 / 119.00 GiB
Free PE / Size 88770 / 346.76 GiB
VG UUID VPXGW3-DzKg-J6iF-t1jR-fCkr-TbF7-ZUZEAI
Contained in ExternalStorage:
Code:
--- Logical volume ---
LV Path /dev/ExternalStorage/vm-103-disk-3
LV Name vm-103-disk-3
VG Name ExternalStorage
LV UUID pv6pdD-fPCJ-1Rbt-3FGu-k7Sk-jIgr-zXeetc
LV Write Access read/write
LV Creation host, time pve-1, 2015-11-04 13:08:05 +0200
LV Status available
# open 0
LV Size 24.00 GiB
Current LE 6144
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/ExternalStorage/vm-104-disk-1
LV Name vm-104-disk-1
VG Name ExternalStorage
LV UUID bxLeyW-Pb5W-vhOe-hqHs-VdrI-bDgu-7FpXyA
LV Write Access read/write
LV Creation host, time pve-1, 2016-01-04 08:34:59 +0200
LV Status available
# open 1
LV Size 35.00 GiB
Current LE 8960
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Path /dev/ExternalStorage/vm-100-disk-1
LV Name vm-100-disk-1
VG Name ExternalStorage
LV UUID SlaihD-PDLF-bPgb-0044-cE5A-r1iH-cjncsL
LV Write Access read/write
LV Creation host, time pve-1, 2016-01-05 08:47:25 +0200
LV Status available
# open 1
LV Size 60.00 GiB
Current LE 15360
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
All in all, I'm trying to figure out how to align all things ExternalStorage-related... Being newbie in this area certainly does not help.
Any ideas on how to proceed, has someone tackled this successfully.