Fedora26からFedora27へのupgrade

容量が足りなくて/を拡張したがスムーズに70分ほどで完了

[root@localhost ~]# dnf system-upgrade download --refresh --releasever=27
Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y

Error Summary
-------------
Disk Requirements:
At least 161MB more space needed on the / filesystem.

[root@localhost /]# df
df: /mnt/hgfs: Protocol error
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 489948 0 489948 0% /dev
tmpfs 502096 0 502096 0% /dev/shm
tmpfs 502096 1800 500296 1% /run
tmpfs 502096 0 502096 0% /sys/fs/cgroup
/dev/mapper/fedora-root 17938864 16067680 936888 95% /
tmpfs 502096 92 502004 1% /tmp
/dev/sda1 487652 177417 280539 39% /boot
tmpfs 100416 0 100416 0% /run/user/0


[root@localhost ~]# pvdisplay -v
Wiping internal VG cache
Wiping cache of LVM-capable devices
--- Physical volume ---
PV Name /dev/sda2
VG Name fedora
PV Size 19.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 4994
Free PE 0
Allocated PE 4994
PV UUID 9fMw3k-wBB2-cJj2-gO6M-W27z-kTZJ-IhcPwR

--- Physical volume ---
PV Name /dev/sdb
VG Name vg01
PV Size 2.00 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 511
Free PE 0
Allocated PE 511
PV UUID cXebNi-3Nrr-TX98-pmvP-VxV8-2yby-Wui70k

[root@localhost ~]# pvcreate /dev/sdc
Physical volume "/dev/sdc" successfully created.
[root@localhost ~]# pvdisplay /dev/sdc
"/dev/sdc" is a new physical volume of "2.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sdc
VG Name
PV Size 2.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID M9VIBi-Sgc1-fTFX-CpCR-vHVx-AGOp-c6fD3I

[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name fedora
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 19.51 GiB
PE Size 4.00 MiB
Total PE 4994
Alloc PE / Size 4994 / 19.51 GiB
Free PE / Size 0 / 0
VG UUID mZSFlo-gO7B-9apm-NqjS-xXQ4-PgyF-LSsD9f

--- Volume group ---
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.00 GiB
PE Size 4.00 MiB
Total PE 511
Alloc PE / Size 511 / 2.00 GiB
Free PE / Size 0 / 0
VG UUID 8qPtTf-cqtx-hdJY-U2CT-JOdd-vyDG-Q6PId0

[root@localhost ~]# vgextend fedora /dev/sdc
Volume group "fedora" successfully extended
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name fedora
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 21.50 GiB
PE Size 4.00 MiB
Total PE 5505
Alloc PE / Size 4994 / 19.51 GiB
Free PE / Size 511 / 2.00 GiB
VG UUID mZSFlo-gO7B-9apm-NqjS-xXQ4-PgyF-LSsD9f

--- Volume group ---
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.00 GiB
PE Size 4.00 MiB
Total PE 511
Alloc PE / Size 511 / 2.00 GiB
Free PE / Size 0 / 0
VG UUID 8qPtTf-cqtx-hdJY-U2CT-JOdd-vyDG-Q6PId0

[root@localhost ~]# lvextend -l +100%FREE /dev/fedora^C
[root@localhost ~]# lvdisplay /dev/fedora/root
--- Logical volume ---
LV Path /dev/fedora/root
LV Name root
VG Name fedora
LV UUID BjNzAc-V9ZG-0At4-gr4U-warG-Kv3K-hdsQdU
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2015-11-14 11:57:53 +0900
LV Status available
# open 1
LV Size 17.51 GiB
Current LE 4482
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

[root@localhost ~]# lvextend -l +100%FREE /dev/fedora /dev/fedora/root
"/dev/fedora": Invalid path for Logical Volume.
Run `lvextend --help' for more information.
[root@localhost ~]# lvextend -l +100%FREE /dev/fedora/root
Size of logical volume fedora/root changed from 17.51 GiB (4482 extents) to 19.50 GiB (4993 extents).
Logical volume fedora/root successfully resized.
[root@localhost ~]# lvdisplay /dev/fedora/root
--- Logical volume ---
LV Path /dev/fedora/root
LV Name root
VG Name fedora
LV UUID BjNzAc-V9ZG-0At4-gr4U-warG-Kv3K-hdsQdU
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2015-11-14 11:57:53 +0900
LV Status available
# open 1
LV Size 19.50 GiB
Current LE 4993
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

[root@localhost /]# df
df: /mnt/hgfs: Protocol error
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 489948 0 489948 0% /dev
tmpfs 502096 0 502096 0% /dev/shm
tmpfs 502096 1800 500296 1% /run
tmpfs 502096 0 502096 0% /sys/fs/cgroup
/dev/mapper/fedora-root 17938864 16067680 936888 95% /
tmpfs 502096 92 502004 1% /tmp
/dev/sda1 487652 177417 280539 39% /boot
tmpfs 100416 0 100416 0% /run/user/0
[root@localhost /]# resize2fs /dev/fedora/root
resize2fs 1.43.4 (31-Jan-2017)
Filesystem at /dev/fedora/root is mounted on /; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 2
The filesystem on /dev/fedora/root is now 5112832 (4k) blocks long.

[root@localhost /]# df
df: /mnt/hgfs: Protocol error
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 489948 0 489948 0% /dev
tmpfs 502096 0 502096 0% /dev/shm
tmpfs 502096 1804 500292 1% /run
tmpfs 502096 0 502096 0% /sys/fs/cgroup
/dev/mapper/fedora-root 19999216 16067680 2918436 85% /
tmpfs 502096 92 502004 1% /tmp
/dev/sda1 487652 177417 280539 39% /boot
tmpfs 100416 0 100416 0% /run/user/0

ブログ気持玉

クリックして気持ちを伝えよう!

ログインしてクリックすれば、自分のブログへのリンクが付きます。

→ログインへ

なるほど(納得、参考になった、ヘー)
驚いた
面白い
ナイス
ガッツ(がんばれ!)
かわいい

気持玉数 : 0

この記事へのコメント

この記事へのトラックバック