Solved

i need to create a partition and mount it as /opt/app

Posted on 2013-06-14
2
653 Views
Last Modified: 2013-06-17
Hi i have a new harddrive on linux server.
And so far i have done the following


[root@bebearp10 ~]# pvcreate /dev/sdb

  Writing physical volume data to disk "/dev/sdb"
  Physical volume "/dev/sdb" successfully created
[root@bebearp10 ~]#


I want to create a partition and mount it as /opt/app

how do i continue ?


i understand the last commend will be something like  #mount /dev/sdb ... /opt/app

any help would be appreciated.
0
Comment
Question by:c_hockland
2 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 250 total points
ID: 39247952
What Linux distro are you using?

Didn't you install using GUI.  It makes it so much easy for you to follow.

For Red Hat family here's all the information you need.
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-lvm.html

For Debian (Ubuntu)
http://quonn.wordpress.com/2010/12/01/how-to-mount-lvm-partition-on-ubuntu/
http://linuxwave.blogspot.ca/2007/11/mounting-lvm-disk-using-ubuntu-livecd.html
0
 
LVL 6

Assisted Solution

by:xeroxzerox
xeroxzerox earned 250 total points
ID: 39252285
try to run cmd on terminal

#pvs  and #pvdisplay
and you get msg like this...

PV               VG                Fmt    Attr    PSize       PFree
/dev/sda1   VolGroup01  lvm2   a-      148.94G   32.00

it gives you pvs report information about physical volumes..

if you want mount temporary then run following cmd
#mount /dev/VolGroup01/LogVol00   /mnt

if you want permanent mount then make entry in /etc/fstab file

/dev/VolGroup01/LogVol00 /mnt defaults 0 0
 save it and run
# mount -a

remember when you make entry in fstab make sure vg name first write in it and after pv name....

Don't forget to run mount -a cmd in terminal...
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question