<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Mar 16, 2023, at 17:02, Jeff Johnson <<a href="mailto:jeff.johnson@aeoncomputing.com" class="">jeff.johnson@aeoncomputing.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="cellpadding:0;border:0;cellspacing:0;display:table;width:100%;table-layout:fixed;border-collapse:seperate;float:none;" align="left" class="">
<tbody style="display:block;" class="">
<tr class="">
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px 7px 2px;background-color:#A6A6A6;valign:middle" class="">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" style="width:100%;background-color:#EAEAEA;padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial, sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word;" class="">
<div class="">If you *really* want a block device on a client that resides in Lustre you *could* create a file in Lustre and then make that file a loopback device with losetup. Of course, your mileage will vary *a lot* based on use case, access, underlying
 LFS configuration.</div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" style="width:75px;background-color:#EAEAEA;padding:7px 5px 7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial, sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word;align:left" class="">
</td>
</tr>
</tbody>
</table>
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<div class="">dd if=/dev/zero of=/my_lustre_mountpoint/some_subdir/big_raw_file bs=1048576 count=100000</div>
<div class="">losetup -f /my_lustre_mountpoint/some_subdir/big_raw_file</div>
<div class="">*assuming loop0 is created*</div>
<div class="">some_fun_command /dev/loop0 </div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Note with ldiskfs backends you can use "fallocate -l 100000M /my_lustre_mountpoint/some_subdir/big_raw_file" to reserve the space.</div>
<div><br class="">
</div>
<div>Alternately, if you have flash-based OSTs you could truncate a sparse file to the full size ("truncate -S 100000M ...") and format that, which will not consume as much space but will generate more random allocation on the OSTs.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">
<div class="">
<div dir="ltr" class="">
<div class="">Disclaimer: Just because you *can* do this, doesn't necessarily mean it is a good idea</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
We saw a good performance boost with ext4 images on Lustre holding many small files (CCI).  Also, I recall some customers in the past using ext2 or ext4 images effectively to aggregate many small files for read-only use on compute nodes.</div>
<div><br class="">
</div>
<div>Cheers, Andreas</div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">
<div class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Mar 16, 2023 at 3:29 PM Mohr, Rick via lustre-discuss <<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Are you asking if you can mount Lustre on a client so that it shows up as a block device?  If so, the answer to that is you can't.  Lustre does not appear as a block device to the clients.<br class="">
<br class="">
-Rick<br class="">
<br class="">
<br class="">
<br class="">
On 3/16/23, 3:44 PM, "lustre-discuss on behalf of Shambhu Raje via lustre-discuss" <<a href="mailto:lustre-discuss-bounces@lists.lustre.org" target="_blank" class="">lustre-discuss-bounces@lists.lustre.org</a> <mailto:<a href="mailto:lustre-discuss-bounces@lists.lustre.org" target="_blank" class="">lustre-discuss-bounces@lists.lustre.org</a>>
 on behalf of <a href="mailto:lustre-discuss@lists.lustre.org" target="_blank" class="">
lustre-discuss@lists.lustre.org</a> <mailto:<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank" class="">lustre-discuss@lists.lustre.org</a>>> wrote:<br class="">
<br class="">
<br class="">
When we mount a lustre file system on client, the lustre file system does not use block device on client side. Instead it uses virtual file system namespace. Mounting point will not be shown when we do 'lsblk'. As it only show on 'df-hT'.<br class="">
<br class="">
<br class="">
How can we mount lustre file system on block such that when we write something with lusterfs then it can be shown in block device??<br class="">
Can share command??<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank" class="">lustre-discuss@lists.lustre.org</a><br class="">
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank" class="">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br class="">
</blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
<span class="gmail_signature_prefix">-- </span><br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">------------------------------<br class="">
Jeff Johnson<br class="">
Co-Founder<br class="">
Aeon Computing<br class="">
<br class="">
<a href="mailto:jeff.johnson@aeoncomputing.com" target="_blank" class="">jeff.johnson@aeoncomputing.com</a><br class="">
<a href="http://www.aeoncomputing.com/" target="_blank" class="">www.aeoncomputing.com</a><br class="">
t: 858-412-3810 x1001   f: 858-412-3845<br class="">
m: 619-204-9061<br class="">
<br class="">
4170 Morena Boulevard, Suite C - San Diego, CA 92117
<div class=""><br class="">
</div>
<div class="">High-Performance Computing / Lustre Filesystems / Scale-out Storage</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a><br class="">
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org<br class="">
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Cheers, Andreas</div>
<div>--</div>
<div>Andreas Dilger</div>
<div>Lustre Principal Architect</div>
<div>Whamcloud</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</body>
</html>