Windows Server 2022 upgrade notes

Upgraded Windows Server 2019 to Server 2022 today. I RDP’ed in and mounted iso and setup from within windows. It downloads some updates and performs some installation steps within windows. Took 10-20 minutes to get to 100% then you have to click a button for it to restart. At that point the RDP session terminates obviously. Plug in monitor and keyboard. The restart takes quite a while with nothing on the screen. Eventually windows logon screen is showed and you set up the country etc.

Evaluation Version doesn’t support in place upgrades
The option to keep files/settings is greyed out when upgrading from Windows Server 2019 Eval to Windows Server 2022 Eval.
The only option available is to keep nothing.
To do in place upgrades while retaining files/settings, you must have a fully licensed Windows Server.

Set Computer Name and DNS suffix

Set timezone

Set IP address
Install Hyper V Manager
Setup vswitch VLAN ID
Set static IP and default gateway on vswitch nic
Default gateway was prefilled/greyed out but going in a second time shows a blank default gateway.

Allow Core Network Diagonistics in Firewall to enable ping echos
Edit rule to specify which subnets to respond to, by default it’s only local subnet

Enable RDP
Allow Remote Connections to this computer

Install BOINC
Exit BOINC
Copy boinc data folder contents to c:\programdata\boinc
Restart BOINC
Do sychronization
Confirm tasks and host list

Nextcloud server running out of space

The 50GB I provisioned to the Nextcloud HyperV VM is filling up fast. There’s less than 9% left available. I grew this from 10GB to 20GB to 50GB. Today we’re growing it to 60GB only. I could grow it even bigger but I don’t expect it to grow much larger much faster as the bulk of the storage is photos and videos from my mobile devices. Plus coming back to expand the hard drive once a few months is good practice and reminder of how to do this in Linux.

Since this is a Ubuntu server, I followed the instructions I found here: https://vander.host/knowledgebase/operating-systems/how-to-resize-an-ubuntu-18-04-lvm-disk/. It says 18.04 but it works on my 20.04 LTS as well.

Before getting into Ubuntu, I started by expanding the VHDX in Hyper V. Actually before this step, I merged the old checkpoints first. (In retrospect I probably should’ve created a new checkpoint at this stage but I have multiple backups to restore from… so YOLO!)

After this, Ubuntu needed a reboot to recognize the new disk size for some reason. I thought I remember the last time I did this I was able to do everything online without unmounting anything or rebooting anything. Need to look this one up.

Edit 5/21/2021:
To rescan disks:
echo ‘1’ > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan

Once fdisk -l showed the new disk size I ran through the rest of the following commands to resize the partition/physical volume/logical volume/filesystem to recognize the new disk space.

Ubuntu Commands

  • echo ‘1’ > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan
  • fdisk -l (note it’s partition 3 by looking at the current Size)
  • parted
    • resizepart, Fix, 3, 100% (type this instead), quit
  • pvresize /dev/sda3
  • lvextend -l +100%FREE /dev/mapper/ubuntu–vg-ubuntu–lv
  • resize2fs /dev/mapper/ubuntu–vg-ubuntu–lv
  • df -h

By default the system will prompt you for size in GB but you can actually type 100% and 100%FREE to use up all of the space without having to calculate down to the decimals or leaving unused space to specify a GB amount.