Categories
Uncategorized

Why i need a failover cluster and a storage cluster

I tried for many years with a storage server and a compute server. I never got it working good. The problem was when i was doing an update to the storage server or wanted to replace some part of it. I had first to stop all services that used the storage and then fix the storage server. If the replacement of some part did not go well the services could be down for a long time. At worst it could happen that i had to give up for the day and continue the next day. The services could be down for many hours.

Now it is not so important that every server is reliable. I can move workloads to another server in the cluster and start working on the server that has some error.

It is now much less downtime when i am doing updates. I can move a VM to another server when restarting a node. The VM only stops for a few seconds when doing a live migration.

I have one Windows fail-over cluster and one Linux Ceph cluster. I now know that having reliable storage is very important. Without that nothing is going to be reliable.

I am cheating on the fencing. For me the fail over thing is not so important. It is enough for me to be able to move workloads manually. The services i run on the Linux cluster dont have any fail over. I tried to use corosync and pacemaker, but it was difficult and i dont need it.

Sooner or later i believe i have to move everything the Linux cluster. Looks like Microsoft have stopped development on Hyper-V and Windows server. They want everybody to switch to Azure. They now have something called Azure Stack HCI. It is really nice of Microsoft to make it possible to install and run Windows server datacenter without activation. It is illegal but i dont think they care for my homelab.

This story will be updated.

Categories
Uncategorized

I have read some documents and watched some videos about Barings bank collapse

Nick Leeson is an interesting guy. In the videos they show some parts of an interview Nick did. Nick did not look worried about the money he wasted. He thought it was the managers fault the bank failed because they were idiots to not discover what he did.

Was Nick Leeson was doing high risk trades and hiding his losses. Managed the office in Singapore. He told the office in London that he was making profits. Nick was not a good trader. He had to hide his losses in a 88888 account.

It is strange that they did not discover what he was doing. They were close many times. There were people traveling to the office in Singapore to check what he was doing. Even auditors did not discover his 88888 account.

After some losses Nick had to get money from London. They sent him money nearly everyday. They believed it was short term loans to customers. The London office started to wonder why he needed so much money and who were the customers.

When asked after the collapse most people at the London office said that it was not their job to check where the money went. Some said only the Singapore office had the figures so it was impossible the check anything. Some said they believe everything was OK after talking to Nick.

Nicks losses was not so bad from 1993 to the end of 1994. The bank could have survived that. In the beginning of 1995 it started to go downhill fast. Nick had made a mistake and not hidden a bad trade. There was a lot of talking about that at Barings in the beginning 1995. Nick convinced many that it was only an error and it will be corrected. Some company wanted £150M from Barings. Nick used papers and scissors to make a document that looked like he got the money back. In the upper corner there was a text that said “Nick and Lisa”. He sent it from his home to the office. Those who looked at it thought it was real.

In the beginning of 1995 Nick started to do big high risk trades. On 17 January there was a earthquake in Kobe, Japan. Nicks trades started to go bad. He tried to buy lots of futures to get the market to go up. The market continued to go do down. On the 23 of February Nick left the office and never came back. There were rumours about Barings having big positions on OSE. The managers in London were not worried there should be positions on SIMEX to compensate.

Best document to read.

Categories
Uncategorized

How many shitheads are there on the internet

Reddit says it’s banning more people than ever in big transparency push

They show up everywhere. What is wrong with them. The revenge porn guys look like loser.

https://tech.slashdot.org/story/23/03/31/1739246/reddit-says-its-banning-more-people-than-ever-in-big-transparency-push

Categories
Uncategorized

I never believed drinking alcohol could be good

Drinking moderate amounts of alcohol every day does not – as once thought – protect against death from heart disease, nor does it contribute to a longer life, according to a sweeping new analysis of alcohol research.

https://www.spokesman.com/stories/2023/mar/31/no-moderate-drinking-isnt-good-for-your-health/

I always doubted the reports about that little alcohol could be good. To me it looked like that people wished too much that it was not dangerous and wanted hear that it could even be good. Research should not depend on what people want to believe, but it looks like it sometimes happens.

Categories
Uncategorized

Few are going to stop eating meat to stop climate change

Few wants to talk about meat production and climate change. There are coming gases out from cows both in the front and the rear.

There are just two actions needed to prevent catastrophic climate breakdown: leave fossil fuels in the ground and stop farming animals. But, thanks to the power of the two industries, both aims are officially unmentionable.

Guardian

Those industries are powerful because people really want their products. People want to stop climate change, but only if they can keep their cars and eating meat. The cars can be fixed, but i doubt that meat production can cut down on greenhouse gasses. Meat eating is going up because more people in the world can afford it.

Not even Norway will stop getting fossil fuels up from the ground.

Livestock is mentioned in only three agreements, and the only action each of them proposes is “management”. Nowhere is there a word about reduction.

Guardian

No politician wants to tell people to cut down on meat eating. People in shithole countries wants to live like people in the western world.

https://www.theguardian.com/commentisfree/2022/nov/09/leaders-cop27-livestock-farming-carbon-budget-governments

Categories
Network Uncategorized

IP address conflict can create lots of problems in a Windows domain

Lately i had problems logging in to some computers in my Windows domain. Error messages about computer not having account in the domain. When clicking on some computer in Explorer that path is not available. I noticed that one domain controller had failed to sync for a month. When i turned off that domain controller it got better. I decided to reinstall that DC. I could make it into domain controller. Server manager hanged on configuring AD DS service. In DCPROMO.LOG i saw

11/13/2022 02:04:27 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.

Domain controller:
N2820.myaddomain.org

Additional Data

Error value:
1722 The RPC server is unavailable.

I did a search with Google. The reasons i found for that error Message is that some services are not running or DNS error. All services were running. After looking at DNS records for a long time i saw that they were there. 🤔I tried using dcdiag. It complained about DNS records missing. I tested with nslookup and dig. All records from netlogon.dns were available. That should be enough for promoting a computer to domain controller. I could not get the DNS server on my DC to listen to its IPv6 address. I gave up on that. I looked at the event logs on the DC to see if i could find some error message telling me why i could not promo another computer to a DC. I found an error saying that the was a IP address conflict for the IPv6 address. The error message was nice enough to tell me the MAC address for the other computer with the same address. When creating a Linux container a month ago i had given it the same IPv6 address as my domain controller. The DC refused then to use the address. That is why the DNS server could not listen to that address. I gave the container another IPv6 address. Restarted the DC. One computer that was still trying to be a DC succeeded. When i tried to promote another computer it also succeeded. 😀I know that an IP address conflict is bad. I am not surprised it created problems for the domain. The DNS and RPC requests went to the Linux container. It could not do anything. Windows then thought there was something wrong with the RPC server.

Categories
Tech Uncategorized

SQL server 2016 did not start after upgrade to Windows 11

It looked bad for a while. I have tried to upgrade to Windows 11 many times. It was always something that was not ready for Windows 11. The upgrade software did not tell me what is was. I suspect it was the LSI 9211 SAS card. Yesterday there was a new message about that Windows 11 22H2 was ready for me. This time there was nothing that prevented an upgrade. After the upgrade i started to test if everything was working. The storage spaces pool was there. That means the LSI card was working. The cluster manager was working. I could not login to the Veeam backup software. After a while i saw that the SQL server database was not started. I tried to start it but it could not start. I looked in the ERROR file. This looks bad. SQL server is crashing at startup.

2022-11-05 17:12:29.55 spid5s      There have been 256 misaligned log IOs which required falling back to synchronous IO.  The current IO is on file C:\Program Files\Microsoft SQL Server\MSSQL13.VEEAMSQL2016\MSSQL\DATA\master.mdf.
2022-11-05 17:12:29.55 spid5s      11/05/22 17:12:29 Stack Overflow Dump not possible - Exception c00000fd EXCEPTION_STACK_OVERFLOW at 0x00007FFD41D6714A
2022-11-05 17:12:29.55 spid5s      SqlDumpExceptionHandler: Address=0x00007FFD41D6714A Exception Code = c00000fd
2022-11-05 17:12:29.55 spid5s      Rax=000000006ca12248 Rbx=0000000000000001 Rcx=000000007e6b4040 Rdx=0000000000000001
2022-11-05 17:12:29.55 spid5s      Rsi=0000000000000993 Rdi=000000007e6b4040 Rip=0000000041d6714a Rsp=000000006ca11f30
2022-11-05 17:12:29.55 spid5s      Rbp=000000006ca12030 EFlags=0000000000010206
2022-11-05 17:12:29.55 spid5s      cs=0000000000000033 ss=000000000000002b ds=000000000000002b
es=000000000000002b fs=0000000000000053 gs=000000000000002b
2022-11-05 17:12:29.55 spid5s      1: Frame 000000B86CA12030 Return Address 00007FFD41D6714A

It has something to do with block size on the volume the database file is stored. SQL server must have block size 512B or 4KB. https://learn.microsoft.com/en-us/troubleshoot/sql/admin/troubleshoot-os-4kb-disk-sector-size

If i run the command “fsutil fsinfo sectorinfo c:” i get.

PS C:\Users\Kalle> fsutil fsinfo sectorinfo c:
LogicalBytesPerSector :                                 512
PhysicalBytesPerSectorForAtomicity :                    4096
PhysicalBytesPerSectorForPerformance :                  16384
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment :                                      Aligned (0x000)
Partition alignment on device :                         Aligned (0x000)
No Seek Penalty
Trim Supported
Not DAX capable
Not Thinly-Provisioned

SQL server dont like the PhysicalBytesPerSectorForPerformance : 16384 part. Luckily there is a trace flag for SQL server to make it always use 4KB. It is trace flag 1800. If you add -t1800 to the sql server command line it will start.

Categories
Uncategorized

I wonder what China did with the plastic waste they got before

After peaking in 2014 at 10 percent, the trend has been decreasing, especially since China stopped accepting the West’s plastic waste in 2018.

Did they burn it or just put it somewhere. 🤔

https://news.slashdot.org/story/22/10/24/213208/plastic-recycling-a-failed-concept-study-says

Categories
Uncategorized

Lxd is much better than Podman or Docker

I wanted to use Linux containers. I read about Docker and Podman. I believed that Podman was better. I few days ago i discovered lxd. It is more like virtual machines. I like that. Lxd have a cluster function. All nodes remember the settings. I can add network interfaces and volumes after the container is created. It does not loose state.

Categories
Uncategorized

Some Pfizer contract