Create filesystem in Linux

1. Create the logical volume (devdba) with 2Gb size in volume group appvg.
# lvcreate -n devdba -L 2G appvg

2. Create the filesystem
# mkfs.ext3 /dev/appvg/devdba

3. Modify the fstab
# vi /etc/fstab

add this in /etc/fstab

/dev/appvg/devdba      /opt/devdba            ext3    defaults        1 2

4. Create the mount point and mount.
# mkdir /opt/devdba ; mount /opt/devdba

5. Modify ownership.
# chown oracle:dba /opt/devdba

Leave a comment