Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

749 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