[00:00] the superblock is placed at drive start plus 4k https://raid.wiki.kernel.org/index.php/RAID_superblock_formats#The_version-1_superblock_format_on-disk_layout [00:00] RoyK, rule out that something funky on that drive? [00:00] I doubt it's a drive failure [00:00] so dd like the first 5k then? [00:00] if so, it's the weirdest I've seen so far [00:00] 1M? [00:01] just drop a bunch of zeros there - it doesn't matter [00:02] RoyK, ha well ran DD then tried to zero the superblock and says "unrecognized md component device" guess superblock gone [00:04] mdadm: /dev/sdc appears to be part of a raid array: [00:04] level=raid0 devices=0 ctime=Wed Dec 31 17:00:00 1969 [00:04] now thats interesting... thats from like 5 years ago.. that raid0 [00:05] hows it still picking that up, i just ran dd bs=1M count=10k [00:06] fretegi: ok, put a new raid on it, some crap, and run mdadm --zero-superblock. v0.9, which might be what you had back then, is at the end of the drive [00:07] see the article I linked to above for superblock format descriptions [00:07] yea i was reading [00:08] fretegi: you'll need to stop the raid before removing the superblock, though, but that should be rather obvious [00:09] yea but wont let me stop md1... [00:09] weird [00:10] anything in vgs/lvs/pvs? [00:10] https://dpaste.org/1vKo [00:10] all i did was create md1, it fired right up, never added any fs or anything to it [00:10] check lvm anyway [00:11] I hate it when that happens, when automatic somethings takes over [00:12] whoa.... [00:12] some old fun showed up? ;) [00:13] so my VG for my sdb raid (md0) is showing active on md1... [00:13] and md1 is sdc which has nothing [00:13] erm… [00:13] can you pastebin that shite? [00:14] https://dpaste.org/wf1t [00:14] https://dpaste.org/H1iO [00:15] try mdadm --examine for sd[bc] [00:16] if i vgremove servervg, does that perma delete it, or just effectively unmount it? [00:16] is that the same name you have for the new vg? [00:17] https://dpaste.org/UhPy [00:17] sdb & sdc are part of different array UUID's [00:17] no thats the thing... thats the OLD vg for md0 [00:18] i didnt run any lvm commands on this new md1, just built the damn thing and thats it lol [00:19] i dont show a lvol running tho [00:19] wait yea i do, just not mounted... but avail [00:20] well, if it doesn't contain any actual data, just remove it. But I don't know any way to undo that, so keep a backup [00:20] how do i disassociate servervg with md1.... not sure how it was associated anyway [00:20] iirc that "a" is "active" if you mean as in lvchange +a y [00:20] well i can do that.. my concern is... since servervg contains the lvol that is associated with md0... if i remove it here, do i remove it there? [00:21] pvdisplay -v should show the uuid [00:23] RoyK, actually i got the vg stopped... had to stop lvol first whoops [00:23] md1 stopped now too [00:24] and superblock zero' [00:24] zero'd [00:24] if you don't know the correct uuid or you don't know which drive is which (linux can shuffle around disk names from time to time), write down the UUIDs in use now and whatever's linked to in /dev/disk/by-id/ to that to get the full path [00:24] were good now [00:24] superblock zero'd out [00:24] if not, well, I hope you have a good backup :) [00:25] oh i do [00:25] as of this am [00:25] so what form here? [00:25] any active raids now? [00:25] nope [00:25] well, md0 can be restarted [00:25] can you assemble the original? [00:25] yup [00:25] i can do that, just has to be manually [00:26] doesn't matter [00:26] md0 fired up with just one drive [00:27] sdb? [00:27] did lvm find it? does the fs mount (try read-only if you're nervous) [00:28] i had to manually mount it all but yes, vg's & lvol's all properly associated with md0 and mounted to the proper directy and data appears to be intact [00:28] good [00:29] so what of fixing md0 ya think? [00:29] then just create a new r0 on the other drive (sdc?) and stop the raid, then --zero-superblock that drive - it may remove the v(something old) superblock. you may have to specify superblock version - never done that with superblock removal. [00:29] build new array like i was starting to do, rsync stuff over and ditch md0? [00:30] did that already [00:30] stopped md1 and zero's sdc [00:31] yea wont let me assemble md1 now as superblock gone [00:31] so back to a blank drive... [00:31] try --assemble --force [00:31] just for kicks [00:31] md1? [00:31] mhm [00:31] assembly abored [00:31] abortd [00:32] good [00:32] with both --run and --force [00:32] fine [00:32] md1 commented out of mdadm.conf too [00:32] then, theoretically, it should work fine with just adding sdc to the array [00:33] just don't put a bloody partition table on there afterwards [00:33] do i need to someone let mdadm know that the prior 2nd disk in md0 is toast? [00:33] somehow* [00:33] still thinks its supposed to have 2, just running on 1 [00:33] no, it won't find a superblock, so it'll treat it as a new one [00:34] alright... adding her up here we go [00:34] it should start resync by itself [00:34] back to recovering [00:34] good [00:34] time #6 [00:34] lol [00:35] ok in an other 2.5 hours... ill re updated initramfs and mdadm.conf and see if good [00:35] the other way around [00:35] right [00:35] but it'll probably be the same data [00:35] yea should be [00:35] array UUID same [00:36] the uuid doesn't change with a disk replacement [00:36] sure giving these drives a work out.. [00:36] shouldn't hurt [00:36] what sort of drives are these, btw? [00:37] sata desktop drives lol [00:37] model? [00:37] good ones... but still.. not enterprise stuff... just seagate desktop stuff [00:37] any support for SCTERC? ;) [00:38] smartctl -l scterc /dev/sdX [00:38] seagate 2 tb soemthing or other [00:38] not supported [00:38] uh oh... heres something funky.... [00:38] bummer [00:39] can you pastebin the full smartctl -a for those two drives? [00:39] https://dpaste.org/enqn [00:39] ran fdisk -l and saw that..... [00:39] remember we DD'd it and --zero-superblock'd it as well [00:39] did not run parted at all after the fact [00:40] let's just hope the resync will overwrite that [00:40] found the fix! actually makes a lot of sense now [00:41] fixed in c9fdcf202f19fc2acdcb1ee0522ff5d61bf8c906, which is part of this patchset: https://patchwork.kernel.org/cover/10865751/ [00:41] fretegi: https://askubuntu.com/questions/211477/how-to-remove-gpt-from-hdd [00:41] RoyK, hate to rsyng again lol [00:41] RoyK, ha was just reading that very article [00:41] hehe [00:42] RoyK, wonder if i should just rmeove this disk [00:42] from md0, zap it and then re-enter [00:42] just stop it, remove GPT and start over [00:42] mdadm --fail, mdadm --remove etc [00:43] RoyK, have to stop md0 first? [00:43] still telling me sdc not an md device.. [00:43] what does mdstat say now? [00:43] still recovering [00:44] wont let me fail or remove the drive [00:44] mdadm /dev/md0 --fail /dev/sdc [00:44] typo my part.. sorry [00:49] damn.. gpt damaged... wont let me zap it [00:49] guess can make new one and zap that [00:49] may work [00:51] doneski [00:51] ok re-adding to md0... which me luck [00:51] wish [00:52] RoyK, well... added just fine.. back to rebuilding... no more warnings looking at fdisk [00:52] good [00:53] guess we wait 2.5 hours for the thing to build and cross our fingers [00:54] ok gonna go cook some supper. appreciate you sticking around to help buddy [00:54] well, talk to you tomorrow - it's late here [00:55] sounds good! thanks again pal, have a great evening [01:14] sarnold: filed a bug report! https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1895487 [01:14] Launchpad bug 1895487 in qemu (Ubuntu) "'qemu-img convert' performance regression when target is a LVM volume" [Undecided,New] === fretegi is now known as fretegi_away === paride|off is now known as paride === Wryhder is now known as Lucas_Gray [13:20] When I start up a VM with ubuntu server 12.04 LTS for some reason it does not automatically ask DHCP server for an IP Address. Instead it keeps booting up with some old IP. When I run dhclient -r enp0s3 ; dhclient enp0s3; and now it gets the right IP address from DHCP and it keeps it .... until next reboot. At which it starts up with the old again. How to fix? [13:21] !12.04 [13:21] Ubuntu 12.04 LTS (Precise Pangolin) was the sixteenth release of Ubuntu. !End-of-life was April 28th 2017. See https://lists.ubuntu.com/archives/ubuntu-security-announce/2017-April/003833.html for more information [13:21] 20.04, sorry! :) [13:22] tomreyn, typo [13:22] oh, much better :) === fretegi_away is now known as fretegi [13:23] what is it using for network management? netplan? with which renderer? [13:23] tomreyn, I have no idea. Whatever is default. Grepping for NIC name in /etc seems to indicate netplan [13:24] so you don't know how the network is configured, but expect dhcp to work, hmmm [13:25] tomreyn, yes, I would expect dhcp to work if nothing else is configured. [13:25] On a default install [13:25] so it was a fresh 20.04 installation? [13:25] Correct [13:26] all updates installed? [13:26] Yes [13:27] it must be persisting this ip address over reboots somehow, or be receiving it from the dhcp server on boot. your logs should tell which of these applies [13:27] Which logs to check? [13:27] so, Ubuntu 18.04. MySql version 5.7.30. It seems to be hung on "/bin/bash /var/lib/dpkg/info/mysql-server-5.7.postinst configure 5.7.30-0ubuntu0.18.04.1" It LOOKS like its recreating the index. This is a 64GB database and reindexing will take a long time, I assume killing this will have very bad consiquesnces ? [13:27] journalctl, i'm not sure what to filter for. [13:28] These are the mysql process running: https://pastebin.com/Q4JvUt4w [13:29] !info mysql-server bionic [13:29] Ussat: I suggest you take a look at the postinst before you decide to kill that process. I don't know myself how bad (or if at all) it would be [13:29] mysql-server (source: mysql-5.7): MySQL database server (metapackage depending on the latest version). In component main, is optional. Version 5.7.31-0ubuntu0.18.04.1 (bionic), package size 9 kB, installed size 108 kB [13:37] I have a VM that I use for testing/dev purposes locally only. I would like it to log me in automatically in the console upon bootup. How do I do this? [13:58] just use mariadb instead [13:58] mysql is dead [13:59] otisolsen70: probably easier to setup SSH keys [13:59] sdeziel, yes, but I am asking about physical console access to the TTY [14:00] otisolsen70: IMHO, using the console is not a nice way to dev/test but if you really want to, that's probably doable but I don't know how, sorry [14:03] https://askubuntu.com/questions/819117/how-can-i-get-autologin-at-startup-working-on-ubuntu-server-16-04-1 [14:42] RoyK: if mysql is dead, why is it in main and mariadb in universe? also, would you use the latter or vendor pkgs? [14:44] jamespage: coreycb: I was wondering the same for your openstack deployments. would you support switching devstack on focal to mariadb, too? [14:45] frickler: we're switched from percona-xtradb-cluster to mysql-8 innodb cluster as the default MySQL platform for OpenStack @ Focal [14:45] using mysql-router for resilence [14:47] jamespage: oh, o.k., I seemed to remember something about mariadb, but then I got that misplaced somehow. so I guess we'll keep the default job on mysql [14:47] yp [14:49] jamespage: but while I have you here, did you see my ping last week about the glibc vs. ovs bug? [14:50] https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1839592 [14:50] Launchpad bug 1839592 in glibc (Ubuntu) "Open vSwitch (Version 2.9.2) goes into deadlocked state" [High,Confirmed] [14:51] frickler: ah yes - I need to talk to xnox about that one on how best to proceed with a fix - backporting a whole new version is not likely to happen [14:54] jamespage: if I can help in identifying/verifying a fix, feel free to ping me. it really doesn't feel good to still run with a version from disco in prod [14:54] I agree === Guest49155 is now known as catalase [18:29] fridtjof[m]: excellent work :D [20:05] icey: I've uploaded dnspython 2.0.0+really1.16.0-2ubuntu1 === fretegi is now known as fretegi_away