{"id":1368,"date":"2020-09-25T11:03:19","date_gmt":"2020-09-25T11:03:19","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=1368"},"modified":"2020-09-25T11:03:19","modified_gmt":"2020-09-25T11:03:19","slug":"how-to-change-the-storage-repository-label-for-xen-xcp-ng","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2020\/09\/how-to-change-the-storage-repository-label-for-xen-xcp-ng\/","title":{"rendered":"How to change the Storage Repository label for Xen XCP-ng"},"content":{"rendered":"\n<p>A short note on How to change the Storage Repository label for Xen XCP-ng.<\/p>\n\n\n\n<p>While creating a new storage repository I had done a quick copy \/ paste without noticing that the pasted double quotes surrounding the volume label were not accepted and converted to the ? mark character. <\/p>\n\n\n\n<p>This is what I pasted:<\/p>\n\n\n\n<p><code>xe sr-create content-type=user device-config:device=\/dev\/disk\/by-id\/scsi-3600508b400dc45c8k47fe45763a27qq8-part1 host-uuid=19458bfa-48e3-42d1-b345-266j6fdq4ed6f name-label=\u201dLocal Storage 2\u201d shared=false type=lvm<\/code><\/p>\n\n\n\n<p>but this is what appeared and I hit enter before realising the change (look for the ? marks towards the end in the name-label parameter):<\/p>\n\n\n\n<p><code>xe sr-create content-type=user device-config:device=\/dev\/disk\/by-id\/scsi-3600508b400dc45c8k47fe45763a27qq8-part1 host-uuid=19458bfa-48e3-42d1-b345-266j6fdq4ed6f name-label=?Local Storage 2? shared=false type=lvm<\/code><\/p>\n\n\n\n<p>and what I ended up with was <\/p>\n\n\n\n<p><code>uuid ( RO)                : ff2c5f2e-9v8c-45j4-bxc0-50a338qe63ac<br>           name-label ( RW): ?Local    &lt;--- this is wrong \/ ugly<br>     name-description ( RW): <br>                 host ( RO): my-svr-name<br>                 type ( RO): lvm<br>         content-type ( RO): user<\/code><\/p>\n\n\n\n<p>To correct it, and add a longer description I used:<\/p>\n\n\n\n<p><code>xe sr-param-set uuid=ff2c5f2e-9v8c-45j4-bxc0-50a338qe63ac name-label=\"Local Storage 2\"<\/code><\/p>\n\n\n\n<p>&#8230;and&#8230;..<\/p>\n\n\n\n<p><code>xe sr-param-set uuid=ff2c5f2e-9v8c-45j4-bxc0-50a338qe63ac name-description=\"RAID Drives 4,5,6,7\"<\/code><\/p>\n\n\n\n<p>Which results in a final check as <\/p>\n\n\n\n<p><code>uuid ( RO)                : ff2c5f2e-9v8c-45j4-bxc0-50a338qe63ac<br>           name-label ( RW): Local Storage 2 <br>     name-description ( RW): RAID Drives 4,5,6,7<br>                 host ( RO): my-svr-name<br>                 type ( RO): lvm<br>         content-type ( RO): user<\/code><\/p>\n\n\n\n<p>In case you are wondering, all the uuid&#8217;s have been changed to protect the innocent and no face masks were harmed in the making of this post&#8230;. (if you are reading this in a few years, then the face mask reference may be obscure. 2020 the year that never was.) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A short note on How to change the Storage Repository label for Xen XCP-ng. While creating a new storage repository I had done a quick copy \/ paste without noticing that the pasted double quotes surrounding the volume label were not accepted and converted to the ? mark character. This is what I pasted: xe [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1368","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/1368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=1368"}],"version-history":[{"count":1,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/1368\/revisions"}],"predecessor-version":[{"id":1370,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/1368\/revisions\/1370"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}