<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{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:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Kristine, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">What is the current expectation for backup fs when modify controllerfs?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">e.g., if we want to increase any replicated controller fs, do we first need to modify non-replicated backup fs on both controllers to ensure there are enough spaces for all the replicated and non-replicated file
systems?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Yang <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Bujold, Kristine [mailto:Kristine.Bujold@windriver.com]
<br>
<b>Sent:</b> August-13-19 12:49 PM<br>
<b>To:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Cc:</b> Balaraj, Juanita<br>
<b>Subject:</b> [Starlingx-discuss] [DOCS] new host-fs CLI commands<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A new CLI command called host-fs has been introduced to enable resizing of filesystems on a specific host. Changes were also made to the controllerfs API.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://bugs.launchpad.net/starlingx/+bug/1830142">https://bugs.launchpad.net/starlingx/+bug/1830142</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt">Previously<o:p></o:p></span></b></p>
<p class="MsoNormal">Previously we allowed resizing of our filesystems through the controllerfs API, which only applied to controller hosts. The controllerfs API modified the following filesystems;
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none">- <b>drbd replicated</b><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> database<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> docker-distribution<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> etcd<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> extension<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> glance<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none">- <b>non replicated</b><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> backup<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> docker
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none"> scratch<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt">New host-fs API<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none">A new host-fs API has been created to allow a filesystem to be resized on any specific host. The non drbd filesystems from controllerfs (backup, docker and scratch) have been moved to the new host-fs API. Also
a new filesystem called "kublet" has been created on all hosts with a default size of 10G.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none">The new API has the following CLI commands
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none">system host-fs-list <hostname or id><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none">system host-fs-modify <hostname or id> <fs_name=size> [<fs_name=size> ...]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-autospace:none">system host-host-show <hostname or id> <fs name or uuid> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">system host-fs-list controller-1</span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| UUID | FS Name | Size in GiB | Logical Volume |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| a4d83571-a555-4ba5-999f-af709206ae35 | backup | 40 | backup-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| d57652a1-af17-47b8-b941-9ebfeee4a56f | docker | 30 | docker-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| a84374c6-8917-4db5-bd34-2a8d244f2bf6 | kubelet | 10 | kubelet-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| 2c026d6f-5c03-4135-abca-c0047aa7f5a6 | scratch | 8 | scratch-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black"> <o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">system host-fs-list compute-1<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| UUID | FS Name | Size in GiB | Logical Volume |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| 32e8b0b2-8a26-4c87-ae2e-71477b276740 | docker | 30 | docker-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| 223671f7-aed0-4c6e-b1d2-1327aae74439 | kubelet | 10 | kubelet-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| 36b96d05-febb-411b-a290-abdc5a2be0ff | scratch | 4 | scratch-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black"> <o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">system host-fs-show controller-1 a4d83571-a555-4ba5-999f-af709206ae35<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+----------------+--------------------------------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| Property | Value |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+----------------+--------------------------------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| uuid | a4d83571-a555-4ba5-999f-af709206ae35 |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| name | backup |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| size | 40 |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| logical_volume | backup-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| created_at | 2019-08-08T03:05:25.341669+00:00 |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| updated_at | None |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+----------------+--------------------------------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black"> <o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">system host-fs-modify controller-1 docker=31 kubelet=11<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| UUID | FS Name | Size in GiB | Logical Volume |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| a4d83571-a555-4ba5-999f-af709206ae35 | backup | 40 | backup-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| d57652a1-af17-47b8-b941-9ebfeee4a56f | docker | 31 | docker-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| a84374c6-8917-4db5-bd34-2a8d244f2bf6 | kubelet | 11 | kubelet-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">| 2c026d6f-5c03-4135-abca-c0047aa7f5a6 | scratch | 8 | scratch-lv |<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:8.0pt;font-family:"Courier New","serif";color:black">+--------------------------------------+---------+-------------+----------------+<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New","serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b>Filesystem Supported Hosts Folder Logical Volume Default Size</b>
<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">backup controller /opt/backups backup-lv 40G<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">scratch all hosts /scratch scratch-lv varies depending on system, configured in kickstart<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">docker all hosts /var/lib/docker docker-lv 30G (new fs to worker and storage hosts)<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">kublet all hosts /var/lib/kublet kublet-lv 10G (new fs to all hosts)<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:14.0pt">Changes to controllerfs API<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none">The existing “platform” filesystem is now resizable and added to controllerfs. The “glance” filesystem is now merged into platform. Below are the new filesystems resizable by controllerfs. The backup, docker
and scratch filesystems are now resizable under host-fs.<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New","serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b>Filesystem Folder Logical Volume Default Size</b>
<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">database /var/lib/postgresql pgsql-lv 40G<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">docker-distribution /var/lib/docker-distribution dockerdistribution-lv 16G<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">etcd /opt/etcd etcd-lv 5G<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">extension /opt/extension extension-lv 1G<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><s>glance /opt/cgcs cgcs-lv 20g (removed and merged with platform)<o:p></o:p></s></p>
<p class="MsoNormal" style="text-autospace:none">platform /opt/platform platform-lv 10G<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><s>backup /opt/backups backup-lv managed by host-fs<o:p></o:p></s></p>
<p class="MsoNormal" style="text-autospace:none"><s>scratch /scratch scratch-lv managed by host-fs<o:p></o:p></s></p>
<p class="MsoNormal" style="text-autospace:none"><s>docker /var/lib/docker docker-lv managed by host-fs<o:p></o:p></s></p>
<p class="MsoNormal" style="text-autospace:none"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Kristine <o:p></o:p></p>
</div>
</body>
</html>