Category Archives: Linux

yum useful commands

To get a list of availale updates

yum -v check-update

To get a transaction list of last updates

yum -v history list

To get a list of changes during a transaction

yum history info <transactionID>

To remove obsolete kernel packages without questions

package-cleanup –oldkernels -y

Adding a new HDD to the existing VG

Sometimes you need to extend the existing volume group to be able to add free space to the logical volumes in there.

Look at this situation:

[root@localhost ~]# vgs data
 VG #PV #LV #SN Attr VSize VFree
 data 1 1 0 wz--n- 39.99g 0

Continue reading

Extend a Logical Volume to 100% of Volume Group

To extend a logical volume (LV) named ´logs` to the whole space of the volume group (VG) named ´data` execute the following command:

# lvextend -l 100%VG /dev/data/logs