Training in Quarantine – Day 328 & Football

Missed logging from yesterday. I did my walk later than normal, as I had to pick up my dad from hospital after an operation.

England were playing in Wembley against Germany last night, though I am not much of a football fan and don’t really follow matches.

I didn’t even think England would beat Germany, based on their history.

On my way back from my walk, I came across a group of teenagers with England shirts on. They saw me and started singing “It’s coming home” to me. I just looked blank and confused (being a chinese person, I guess they thought I couldn’t understand them). One of them put their fist out for a fist bump. Now *that* I knew and met the bump before heading off.

England won 2-0 against Germany but you never would have guessed. Normally, when England score a goal or win a match, you hear massive cheering from the neighbours and then celebrations in the streets — people driving their cars with the windows down screaming “En-ger-land!”

None of that this time.

Resizing LVM Volumes

Just a quick note to remind myself outhow to resize logical and physical LVM volumes

  • Activate the Volume group:

lvm vgchange -ay

  • Resize the logical volume (sizing down by 100G in this example)

lvm lvresize --size -100G /dev/vg/root -r --verbose

  • Resize the physical volume:

pvresize --setphysicalvolumesize {size of pv minus {size toreduce}}G /dev/path/to/pv

  • If you get an error about “later extents”, it’s due to the swap being added to the partition (which does not get moved automatically), so you will need to move the data

lvm pvs -v --segments /dev/sda5 to get position ids:

/dev/sda5 ubuntu lvm2 a-- 698.04g 150g 0 xxx root 0 linear /dev/sda:0-xxx
/dev/sda5 ubuntu lvm2 a-- 698.04g 150g xxx nnn 0 free                          
/dev/sda5 ubuntu lvm2 a-- 698.04g 150g yyy zzz swap 0 linear /dev/sda5:yyy-zzz
  • Move the data:

lvm pvmove --alloc anywhere /dev/sda5:yyy-zzz

  • Check the positioning again

pvs -v --segments /dev/sda5

/dev/sda5 ubuntu lvm2 a-- 698.04g 150g 0 xxx root 0 linear /dev/sda:0-xxx
/dev/sda5 ubuntu lvm2 a-- 698.04g 150g xxx nnn swap 0 linear /dev/sda5:xxx-yyy(-1)
/dev/sda5 ubuntu lvm2 a-- 698.04g 150g yyy zzz 0 free
  • Then retry the resize

pvresize --setphysicalvolumesize {size of pv minus {size toreduce}}G /dev/path/to/pv

Training in Quarantine – Day 324

I didn’t do my walk yesterday since I was in the office again this week. I took the Victoria Line back from the office and two people seemingly had passed out — one at Victoria, one at Oxford Circus. The heat was almost unbearable.

Oxford Circus is an oven even on normal days. At near 30degC heat it is more like a furnace.

There was immense relief in the evening when it started to rain, but that relief was soon turned in comfortable, sticky, sweaty feelings as the water then evaporated and made the air really humid, making it almost impossible to sleep. I didn’t get any decent sleep till around 2am and FitBit noticed that with my sleep pattern.

Fortunately, it seems like there’s rain forecast for the rest of the week at least.

Training in Quarantine – Day 323

Have been slacking off logging my exercise again, but there’s a reason.

It’s TOO. DAMN. HOT.

Like, crazy hot. And when the sun shines into your bedroom where you’re trying to work so you have to have the curtains closed while you work, and the fan only provides some minor relief, it doesn’t help

Meanwhile, today, my walk was comfortable — even though it was hot, the breeze helped matters a bit and made it not feel too bad.

Training in Quarantine – Day 322

No walk today as I was back in the office for one day this week. With the 25degC heat, it was not a pleasant journey. I tried to offset it by using only the airconditioned trains route (Thameslink, Great Northern, District/Circle) but that didn’t make it much more comfortable.

Still topped my step count for the day, as I normally do for the commute.

%d bloggers like this: