RedHat Linux- to get international Certification from redhat inc., - Logical Volume
   
  Home
  Contact
  Exam Subject
  Backup and Restore
  Linux Startup and Shutdown
  Printer management
  Storage Management:
  RedHat Package Manager
  DHCP
  Tellnet
  REMOTE LOGIN
  Basic and Advanced Linux Command
  SAMBA SERVER
  NFS
  DNS
  NIS
  Firewall
  Remote Installation:
  User Quota:
  Cron Tab:
  Logical Volume
  RAID
  WebTraffic
  Current Affairs
  Exchange My Code
  Comrades
  Toplist


Logical Volume:


--> To Create LVM partitions are using [8e]
--> Physical Volume Creation
--> pvcreate devicename1 devicename2..
Example:
# pvcreate /dev/hda10 /dev/hda11
# pvcreate /dev/sda10 /dev/sda11 [sata hard drive]

--> Volume group creation
--> vgcreate volumegroupname devicename1 devicename2
--> logical volume creation
# lvcreate -L size -n lv1 vg

To Create a file system:

mke2fs -j /dev/vg/lv1

mount /dev/vg/lv1 /data

/etc/fstab
--- /dev/vg/lv1 /data auto default 1 2


To extend a Logical Volume:

lvextend -L +200m /dev/vg/lv1
mount -0 remount /dev/vg/lv1

To reduce Logical Volume:

lvreduce -L -100m /dev/vg/lv1
mount -o remount /dev/vg/lv1


To Check:

ext2online /dev/vg/lv1 [in el4]

or
resize -t /dev/vg/lv1 [in el5]
 
   
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free