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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-18-2014, 12:07 AM
|
#1
|
Member
Registered: Jun 2010
Posts: 92
Rep:
|
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
|
|
|
07-18-2014, 09:35 AM
|
#2
|
Member
Registered: Jun 2010
Posts: 92
Original Poster
Rep:
|
Hello there,
any updates for this problem ??
|
|
|
07-18-2014, 09:38 AM
|
#3
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,828
|
The LV itself is 800MB (50 extents of 16MB each). The extra 5MB is space for the PV header and metadata.
|
|
|
07-18-2014, 09:54 AM
|
#4
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
@ 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.
|
|
|
07-18-2014, 11:18 AM
|
#5
|
Member
Registered: Jun 2010
Posts: 92
Original Poster
Rep:
|
Quote:
Originally Posted by rknichols
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,,
|
|
|
07-18-2014, 11:21 AM
|
#6
|
Member
Registered: Jun 2010
Posts: 92
Original Poster
Rep:
|
Quote:
Originally Posted by T3RM1NVT0R
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,,
|
|
|
07-18-2014, 11:24 AM
|
#7
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
you're welcome!
|
|
|
All times are GMT -5. The time now is 01:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|