LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-17-2011, 01:19 AM   #1
nivedhitha
Member
 
Registered: Jul 2005
Posts: 32

Rep: Reputation: 0
Significance of '8e'


From my little experience with LVM, my doubt is, what is the significance of selecting the partition filesystem of a PV as 8e?. Even if the partition filesystem is selected as 83 and made as PV, it still works fine when being made part of a VG and then all other LVM operations work fine.

Thank you.
 
Old 05-17-2011, 01:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well whilst the LVM drivers have the "right" to only look for 83 type partitions it's hardly a lot more work to read the first few sectors of all partitions just in case it's wrong. Clearly you should still make them 8e and there's nothing positive in making it report as any other filesystem type at all.
 
Old 05-17-2011, 04:19 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
My understanding is that the lvm subsystem/commands work at a block device level, and so don't see or care about the partition type themselves, but from a correctness standpoint it's an interesting question.

What if you have your PV on a luks encrypted partition. I always create mine as type 8e, but technically speaking the raw partition isn't a LVM PV, it's a luks container so type 8e isn't strictly speaking correct.

Does the existence of type 8e have any point at all?

Last edited by GazL; 05-17-2011 at 04:30 AM.
 
Old 05-17-2011, 05:03 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Apparently not. I had believed (hoped) the "destructive" tools (pvcreate, mkswap, mkfs ...) would check for an appropriate type before trashing the partition.
Wishful thinking.

A quick test shows they will all trash another type quite happily. The only query I got was when I did a pvcreate over the top of a swap partition - it recognised the swap header. Reply "y" and it goes right ahead - it ignores any type mismatch (as did mkswap).
Note: there was no equivalent query when I did a pvcreate over the top of an ext4 filesystem.
 
Old 05-18-2011, 12:17 AM   #5
nivedhitha
Member
 
Registered: Jul 2005
Posts: 32

Original Poster
Rep: Reputation: 0
Thank you all for your replies. So it seems that you need to select the correct partition filesystem type anyway - just to be on the safer side.

Thanks All!
 
  


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
Significance of task_size K-Z Programming 1 12-15-2009 01:29 AM
significance of * and M in menuconfig avyadavnitw Linux - Newbie 3 06-13-2009 03:36 AM
significance of noeol hank43 Linux - General 1 04-14-2007 05:51 AM
What is the Significance of Distributions edwin11 Linux - Distributions 2 12-23-2005 12:10 PM
Significance of *BSD kool_kid *BSD 3 12-15-2005 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:35 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