[SFS] mounting linux filesystem from local drives

Jed Walker jedwa@comcast.net
Thu, 12 Jan 2017 18:51:24 -0700


This is a multipart message in MIME format.

------=_NextPart_000_005E_01D26D04.DFAE3B00
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Thank you Aaron. It is being use now, so can I run that while it is being
used to give it a label, and then change the fstab and remount later? Also,
when you say a "label" does that mean it will show as something like
/dev/mapper/<label> ?

 

 

From: Aaron Brown [mailto:aayore@gmail.com] 
Sent: Thursday, January 12, 2017 6:36 PM
To: Jed Walker
Cc: sfs
Subject: Re: [SFS] mounting linux filesystem from local drives

 

The local drives won't move around on you.  They're not subjected to the
same dynamic mapping that's incurred when you use remote disks.  But if
you're worried about it, you could mount by label.  Just use `xfs_admin -L
my_data_disk /dev/sdb1` to label the partition and use LABEL=my_data_disk in
place of /dev/sdb1 your fstab.

-Aaron




 <mailto:jedwa@comcast.net> Jed Walker

January 12, 2017 at 6:29 PM

I have a local disk (raid10) I mounted for storage in CentOS 7. From reading
I believe there is no reason to put LVM on top and I can just partition and
mount. So I figured I mount the filesystem directly on the partition. 

 

/etc/fstab, like:

/dev/sdb1  /mydata  xfs defaults,noatime 0 0

 

This all worked fine and seems fine after reboot, but I got worried.  This
is not something I've done before since my experience is with big databases,
thus I have only worked with mounting external LUNs from storage devices. On
those I always use multipath and udev to associate them to the disks because
the /dev/<dev> names can change on reboot.


Is this not true with local drives?  i.e. will the local drives always mount
with the same name, thus my /etc/fstab above is valid?

 

Thank you for your help,

 

Jed

 

 


------=_NextPart_000_005E_01D26D04.DFAE3B00
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=3Dwhite =
lang=3DEN-US link=3Dblue vlink=3Dpurple><div class=3DWordSection1><p =
class=3DMsoNormal><span style=3D'color:#1F497D'>Thank you Aaron. It is =
being use now, so can I run that while it is being used to give it a =
label, and then change the fstab and remount later? Also, when you say a =
&#8220;label&#8221; does that mean it will show as something like =
/dev/mapper/&lt;label&gt; ?<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowt=
ext'>From:</span></b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowt=
ext'> Aaron Brown [mailto:aayore@gmail.com] <br><b>Sent:</b> Thursday, =
January 12, 2017 6:36 PM<br><b>To:</b> Jed Walker<br><b>Cc:</b> =
sfs<br><b>Subject:</b> Re: [SFS] mounting linux filesystem from local =
drives<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>The local =
drives won't move around on you.&nbsp; They're not subjected to the same =
dynamic mapping that's incurred when you use remote disks.&nbsp; But if =
you're worried about it, you could mount by label.&nbsp; Just use =
`xfs_admin -L my_data_disk /dev/sdb1` to label the partition and use =
LABEL=3Dmy_data_disk in place of /dev/sdb1 your =
fstab.<br><br>-Aaron<br><br><br><o:p></o:p></p><div =
style=3D'margin-left:18.75pt;margin-top:22.5pt;margin-right:18.75pt;margi=
n-bottom:7.5pt'><div style=3D'border:none;border-top:solid #EDEEF0 =
1.0pt;padding:4.0pt 0in 0in 0in'><div><p class=3DMsoNormal =
style=3D'vertical-align:middle'><a =
href=3D"mailto:jedwa@comcast.net"><b>Jed =
Walker</b></a><o:p></o:p></p></div><p class=3DMsoNormal align=3Dright =
style=3D'text-align:right;vertical-align:middle'><span =
style=3D'color:#9FA2A5'>January 12, 2017 at 6:29 =
PM</span><o:p></o:p></p></div></div><div =
style=3D'margin-left:.25in;margin-right:.25in'><p class=3DMsoNormal>I =
have a local disk (raid10) I mounted for storage in CentOS 7. From =
reading I believe there is no reason to put LVM on top and I can just =
partition and mount. So I figured I mount the filesystem directly on the =
partition. <o:p></o:p></p><p class=3DMsoNormal>&nbsp;<o:p></o:p></p><p =
class=3DMsoNormal>/etc/fstab, like:<o:p></o:p></p><p =
class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Courier =
New","serif"'>/dev/sdb1&nbsp; /mydata&nbsp; xfs defaults,noatime 0 =
0</span><o:p></o:p></p><p class=3DMsoNormal><span =
style=3D'font-size:9.0pt;font-family:"Courier =
New","serif"'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal>This all =
worked fine and seems fine after reboot, but I got worried.&nbsp; This =
is not something I&#8217;ve done before since my experience is with big =
databases, thus I have only worked with mounting external LUNs from =
storage devices. On those I always use multipath and udev to associate =
them to the disks because the /dev/&lt;dev&gt; names can change on =
reboot.<o:p></o:p></p><p class=3DMsoNormal><br>Is this not true with =
local drives? &nbsp;i.e. will the local drives always mount with the =
same name, thus my /etc/fstab above is valid?<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p class=3DMsoNormal>Thank you =
for your help,<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p =
class=3DMsoNormal>Jed<o:p></o:p></p><p class=3DMsoNormal><span =
style=3D'font-size:9.0pt;font-family:"Courier =
New","serif"'>&nbsp;</span><o:p></o:p></p></div><p =
class=3DMsoNormal><span style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif"'><o:p>&nbsp;</o:p></span></p></div></body></html>
------=_NextPart_000_005E_01D26D04.DFAE3B00--