LoginSignup
0
0

More than 3 years have passed since last update.

さくらのVPSストレージ増量メンテで増加したパーティションを追加する(足踏み中。。)

Last updated at Posted at 2020-02-12

はじめに

さくらのVPSが2019年11月19日にストレージ増量メンテナンスを実施され、契約していたVPSが50GB SSD → 100GB SSDとなったので、パーティション追加を行った。
結構空き容量が無くなってきていたタイミングだったので渡りに船!
倍ですよ倍!
因みにさくらのVPS ディスク拡張手順を参考に実施した。
ありがとう!さくらインターネット!!

環境

VPSプラン 2G
OS CentOS Linux release 7.3.1611
CPU 仮想3Core
メモリ 2GB
SSD 50GB → 100GB 😁

操作手順

gdiskのインストール

# rpm -q gdisk
package gdisk is not installed
# yum -y install gdisk

ディスクの状態確認(vdisk)

# gdisk -l /dev/vda
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************

Disk /dev/vda: 209715200 sectors, 100.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 712FB94B-6375-42FF-8C1B-7D3B8EC68C50
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 209715166
Partitions will be aligned on 2048-sector boundaries
Total free space is 104859581 sectors (50.0 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1026047   500.0 MiB   8300  Linux filesystem
   2         1026048       104857599   49.5 GiB    8E00  Linux LVM

Disk /dev/vda: 209715200 sectors, 100.0 GiB

/dev/vdaに100GBあるでって言ってる
嬉しい
でも無効なGPTもあるでって言ってる
そうか…
MBRからGPTへ変換かけろって言ってるけど大丈夫なのかしら…わからん。。

パーティション確認(lsblk)

# lsblk
NAME                               MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sr0                                 11:0    1 1024M  0 rom
vda                                252:0    0  100G  0 disk
├vda1                              252:1    0  500M  0 part /boot
└vda2                              252:2    0 49.5G  0 part
  ├centos_tk2--xxx--xxxxx-swap     253:0    0    2G  0 lvm  [SWAP]
  └centos_tk2--xxx--xxxxx-root     253:1    0 47.5G  0 lvm  /

vda1, vda2の2つのパーティションがある模様

課題

# sgdisk -g /dev/vda

ってやればその後はいい感じにいけそうだけど、環境壊れないか不安。。。
ってなって足踏み中です

もし似たような事された方いたらご意見ください

(2020/05/09追記)
作業完了しました!(色々躓きましたが。。)
後日まとめます!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0