yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #79618
[Bug 1839491] Re: Manually performed partitioning changes get reverted on reboot
Sounds like this is indeed an issue in MAAS then. MAAS should turn off
growpart, since we know how big the disks are already and can set up the
right partition size during installation.
** Changed in: maas
Status: Invalid => Triaged
** Changed in: maas
Importance: Undecided => High
** Changed in: maas
Milestone: None => 2.7.0alpha1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1839491
Title:
Manually performed partitioning changes get reverted on reboot
Status in cloud-init:
Incomplete
Status in MAAS:
Triaged
Bug description:
Hello,
I am facing an issue where I need to make changes to the initially
deployed partition layout, but upon making those changes and
rebooting, the partition layout gets reverted.
My env:
MAAS version: 2.6.0 (7802-g59416a869-0ubuntu1~18.04.1)
System vendor: HP
System product: ProLiant DL360 Gen9 (780021-S01)
System version: Unknown
Mainboard product: ProLiant DL360 Gen9
Mainboard firmware version: P89
Mainboard firmware date: 12/27/2015
CPU model: Intel(R) Xeon(R) CPU E5-2690 v3
Deployed (16.04 LTS "Xenial Xerus")
Kernel: xenial (ga-16.04)
Power type: ipmi
Power driver: LAN_2_0 [IPMI 2.0]
Power boot type: EFI boot
Architecture amd64/generic
Minimum Kernel: no minimum kernel
Interfaces: eno1, eno2, noe3, eno4, eno49, eno50. Only eno49 is used.
Storage: sda Physical 1TB, sdb Physical 1TB.
Steps to reproduce:
1. Deploy MAAS with the following partition configuration:
sda-part1 536.9 MB Partition fat32 formatted filesystem mounted at /boot/efi
sda-part2 100.0 GB Partition ext4 formatted filesystem mounted at /
2. Check the partitions on the node:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 512M 0 part /boot/efi
`-sda2 8:2 0 931G 0 part /
sdb 8:16 0 931.5G 0 disk
Here we notice the initial partitioning scheme is not respected. This could be related to the main issue of partitioning changes being reverted, but could also be a separate issue.
3. Boot an ubuntu ISO and go into rescue mode. I used ubuntu-16.04.6
-server-amd64.iso
4. Choose "Do not use a root filesystem" and "Execute a shell in the
installer environment".
4. Run the following commands:
$ e2fsck -f /dev/sda2
$ resize2fs /dev/sda2 150G
$ e2fsck -f /dev/sda2
$ sudo parted /dev/sda
(parted) unit GiB print
(parted) resizepart
Partition number? 2
End? 200GiB
(parted) print
You should see partition 2 resized.
(parted) quit
$ e2fsck -f /dev/sda2
5. Confirm
$ fdisk -l
6. Sync writes
$ sync
7. Reboot the node. Remove ISO image.
8. Let system boot, check partitions again:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 512M 0 part /boot/efi
`-sda2 8:2 0 931G 0 part /
sdb 8:16 0 931.5G 0 disk
We can see see that the changes were reverted.
If I remove cloud-init, I can successfully re-partition and reboot,
without the changes being reverted.
Attached logs before and after repartition.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1839491/+subscriptions