Blog Archives

How to remove LVM

How to remove LVM ================================================================= 1> unmount LV #umount /dev/vg0/lv0 2> remove entry in /etc/fstab 3> mount remaining partition #mount -a 4> remove lv #lvremove /dev/vg0/lv0 5> remove vg #vgremove vg0 6> remove pv #pvremove /dev/sda{9,10,11} 7> delete partition using

Posted in partitions

How to change LV and VG name

How to change LV and VG name ================================================================================================ change LV name 1> #lvrename /dev/vg0/lv0 /dev/vg0/Mylv ————-> #lvrename old new 2> #vim /etc/fstab replace old name with new one 3> #reboot ================================================================================================ Change VG name 1> #vgrename vg0 myvg 2> #vim

Posted in partitions

How to reduce and extend LVM size

How to reduce and extend LVM size ========================================================================================== Reduce check curent size of lv using command “#lvs”. If original size is 500MB and you want to reduce by 100MB. ie. new size = 400MB ________________________________________________________________________________________________________ 1> unmount the partition #umount

Posted in partitions

How to extend and reduce VG

How to extend and reduce VG ==================================================================================== Extend 1> create partition using cfdisk and partition type is 8E. 2> #partx -a /dev/sda 3> #pvcreate /dev/sda12 4> #vgextend vg0 /dev/sda12 ——->#vgextend vg_name pv_name Note : check new size as “#vgs” ====================================================================================

Posted in partitions

Logical Volume Manager ( LVM )

Logical Volume Manager ( LVM ) -create physical partion [ set partition type to 8E ( lvm ) ]. -convert it into physical volume ( PV ) -Group PV into volume Group ( VG ) -create Logical Volume ( LV

Posted in partitions

Change the swap partition priority

Change the swap partition priority. 1> Disable swap partition #swapoff -a 2> change priority. #swapon -p -1 /dev/sda11 #swapon -p -2 /dev/sda9 3> renable swap #swapon -a note : verify new status using “#swapon -s” ====================================================================================================== Delete Swap partition. 1>

Posted in partitions

unmount and delete partition

unmount and delete partition. ============================================================================================================= Unmount the partition # umount /dev/sda12 ============================================================================================================= Delete the partition. 1> unmount the partition #umount /dev/sda12 ============================================================================================================= 2> remove the entry from /etc/fstab ============================================================================================================= 3> remove partition #fdisk /dev/sda -press d to delete -press w

Posted in partitions

How to create swap partition

How to create swap partition. ======================================================================================================== 1> create partition using normal method fdisk OR cfdisk ________________________________________________________________________________________________________ 2> change partition type to swap (82) #cfdisk /dev/sda -select free space and create partition. -type tab change 82 ( swap) -write -quit #partx

Posted in partitions

create simple partition

create simple partition: ========================================================================================================================== 1> create partition in free disk space #fdisk /dev/sda press n to create new partition enter first cylinder address { press Enter it will automatically take last cylinder of number from previous partition.} enter last cylinder

Posted in partitions