Solved

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

Posted on 2013-06-14
2
645 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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 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.:

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now