Saturday, February 4, 2012

1. Create the FS using LVM method.



 1.  From    fdisk –l                 identify the disk you need to add to the FS

 2.  pvcreate /dev/sdai        [pvcreate initializes PhysicalVolume for later use by the Logical Volume      Manager (LVM). Each PhysicalVolume can be a disk partition,   whole disk, meta device, or loopback file)

 3.  vgextend RootVolGroup00  /dev/sdai   -It would extend the volume group with the new disk

 4. vgdisplay RootVolGroup00     verify the volume group size again

 5. lvcreate -L  50G /dev/RootVolGroup00  -n  lv_home_cemp    Create a logical volume under the   volume group

 6. lvdisplay  /dev/RootVolGroup00/lv_home_cemp         verify the new logical  volume created

 7.  mkfs -t ext3 /dev/RootVolGroup00/lv_home_cemp     Format the FS in ext3

 8.  mount   /dev/RootVolGroup00/lv_home_cemp    /home/cemp  Mount the FS in a mountpoint

 9.  cat /etc/fstab

 9.  cp -p fstab fstab.bkp.01022012  Taking backup of fstab

10 .  vi  /etc/fstab   Edit the  file for the new Mount points

11.  echo " command " >> /etc/fstab    ( to append a command)
         Eg  : echo "/dev/RootVolGroup00/lv_home_nagios      /home/nagios    ext3    defaults        1 2" >>   /etc/fstab

12. df  –k   Verify the new FS

No comments:

Post a Comment