# 日報(2023-10-09) Scaleway に Boot Script を廃止するといわれて途方にくれてる方に

# 背景

Scaleway から [URGENT] Immediate Action Required :Change Boot method to prevent data loss risk ってタイトルでこんな恐ろしいメールが

Dear Customer,
We wish to bring to your attention that the Bootscript feature, discontinued since May 15th, is scheduled to be completely decommissioned across all Availability Zones (AZ) on October 31 2023. It is crucial to act promptly and make the necessary transitions to avoid the risk of permanently losing your Instances.

We have identified that some of your instances are still utilizing Bootscript. Instance types such as VC-x, Start-x, DEV-x, GP-x, and STARDUST1. As these instances could experience issues in the future due to the decommissioning, it is urgent that you update your boot methods promptly.

If you wish to continue using legacy Instance types, you will not be able to create them in the console, but you can still create them using the Scaleway CLI or the Instances API (in the limit of your available quotas).

We recommend you to refer to our documentation which provides the new methods for boot configurations. These instructions will guide you step-by-step to transition smoothly and prevent potential data loss.
We appreciate your understanding and cooperation during this transition period.

Best regards,
The Scaleway Team

で、当該のdocumentation (opens new window) を読むと、いままでありがたく使ってきた VC1S のディスクボリュームは一個の ext4 のパーティション でブートパーティションがないので Local Boot ができないみたいです、途方にくれました

# すごい解決策

途方にくれてググってて見つけたのが Scaleway VC1-x, X64-x, Start1-x bootscript to local boot in-place migration on the same instance (opens new window)、これアイデアがすごくかっこよくて

  • ext4 のパーティションを shrink させて、少し後ろにずらす
  • ずらして空いた所に ブートパーティションを作る
  • ブートパーティションがあるので Local Boot ができる

と、状況を正確に把握した上でのストレートな解決策、かっこいいですね
実際、ステップどおりにやってみたら、私の VC1S インスタンスも無事に Local Boot できました!

# shrink した file system をもう一度広げる

ただ、この手順だと shrink したファイルシステムが shrink したままなので、/dev/vda2fdisk -l で見ると 46Gぐらいあるのに df -h でみるとめちゃ小さいままでビビります。前者はパーティションのサイズを見てて、後者はファイルシステムのサイズを見てるんですね
普通は両者は一致するのでしょうが、今は広い partition に shrink した file system がちょこんと鎮座してるので

resize2fs /dev/vda2

で拡張してあげます

# 感想

こういうどストレートなソリューションを思いついて試してブログで公開してくれる人ってかっこいいです


Last Updated: 2024/1/13 10:23:46