Solved

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

Posted on 2013-06-14
2
665 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

734 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