LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount Partitions Created in linux (https://www.linuxquestions.org/questions/linux-newbie-8/mount-partitions-created-in-linux-4175478607/)

shubhamuddu 09-26-2013 04:08 AM

Mount Partitions Created in linux
 
Hi

I have installed Linux software to install database software.
When i issue df -h command can only see 4 file systems say
/dev/mapper/vg_cluster_lv_root mounted on / has more space
tmpfs is on /dev/sdb
/dev/sda1 on /boot
/dev/mapper/vg_cluster_lv_home on /home

So created partitions of /dev/mapper/vg_cluster_lv_root using fdisk as
/dev/mapper/vg_cluster_lv_rootp1
/dev/mapper/vg_cluster_lv_rootp2
/dev/mapper/vg_cluster_lv_rootp3

is the partition table and will not be shown in df -h.

Please tell us how to mount them to install database software.

Thanks

sxa 09-26-2013 06:02 AM

Mounting these partitions is a two step process:

First step is making sure that they have a filesystem on them. I am not sure what filesystem you are wishing to use (ext3, ext4, zfs, etc). This really depend on your needs and the database software vendor (if there is one) will be able to tell you exactly what filesystem type you should use.

To create an ext3 filesystem which will likely be your best bet you would run the following command as root

mkfs -t ext3 /dev/mapper/vg_cluster_lv_rootp1

You will want to run this for each new partition that you created and this will put the ext3 filesystem on these partitions.

Next you will want to create the directory where you plan to mount these:

mkdir /data
mkdir /data1
mkdir /data2

These are just examples -- choose whereever you want to mount these and obviously skip this step if you already know where you want these new partitions mounted.

Now you will mount using the mount command, again as root.

mount [your-partition] [mount-point]

example:

mount /dev/mapper/vg_cluster_lv_rootp1 /date

To ensure that these auto-mount when you restart your system you need to add these mount points to your /etc/fstab file. Again open this file as root using your favorite text editor

Add lines for ach of your new mount points

Example:

/dev/mapper/vg_cluster_lv_rootp1 /data ext3 defaults 0 0

This should get your going, the filesystem or fstab options may vary based on your needs.


All times are GMT -5. The time now is 07:42 AM.