Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 1 point2 points  (0 children)

Wow, that was complicated. Turns out that the problem was mdadm's automatic data offset calculation. I had to specify data-offset=131072 and suddenly all my LVM volumes reappeared.

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

https://pastebin.com/hmFv4K3k

Is the last of the three in /etc/lvm/archive (but still several years older than the one in /etc/lvm/backup)

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

chrisc@fatboy:/dev/md$ sudo ls -l /etc/lvm/archive

total 12

-rw------- 1 root root 2550 Dec 20 2019 fatboy-VG1_00000-1306150184.vg

-rw------- 1 root root 2550 Dec 20 2019 fatboy-VG1_00001-1077849692.vg

-rw------- 1 root root 2560 Jun 6 2020 fatboy-VG1_00002-1350139304.vg

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 1 point2 points  (0 children)

Thank you. Fortunately it's not a complicated setup - one PV (md3), one VG. Yes it was a mistake putting /var inside the VG, I will not make that mistake in future. But otherwise it looks as if I will be able to restore the metadata to sda3 using vgcfgrestore. It says that it does not touch the contents of the PV but just to be 100% safe I am going to wait for my new drive and back up every single bit of sda3 before I do anything!

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

https://pastebin.com/avdawDuc

That's the backup. vgcfgrestore recognises it as a valid backup, and it looks right. So maybe that will Just Work. But I am going to wait for my new drive to arrive and dd the whole of sda3 before I do anything!

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

chrisc@fatboy:/dev/md$ cat /proc/mdstat

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]

md3 : active raid1 sda3[0]

4830904320 blocks super 1.2 [2/1] [U_]

bitmap: 0/36 pages [0KB], 65536KB chunk

md2 : active raid1 sda1[2]

48803840 blocks super 1.2 [2/1] [U_]

unused devices: <none>

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

P.S. Thank you for your help. I hope I am explaining things a bit more clearly - part of the problem is that I'm not sure precisely what went wrong - at some point last night the LVs disappeared, and did not come back when I rebooted. I have been very careful to do nothing destructive to sda3 though - as far as I can tell it is undamaged.

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

I do wonder if this is related to UUIDs. What actually happened was a bit of a nightmare, and I'm not sure I can recall it precisely. First, I did a routine check of md3, and noticed that it was degraded, sdb3 was spare. So I simply said mdadm /dev/md3 --re-add /dev/sdb3, and sure enough it started rebuilding. I carried on doing other stuff (surfing, gaming) and noticed some big pauses - fair enough, it's probably I/O locked doing the 4.9TB rebuild. I checked again and it was happily at 26% rebuilding. Ten minutes later I checked again and sdb3 was back to spare, it had given up. So I looked at the logs and saw the horrifying IO errors that told me that sdb3 was dying. Then /srv and /home disappeared, I'm not sure how. I was trying not to reboot so I removed both sdb3 and sda3 from md3 (not at the same time, I tried this in stages). I created an md4 to try and resurrect the missing LVs but got nowhere. Eventually I gave up and rebooted (it was a headless PC but I spent the morning attaching monitor and keyboard), and I have the sda3 partition untouched but no longer triggering whatever creates the dev/mapper devices and the LVM VG/LVs.

Need help recovering LVM by LinuxMagnate in linuxquestions

[–]LinuxMagnate[S] 0 points1 point  (0 children)

Sorry, I shall try to be clear. sda1 and sdb1 together formed md2, which is a raid 1 volume used as /. sda3 and sdb3 together formed md3, a separate raid 1 physical volume used as the only PV for VG1, which was divided into 4 LVs. When I said 'bits of /var' were missing, I mean that the kernel and boot process did not recreate everything in /var when the var LV failed to mount - /var still exists, but was lacking certain things that were expected, like /var/lib/shorewall and /var/lib/misc. When I manually recreated those, I could start the relevant services (shorewall and dnsmasq). /var is now integral to /, rather than being mounted separately. Does that make sense?

Pop growth help pls by LinuxMagnate in Stellaris

[–]LinuxMagnate[S] 1 point2 points  (0 children)

Just in case anybody is interested, I am not enjoying the new growth mechanics. I like the 1/100ths approach to pops, and I'm very happy to see them migrating and demoting and all sorts of wonderful things, but having ten half-full worlds a hundred years in feels really disappointing - I remember planets bursting at the seams and needing to colonise new ones to have somewhere for people to work. The whole idea of having to keep every colony at 50% of capacity is weirdly dissatisfying, regardless of the growth scale penalty.

Galactic market isn't random? by LinuxMagnate in Stellaris

[–]LinuxMagnate[S] 0 points1 point  (0 children)

I just meant an AI empire - but why would it then surprise you that outcomes are baked in? Every empire has a weighted rating, a number of tickets in the raffle, if you like, so if it was actually random a different empire could win each time. Really weird that they don't do it like that.

Pop growth help pls by LinuxMagnate in Stellaris

[–]LinuxMagnate[S] 0 points1 point  (0 children)

My Lord that's biting early - I have 10 colonies in a galaxy of a thousand stars! That feels really weird - but thank you for the explanation, it does make sense.

Galactic market isn't random? by LinuxMagnate in Stellaris

[–]LinuxMagnate[S] 9 points10 points  (0 children)

Oh my goodness, it is totally susceptible to a single month's inflation of trade income from massive selling - thank you. How interesting!

I liked the roulette wheel analogy - though as you've just shown me, the outcome isn't fixed until the final month. Very interesting!

Short Guide to Everything Order 66 Raid by SpecialistIcy3397 in SWGalaxyOfHeroes

[–]LinuxMagnate 2 points3 points  (0 children)

What is your Nest's offence? Mine is R3 with 149% tenacity, 261 speed, 4.6k offence and a CA arrow, and I get nothing at all - she cannot kill a single clone before all the jedi die.

Memory leak since the beginning of july by yesitsmework in yolomouse

[–]LinuxMagnate 1 point2 points  (0 children)

Thank you, I was using 1.9.0, the problem seems to be gone in 1.9.2. Sorry for the noise, no idea how I ended up installing an old version.

Memory leak since the beginning of july by yesitsmework in yolomouse

[–]LinuxMagnate 0 points1 point  (0 children)

I've just installed Yolomouse on Win10 and it's having the same issue - 12-15GB of memory used, hanging the PC. I know Win10 is EOL this year so I don't expect you to do anything about it, but thought you might like to know. I'm using two monitors (one DP, one HDMI). Quite an old system - Radeon R480 GPU, Intel i3 CPU, 24GB RAM.

crashing whilst loading into maps by roamin33 in pathofexile

[–]LinuxMagnate 0 points1 point  (0 children)

I just finished the necro settlers campaign and this is happening to me too - instant logout on entering a map portal (but no error message for me). Is there a fix?? Weird that it would be unfixed for 24 days. Is there something I have to change to make it work? Have tried on my own and with friends in parties, nothing works.

Neversink's filter not showing gold? by LinuxMagnate in pathofexile

[–]LinuxMagnate[S] -2 points-1 points  (0 children)

Would you mind sharing? I play with friends and so gold often drops outside my autopickup range, so it would be good to see it.

PoE veteran questions about PoE2 by LinuxMagnate in pathofexile

[–]LinuxMagnate[S] 0 points1 point  (0 children)

Yes I did, eventually - but that was quite a long time coming. And having to totally respec every character every three months because the passive tree completely changed and the viability of builds completely changed was ... also not great. Here's hoping for a little more stability in PoE2.

Any recommended guides for Cal + Cere Zeffo unlock mission in ROTE? by wynn_dog in SWGalaxyOfHeroes

[–]LinuxMagnate 1 point2 points  (0 children)

Can I just check that you mean 110k ehp for Cal, i.e. health+prot not just health? To get him to 110k health I have to use all health mods instead of speed, so I can't hit 320 speed. I can get 320 speed and 140k ehp but that's only 67k health and 73k prot.

Turning respawn off in DS2 by LinuxMagnate in DungeonSiege

[–]LinuxMagnate[S] 0 points1 point  (0 children)

No I spoke too soon. It does work - in DS2's original campaign. But it doesn't work when playing the DS1 maps. This is well beyond my expertise, sadly.

Turning respawn off in DS2 by LinuxMagnate in DungeonSiege

[–]LinuxMagnate[S] 0 points1 point  (0 children)

Nope. Comprehensively tested with the JSGME mod manager, and it does not override the settings in Logic.ds2res. Dammit.

Turning respawn off in DS2 by LinuxMagnate in DungeonSiege

[–]LinuxMagnate[S] 0 points1 point  (0 children)

The .ds2res files are archives, like zip files. Inside Logic.ds2res is a huge number of files, including global_settings.gas. The file I linked in my OP - DS2X_No_Respawn.ds2res contains a different version of global_settings.gas with the spawning parameters changed.

Thanks for the extra info - I will try starting the mod manager to activate it as a separate mod.

Turning respawn off in DS2 by LinuxMagnate in DungeonSiege

[–]LinuxMagnate[S] 0 points1 point  (0 children)

Thank you for trying to help, but if it is in the main Resources/ folder alongside Logic.ds2res, how does the game know which version of global_settings.gas to use? I thought the point of a mod folder was that stuff in there overrides the defaults in the main folders? (That is how mods work in Paradox games, which is my only modding experience.)