Home Linux Physical Volume / Logical Volume Creation - Sample
Physical Volume / Logical Volume Creation - Sample PDF Print E-mail
Written by Siva   
Thursday, 06 December 2012 20:34

Here are sample commands:

After adding new disk or create physical volume using pvcreate command.

Then create volume group using vgcreate command, then logical volumes using lvcreate commands.

 

pvcreate /dev/sdc

 

vgcreate /dev/vgoracle /dev/sdd

 

 

lvcreate -L 10240 -n voracle vgoracle

lvcreate -L 20480 -n vexp vgoracle

lvcreate -L 20480 -n vbadmin vgoracle

lvcreate -L 10240 -n vbagent vgoracle

lvcreate -L 10240 -n vbcrs_home vgoracle

lvcreate -L 20480 -n vbdump vgoracle

 

 

 

mkfs -t ext3 /dev/vgoracle/vbadmin

mkfs -t ext3 /dev/vgoracle/vbagent

mkfs -t ext3 /dev/vgoracle/vbcrs_home

mkfs -t ext3 /dev/vgoracle/vdump

mkfs -t ext3 /dev/vgoracle/vexp

 

 

 

tune2fs -c 0 -i 0 /dev/vgoracle/vbadmin

tune2fs -c 0 -i 0 /dev/vgoracle/vbagent

tune2fs -c 0 -i 0 /dev/vgoracle/vbcrs_home

tune2fs -c 0 -i 0 /dev/vgoracle/vbdump

tune2fs -c 0 -i 0 /dev/vgoracle/vexp

 

 

 

~~~~~~~~~~~~~~~~~~~~~~~~ in /etc/fstab ~~~~~~~~~~~~~~~~~

 

##### FS for Oracle ##############################

 

/dev/vgoracle/voracle                    /oracle                                       ext3 defaults 1 2

/dev/vgoracle/vexp                       /oracle/export                                ext3 defaults 1 2

/dev/vgoracle/vbadmin                    /oracle/admin                                 ext3 defaults 1 2

/dev/vgoracle/vbagent                    /oracle/product/emagent                       ext3 defaults 1 2

/dev/vgoracle/vbcrs_home                 /oracle/product/grid_home                     ext3 defaults 1 2

/dev/vgoracle/vbdump                     /oracle/dump/DATABASE                         ext3 defaults 1 2

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

###Create Directory

 

mkdir -p /oracle


### mount

 

mount -a

 

##Verify

df -kH

 

 

 

 

 

 
 

Advertisement

Featured Links:
HREmail.com
Looking for job? Try HREmail.com
Want to have CMS based Websites?
Try siliconwebcreators.com to CMS based websites.
VM Solutions Inc
For best VM solutions..
Digital Procedure Inc.
Looking for Oracle /SAP /Weblogic Consulting services? visit digitalprocedure.com