LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 12-27-2012, 10:59 AM   #1
dthaler
Member
 
Registered: Apr 2011
Posts: 74

Rep: Reputation: 0
creating logical volume


can someone please verify the syntax on the following commands:
lvcreate -L150G -n/dev/VolGroup01/u08 VolGroup01
mkfs.ext3 /dev/VolGroup01/dev/VolGroup01/u08


a vgdisplay shows:
VG Name VolGroup01
VG Size 2.27 TB
Alloc PE /Size 38400 /150.00 gb
Free PE /Size 556453 /2.12 TB

an lvdisplay for an existing logical volume on the same volume group shows:
LV Name /dev/VolGroup01/u02
VG Name VolGroup01


it's been a while since i had to create a new logical volume and i'd rather not screw it up... thanks.
 
Old 12-27-2012, 11:28 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,566

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
The only thing that is different from your syntax compared to what I normally use is the name option. I will usually do a one word name and it will end up on the volume groups path in /dev/. Try just setting -n to u08 and see if you get the results you are looking for.
 
1 members found this post helpful.
Old 12-27-2012, 11:29 AM   #3
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
The name should look something like so:

[root]# lvcreate –L drivesize –n mountname VolGroup01
[root]# lvcreate –L 150G –n u08 VolGroup01

Then:

[root]# mkfs.ext3 /dev/VolGroup01/u08

It should automatically add the /dev/VolGroup01 for the lvcreate. Also you have 2.12 TB free - are you not wanting to use that space?
 
1 members found this post helpful.
Old 12-27-2012, 11:58 AM   #4
dthaler
Member
 
Registered: Apr 2011
Posts: 74

Original Poster
Rep: Reputation: 0
creating logical volume

thanks... i didn't want to use all of the 2.12 tb at this time, i only need a logical volume of 150gb at this time which and i'm only going to use about 60% of that.. if an when i need more space i can always to a lvextend
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
[SOLVED] Problem with sudo after creating new logical volume and mount to /var swilsy Linux - Newbie 8 11-25-2012 10:15 PM
Creating mirrored logical volumes from a Volume Group. balajmohan Linux - Server 0 11-19-2009 07:08 PM
creating logical volume of exact specified size devkpict Linux - Software 1 07-16-2009 03:59 AM
Creating a logical volume on RHEL3 samash Red Hat 3 06-17-2006 11:31 AM


All times are GMT -5. The time now is 07:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration