How to resize HDD of VMware vCenter Server Appliance on demand

After installing VMware vSphere Server Applicance the partitions of a Hard Disk is to small. In this example we have separete vCenter Server Appliance (VCA) and Platform Service Controller (PSC).

After deployment the log partition of the PSC seems to be to small. We have two options: One is to add a new disk and add them to the lvm log volume group vg_log or two, we increase the size of the Disk which is already in the lvm group.

I choose the way to increase the size if the Disk. But which is the right Disk? There are 11 Disks attached to the PSC-VM. The log partition has 5GB of space and three of this disks have also 5GB of space (by default). Which is the right one?

Log-on to the PSC and analyse the structure.

1. Just view which device is used for log

vmware-psc:~ # mount
...
/dev/mapper/core_vg-core on /storage/core type ext3 (rw)
/dev/mapper/log_vg-log on /storage/log type ext3 (rw)
/dev/mapper/db_vg-db on /storage/db type ext3 (rw,noatime,nodiratime)
...

Now we know that /dev/mapper/log_vg is mounted to /storage/log, it is the VolumeGroup “log_vg”.

Now lets see which Disks are attached to this group:

vmware-psc:~ # pvdisplay
...
  --- Physical volume ---
  PV Name               /dev/sde
  VG Name               log_vg
  PV Size               5,00 GiB / not usable 8,00 MiB
  Allocatable           yes (but full)
  PE Size               8,00 MiB
  Total PE              639
  Free PE               0
  Allocated PE          639
  PV UUID               7IWngJ-vdMH-05do-pwns-IUBa-DUKU-DkHWh8
...

OK, the device is /dev/sde. Now we need the SCSI-Bus Node ID to find the right HardDisk in VCSA.

vmware-psc:~ # ll /sys/block/sde
lrwxrwxrwx 1 root root 0 24. Nov 07:47 /sys/block/sde -> ../devices/pci0000:00/0000:00:10.0/host0/target0:0:4/0:0:4:0/block/sde

There is it: 0:4. Inside VM setting in the vCenter find the Harddisk which is on Node Node 0:4 and set the size to e.g. 10GB.

Note: You cannot resize the Disk size if you have snapshots for this VM!

Now, we have to rescan the the disksize and than to resize the Physical and Logical Volume and resize the partitions:

$ echo 1 > /sys/block/sde/device/rescan
$ pvresize /dev/sde
$ lvresize /dev/log_vg/log -l +100%FREE
$ resize2fs /dev/log_vg/log

Now our log partition is has 10GB of space ­čÖé

Den ersten eigenen Bogen kaufen

Auf Facebook kommt immer die Frage ob ein bestimmter Bogen gut oder schlecht ist. Meistens sind es Angebote um die 200ÔéČ. Mal ganz ehrlich! Ein Moderner Bogen ist ein Hightech Pr├Ązisionsget├Ąt. Und das zu diesem┬áPreis?┬áPrinzipiell gilt erst mal: DEN┬áperfekten Bogen gibt es nicht!

Continue reading “Den ersten eigenen Bogen kaufen”

Bogenschie├čen…

…und was ist daran so schwer??

Zur Zeit genie├čt der Bogensport gro├čen Zulauf in den Vereinen. Auch das allgemeine Interesse an Pfeil und Bogen steigt derzeit imens. Aber warum? Und was ist an diesem Sport so faszinierend? Von au├čen erscheint der Sport doch eher langweilig. Und es sieht so einfach aus! Continue reading “Bogenschie├čen…”