LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2014, 12:07 AM   #1
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 92

Rep: Reputation: 15
Question LVM little problem


Hello there,
i'm preparing for RHCSA exam
but i have a problem when implementing this lvm :
Code:
Create the LV of size 50 Physical  Extent value by creating vg of size 16MB & mount it on /mnt/data2 directory
where solution for this lvm are :
Code:
Create a new partition of size 805 M and convert it to LVM
pvcreate /dev/vda6
vgcreate –s 16M <VG NAME> /dev/vda6
lvcreate –L 800M –n <LV NAME> <VGNAME>
 mkfs.ext4 <LVM PATH>
mkdir /mnt/data2
vim /etc/fstab
- add : 
<LV PATH>          /mnt/data2        FS           defaults               1 2
mount –a
now my question is why creating a partition of size 805 M ? from where the size 805 M come from ?
any help will be appreciated
 
Old 07-18-2014, 09:35 AM   #2
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 92

Original Poster
Rep: Reputation: 15
Hello there,
any updates for this problem ??
 
Old 07-18-2014, 09:38 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The LV itself is 800MB (50 extents of 16MB each). The extra 5MB is space for the PV header and metadata.
 
Old 07-18-2014, 09:54 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

For questions related to disk partitioning Red Hat consider +/- 10 MB. Also if you check the vgdisplay output on your system it will show as 16 GiB not 16 GB. There is difference between GiB and GB. Let me put it this way:

1000 MB = 1 GB (Gigabyte)
1024MB = 1 GiB (Gibibyte)

That is where the difference is coming from. I hope this helps.
 
Old 07-18-2014, 11:18 AM   #5
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 92

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by rknichols View Post
The LV itself is 800MB (50 extents of 16MB each). The extra 5MB is space for the PV header and metadata.
Hello rknichols,
thank you so much man
this really was a very big problem for me but because your appreciated help i get understand now,
thank you again
please accept my best regards,,
 
Old 07-18-2014, 11:21 AM   #6
HuMan-BiEnG
Member
 
Registered: Jun 2010
Posts: 92

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by T3RM1NVT0R View Post
For questions related to disk partitioning Red Hat consider +/- 10 MB. Also if you check the vgdisplay output on your system it will show as 16 GiB not 16 GB. There is difference between GiB and GB. Let me put it this way:

1000 MB = 1 GB (Gigabyte)
1024MB = 1 GiB (Gibibyte)

That is where the difference is coming from. I hope this helps.
Hello T3RM1NVT0R,
thanks man so much for this important notice that i have never known before
but because of you i have notice this & i will make use of it
please accept my best regards,,
 
Old 07-18-2014, 11:24 AM   #7
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
you're welcome!
 
  


Reply



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
Problem with LVM mirror and failed PV, can't recover -- Debian Squeeze lvm 2.02.66-5 Linux Ninja Linux - Server 2 06-02-2017 04:50 PM
Raid + LVM add new raid device to LVM, problem request Linux - Server 3 08-15-2012 04:06 AM
problem with LVM yadava Linux - Newbie 1 06-08-2008 01:29 PM
LVM Problem zachsandberg Linux - Software 4 12-29-2006 05:13 AM
LVM Problem ZilverZtream Linux - Software 1 01-15-2005 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration