Monday, December 27, 2010

To Create a New logical volume in Linux

Execute the below command to create the new logical volume “netcoolvol01” from “systemvg” Volume group. Please use “vgs” & “lvs” command to know the free space in a volume group


===========================================

lvcreate -L10000 -n netcoolvol01 systemvg


Execute the below command to format the new file system

===========================================

mkfs -t ext3 /dev/mapper/systemvg-netcoolvol01

Mount the new file system
============================================

mount /dev/mapper/systemvg-netcoolvol01 /mnt

[root@dbserver /]# df –h /mnt

/dev/mapper/systemvg-netcoolvol01 9.7G 55M 9.1G 1% /mnt

[root@dbserver /]#

No comments:

Post a Comment