Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Line Printer paper is strongest at the perforations.


computers / alt.os.linux.ubuntu / Re: sysadmin tip 101: versions matter.

SubjectAuthor
* sysadmin tip 101: versions matter.Jonathan N. Little
`* Re: sysadmin tip 101: versions matter.Mark Bourne
 +- Re: sysadmin tip 101: versions matter.Paul
 +- Re: sysadmin tip 101: versions matter.Jonathan N. Little
 `- Re: sysadmin tip 101: versions matter.Jonathan N. Little

1
sysadmin tip 101: versions matter.

<ucb25b$6ct1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3465&group=alt.os.linux.ubuntu#3465

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lws4...@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: sysadmin tip 101: versions matter.
Date: Fri, 25 Aug 2023 16:15:37 -0400
Organization: LITTLE WORKS STUDIO
Lines: 37
Message-ID: <ucb25b$6ct1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 25 Aug 2023 20:15:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="693310dc671aedc44db05867966fd35d";
logging-data="209825"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f6hkc8vHxloxamYTLerWcDmQfmOi3JZk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.17
Cancel-Lock: sha1:/kqxDUSph6dsTUg7tB4L7nUFkuk=
X-Dan: Yes Dan this is a Winbox
X-Mozilla-News-Host: news://news.eternal-september.org:119
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
 by: Jonathan N. Little - Fri, 25 Aug 2023 20:15 UTC

Situation: Server uses to mirrored drives to save backup data. One drive
was throwing bad sectors. Dreaded 3TB Constellation drives so replaced
with 4TB IronWolf. After transferring 2.2TB data from the one good drive
to the two new drives installed drives in server. Server would only boot
into emergency mode. In emergency mode a manual mount command would
mount the two drives and you can exit to regular login.

Diagnosis: Replacing the new drives triggered fsck upon boot, but
systemd.fsck@dev-disk-by...service failed for each new drive. UUIDs were
correctly updated in fstab. Went and tried manually fsck drives and
e2fsck failed with incompatible version.

Conclusion: (Or the DOH-Moment) That server is still running 18.04 LTS
and I formatted the new drives with a usb drive dock and I am running
23.04! The files are currently accessible and writable so I temporarily
disabled fsck for those two drives. In a live 18.04 session formatted up
a new drive with correct version. Luckily I have a 3rd spare drive to
expedite this. Have another system coping files from old good drive to
this new drive so it can latter be swapped to the server and repeat the
processes for the other drive...Just have to get it done before Sunday
when the backup occurs.

Penalty: Humiliation and time. Just passing on the info and maybe save
someone else of the same mistake.

BTW: have not found what they did to change the format of ext4 from the
different versions OS. Both drives were gpt and same format. One would
think that would not matter...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: sysadmin tip 101: versions matter.

<uccplh$ij8a$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3466&group=alt.os.linux.ubuntu#3466

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nntp.mbo...@spamgourmet.com (Mark Bourne)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: sysadmin tip 101: versions matter.
Date: Sat, 26 Aug 2023 13:02:56 +0100
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <uccplh$ij8a$1@dont-email.me>
References: <ucb25b$6ct1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 26 Aug 2023 12:02:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="42dc8da2cf6e05eff1c67b544886bb20";
logging-data="609546"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nrBTHELwoycahzaVsTsfH"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
SeaMonkey/2.53.17
Cancel-Lock: sha1:gNxjfL87tTiixUU5jNvvXa6n0zY=
In-Reply-To: <ucb25b$6ct1$1@dont-email.me>
 by: Mark Bourne - Sat, 26 Aug 2023 12:02 UTC

Jonathan N. Little wrote:
> Situation: Server uses to mirrored drives to save backup data. One drive
> was throwing bad sectors. Dreaded 3TB Constellation drives so replaced
> with 4TB IronWolf. After transferring 2.2TB data from the one good drive
> to the two new drives installed drives in server. Server would only boot
> into emergency mode. In emergency mode a manual mount command would
> mount the two drives and you can exit to regular login.
>
> Diagnosis: Replacing the new drives triggered fsck upon boot, but
> systemd.fsck@dev-disk-by...service failed for each new drive. UUIDs were
> correctly updated in fstab. Went and tried manually fsck drives and
> e2fsck failed with incompatible version.
>
> Conclusion: (Or the DOH-Moment) That server is still running 18.04 LTS
> and I formatted the new drives with a usb drive dock and I am running
> 23.04! The files are currently accessible and writable so I temporarily
> disabled fsck for those two drives. In a live 18.04 session formatted up
> a new drive with correct version. Luckily I have a 3rd spare drive to
> expedite this. Have another system coping files from old good drive to
> this new drive so it can latter be swapped to the server and repeat the
> processes for the other drive...Just have to get it done before Sunday
> when the backup occurs.
>
> Penalty: Humiliation and time. Just passing on the info and maybe save
> someone else of the same mistake.
>
> BTW: have not found what they did to change the format of ext4 from the
> different versions OS. Both drives were gpt and same format. One would
> think that would not matter...

It is surprising that something that significant would have changed in
the formatting. Perhaps the older fsck is just being cautious, and
refusing to try fixing a partition formatted with a newer version of
ext4, which might use features the older fsck doesn't know about. And
then the rest of the system refuses to mount it because fsck failed.

However, a couple of years ago I did have an issue with a couple of
disks that I'd been using with a USB-SATA adapter, which then couldn't
be read when attached directly to the PC's SATA bus. It turns out that
some USB-SATA adapters misreport the logical block size used by the disk
(seems to be an issue with a commonly used chipset). When I attached a
disk to the USB adapter and formatted it, the adapter reported 4096 byte
logical blocks. So the GPT partition table was placed at block 1, 4096
bytes into the disk, and partition addresses given in 4096 byte blocks.
But when I attached the disk directly to the PC's SATA bus, it reported
512 byte logical blocks. The partition table couldn't be found at block
1 (now 512 bytes into the disk) and, even if could have been found, the
partition addresses would all have been misinterpreted.

Some relevant information I came across while trying to figure this one out:
<https://askubuntu.com/questions/909041/harddrive-on-usb-to-sata-adapter-not-showing-full-size>
<https://bugzilla.redhat.com/show_bug.cgi?id=734015>
<https://www.spinics.net/lists/linux-usb/msg70029.html>

That doesn't seem like the same issue you had, since your problems were
with fsck, so in your case it sounds like the partitions were read
correctly and the filesystem was found.

--
Mark.

Re: sysadmin tip 101: versions matter.

<ucd1f9$jsup$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3467&group=alt.os.linux.ubuntu#3467

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: sysadmin tip 101: versions matter.
Date: Sat, 26 Aug 2023 10:16:08 -0400
Organization: A noiseless patient Spider
Lines: 106
Message-ID: <ucd1f9$jsup$1@dont-email.me>
References: <ucb25b$6ct1$1@dont-email.me> <uccplh$ij8a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 26 Aug 2023 14:16:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0beb5b91b207cae615ad4e69fb97fc3b";
logging-data="652249"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c3zEH8SwH0w7SfeLal1DastKmGeKab2I="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:aRczKWTaLu3GQXmC73RW+9Y/UnU=
Content-Language: en-US
In-Reply-To: <uccplh$ij8a$1@dont-email.me>
 by: Paul - Sat, 26 Aug 2023 14:16 UTC

On 8/26/2023 8:02 AM, Mark Bourne wrote:
> Jonathan N. Little wrote:
>> Situation: Server uses to mirrored drives to save backup data. One drive
>> was throwing bad sectors. Dreaded 3TB Constellation drives so replaced
>> with 4TB IronWolf. After transferring 2.2TB data from the one good drive
>> to the two new drives installed drives in server. Server would only boot
>> into emergency mode. In emergency mode a manual mount command would
>> mount the two drives  and you can exit to regular login.
>>
>> Diagnosis: Replacing the new drives triggered fsck upon boot, but
>> systemd.fsck@dev-disk-by...service failed for each new drive. UUIDs were
>> correctly updated in fstab. Went and tried manually fsck drives and
>> e2fsck failed with incompatible version.
>>
>> Conclusion: (Or the DOH-Moment) That server is still running 18.04 LTS
>> and I formatted the new drives with a usb drive dock and I am running
>> 23.04! The files are currently accessible and writable so I temporarily
>> disabled fsck for those two drives. In a live 18.04 session formatted up
>> a new drive with correct version. Luckily I have a 3rd spare drive to
>> expedite this. Have another system coping files from old good drive to
>> this new drive so it can latter be swapped to the server and repeat the
>> processes for the other drive...Just have to get it done before Sunday
>> when the backup occurs.
>>
>> Penalty: Humiliation and time. Just passing on the info and maybe save
>> someone else of the same mistake.
>>
>> BTW: have not found what they did to change the format of ext4 from the
>> different versions OS. Both drives were gpt and same format. One would
>> think that would not matter...
>
> It is surprising that something that significant would have changed in the formatting.  Perhaps the older fsck is just being cautious, and refusing to try fixing a partition formatted with a newer version of ext4, which might use features the older fsck doesn't know about.  And then the rest of the system refuses to mount it because fsck failed.
>
> However, a couple of years ago I did have an issue with a couple of disks that I'd been using with a USB-SATA adapter, which then couldn't be read when attached directly to the PC's SATA bus.  It turns out that some USB-SATA adapters misreport the logical block size used by the disk (seems to be an issue with a commonly used chipset).  When I attached a disk to the USB adapter and formatted it, the adapter reported 4096 byte logical blocks.  So the GPT partition table was placed at block 1, 4096 bytes into the disk, and partition addresses given in 4096 byte blocks. But when I attached the disk directly to the PC's SATA bus, it reported 512 byte logical blocks.  The partition table couldn't be found at block 1 (now 512 bytes into the disk) and, even if could have been found, the partition addresses would all have been misinterpreted.
>
> Some relevant information I came across while trying to figure this one out:
> <https://askubuntu.com/questions/909041/harddrive-on-usb-to-sata-adapter-not-showing-full-size>
> <https://bugzilla.redhat.com/show_bug.cgi?id=734015>
> <https://www.spinics.net/lists/linux-usb/msg70029.html>
>
> That doesn't seem like the same issue you had, since your problems were with fsck, so in your case it sounds like the partitions were read correctly and the filesystem was found.
>

That's done on purpose, and the product would have
been <cough> popular during a certain epoch (WinXP).
I'm not really sure such a shenanigan is really necessary
on USB, as the addressing there just might be a SCSI CDB
and capable of addressing large objects without a problem.
But I suppose MSDOS partition table support would be worth
something, and that would be the incentive to screw around.

https://superuser.com/questions/1271871/4k-emulation-sata-usb-controllers

There were some RAID controllers with a similar capability.
Maybe an Areca. Instead of a 2TB max drive size, the Areca
could host a 16TB drive/array and the user could use MSDOS partitioning.
At the time they were doing that, maybe GPT didn't exist yet ?
WinXP did not support GPT, so it was likely introduced after
WinXP.

The MSDOS partitioning table had 32 bit fields in it. And that
may have worked out to 2.2TB (making 2TB the largest disk you
would safely use). Various schemes were invented to handle
larger disks, such as Acronis Capacity Manager and a couple others.

The Areca trick existed before Acronis Capacity Manager.
I only accidentally found out about that, while skimming through
the user manual for an Areca (no, I'm not actually rich enough
to afford an Areca card).

This is a kind of feature, where the PCB should have a jumper to
select or de-select such a feature. It should not be totally automated.
Not everyone wants or needs that.

*******

On a slightly different topic...

There are OSes now that support 4Kn drives. I do not recommend
people search out 4Kn drives on purpose. A hyperstorage site may like
such things, but most people don't own enough good software to handle
4Kn drives. If there's a problem, you could be left holding a bag of
useless bits. The OS information here is likely incorrect, because
there was a patch part way through the W10/W11 era, intended for actual
support. Real support may have been later, than any documentation claims.
Earlier OSes may not have had working support (boot from 4Kn drive).

https://en.wikipedia.org/wiki/Advanced_Format

4Kn drives were showing up at retail at one time. I would expect
so many consumers bought those by mistake and returned for a refund,
the vendors figured out they should hide those. Maybe a site that sells
server accessories would list those SKUs. But if your OSes do not support
them, they would be a bad deal. I like to buy hardware when I can, that
every computer in the house can use, instead of just one computer barely
supporting it. I would not consider a 4Kn, even for experiments.

The highest capacity drive I own, I think it's a 512e, as it needs
no pampering. The only problem that drive has, is the holes are drilled
in the wrong place on it. The drive mounting holes are different
at perhaps 8TB or larger. The 6TB drives still have conventional holes.
At the 8TB level, some could have old-holes, some could have new-holes.
I only own one big drive, and I can tell ya, that hole issue is a
fucking disaster :-/ None of my trays attach properly.

Paul

Re: sysadmin tip 101: versions matter.

<ucg9q0$1ac0n$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3468&group=alt.os.linux.ubuntu#3468

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lws4...@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: sysadmin tip 101: versions matter.
Date: Sun, 27 Aug 2023 15:56:46 -0400
Organization: LITTLE WORKS STUDIO
Lines: 22
Message-ID: <ucg9q0$1ac0n$1@dont-email.me>
References: <ucb25b$6ct1$1@dont-email.me> <uccplh$ij8a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 27 Aug 2023 19:56:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2ccef66ae459af476143b4f6506322f4";
logging-data="1388567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G2idwfi2K/ENqKInRL9QG3DFfAgTnQWQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.17
Cancel-Lock: sha1:RqyngfQepVHruqTrywtzChshwwc=
X-Dan: Yes Dan this is a Winbox
In-Reply-To: <uccplh$ij8a$1@dont-email.me>
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
 by: Jonathan N. Little - Sun, 27 Aug 2023 19:56 UTC

Mark Bourne wrote:
>
> However, a couple of years ago I did have an issue with a couple of
> disks that I'd been using with a USB-SATA adapter, which then couldn't
> be read when attached directly to the PC's SATA bus.  It turns out that
> some USB-SATA adapters misreport the logical block size used by the disk
> (seems to be an issue with a commonly used chipset).

It can depend on the size of the drive. I have external drive docks for
coping and moving data on drives. My older dual Orico will handle up to
2TB drives but for larger drives I had to get a newer one. I have some
little USB-SATA dongles, one I use with a little PI server, but these
seem to have the older drive limit. All is dependent in the controller
chip used.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: sysadmin tip 101: versions matter.

<ucga75$1aeg2$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3469&group=alt.os.linux.ubuntu#3469

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lws4...@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: sysadmin tip 101: versions matter.
Date: Sun, 27 Aug 2023 16:03:47 -0400
Organization: LITTLE WORKS STUDIO
Lines: 18
Message-ID: <ucga75$1aeg2$1@dont-email.me>
References: <ucb25b$6ct1$1@dont-email.me> <uccplh$ij8a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 27 Aug 2023 20:03:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2ccef66ae459af476143b4f6506322f4";
logging-data="1391106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WMzKARw47mBFNyDZmIK668W9QMHjimdc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.17
Cancel-Lock: sha1:JYUFrBsEl+31zpUWevukHrdacrk=
In-Reply-To: <uccplh$ij8a$1@dont-email.me>
X-Dan: Yes Dan this is a Winbox
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
 by: Jonathan N. Little - Sun, 27 Aug 2023 20:03 UTC

Mark Bourne wrote:
> That doesn't seem like the same issue you had, since your problems were
> with fsck, so in your case it sounds like the partitions were read
> correctly and the filesystem was found.

Yes, the drives were fully accessible and read|writable by the 18.04
server. Just auto mounting failed because the fschk flag was set and why
I temporarily disabled in fstab. Final note is I reformatted drives with
18.04 and now no issue. Also noted that this server desperately needs to
be updated.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor