docs
docs copied to clipboard
Upsize VPS partition: add info for 'remove ext4 signature' prompt
The guide to resize the partition (guide.fr-fr.md) is well explained and following up is easy, but just after creating the partition with 'p' in fdisk this message appears:
Created a new partition 1 of type 'Linux' and of size 20 GiB.
Partition #1 contains a ext4 signature.
Do you want to remove the signature? [Yes/[N]o: |
It would be great to add a line explaining what implies to remove or not the signature.
Hi, Do you want to remove the signature? [Yes/[N]o: | - Choose NO, since if you delete signature the new disk/partition will not be able to be written and is not advisable to have multiple signatures. Follow this article: https://docs.ovh.com/ca/en/vps/repartitioning-vps-after-upgrade/
I've just upgraded my OVH VPS successfully ( 1 disk from 40 GB to 80 GB with one partition /dev/sdb1 )
Bellow is full list of commands:
root@rescue-pro:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE . MOUNTPOINT
sda 8:0 0 2.5G 0 disk
└─sda1 8:1 0 2.5G 0 part /
sdb 8:16 0 80G 0 disk
└─sdb1 8:17 0 40G 0 part /mnt/sdb1
root@rescue-pro:~# umount /dev/sdb1
root@rescue-pro:~# e2fsck -yf /dev/sdb1
e2fsck 1.43.4 (31-Jan-2017) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information cloudimg-rootfs: 669535/2621440 files (0.3% non-contiguous), 6123138/10485464 blocks root@rescue-pro:~# fdisk -u /dev/sdb
Welcome to fdisk (util-linux 2.29.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Command (m for help): p Disk /dev/sdb: 80 GiB, 85899345920 bytes, 167772160 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0005bac1
Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 83885759 83883712 40G 83 Linux
Command (m for help): d Selected partition 1 Partition 1 has been deleted.
Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-167772159, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-167772159, default 167772159):
Created a new partition 1 of type 'Linux' and of size 80 GiB. Partition #1 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: Do you want to remove the signature? [Y]es/[N]o: n
Command (m for help): a
Selected partition 1 The bootable flag on partition 1 is enabled now.
Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
root@rescue-pro:~# resize2fs /dev/sdb1
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/sdb1 to 20971264 (4k) blocks.
The filesystem on /dev/sdb1 is now 20971264 (4k) blocks long.
root@rescue-pro:~# mount /dev/sdb1 /mnt
root@rescue-pro:~# df -h
Filesystem Size Used Avail Use% Mounted on udev 3.8G 0 3.8G 0% /dev tmpfs 780M 8.4M 772M 2% /run /dev/sda1 2.4G 1.5G 743M 68% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sdb1 79G 23G 53G 31% /mnt root@rescue-pro:~#
It's work for me, when I fails before when a execute fdisk without -u parameter. Thanks
Hello everyone,
I unfortunately deleted the ext4fs signature.
How can I solve the problem?
That's three times nothing to add to the documentation and it's still not done (after 3 years). As a result, like @dncwarren , I deleted the old signature too. I have no choice to restore my backup to make sure I haven't lost anything...
Why is this not specified in docs ?