[SFS] mounting linux filesystem from local drives

Aaron Brown aayore@gmail.com
Thu, 12 Jan 2017 18:36:09 -0700


This is a multi-part message in MIME format.
--------------000800080309000705050606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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

> Jed Walker <mailto:jedwa@comcast.net>
> 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
>


--------------000800080309000705050606
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">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=my_data_disk in place of
 /dev/sdb1 your fstab.<br>
<br>
-Aaron<br>
<span>

</span><br>
<blockquote style="border: 0px none;" 
cite="mid:005201d26d3c$71ccd3c0$55667b40$@comcast.net" type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="width:100%;border-top:1px solid #EDEEF0;padding-top:5px">   <div 
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
   	<a moz-do-not-send="true" href="mailto:jedwa@comcast.net" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Jed Walker</a></div>   <div 
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
 right;">     <font color="#9FA2A5"><span style="padding-left:6px">January
 12, 2017 at 6:29 PM</span></font></div>    </div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><meta content="text/html; 
charset=ISO-8859-1" http-equiv="Content-Type"><meta content="Microsoft 
Word 14 (filtered medium)" name="Generator"><style>&lt;!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
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-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--&gt;</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p 
class="MsoNormal">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="MsoNormal"><o:p>&nbsp;</o:p></p><p
 class="MsoNormal">/etc/fstab, like:<o:p></o:p></p><p class="MsoNormal"><span
 style="font-size:9.0pt;font-family:&quot;Courier New&quot;">/dev/sdb1&nbsp; 
/mydata&nbsp; xfs defaults,noatime 0 0<o:p></o:p></span></p><p 
class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier
 New&quot;"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal">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="MsoNormal"><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="MsoNormal"><o:p>&nbsp;</o:p></p><p 
class="MsoNormal">Thank you for your help,<o:p></o:p></p><p 
class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">Jed<o:p></o:p></p><p
 class="MsoNormal"><span 
style="font-size:9.0pt;font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p></div></div>
</blockquote>
<br>
</body></html>

--------------000800080309000705050606--