From: Andy Smith <andy@strugglers.net>
To: Ilia Zykov <mail@service4.ru>
Cc: linux-lvm@lists.linux.dev
Subject: Re: Any way in LVM to deal with 512e vs 4Kn physical devices?
Date: Tue, 16 Jan 2024 20:17:31 +0000 [thread overview]
Message-ID: <ZabkWx401gDBehBZ@mail.bitfolk.com> (raw)
In-Reply-To: <451707ab-ec8e-8f19-6813-445a184fda3a@service4.ru>
Hi,
On Tue, Jan 16, 2024 at 10:30:36PM +0300, Ilia Zykov wrote:
> Sorry, I could be wrong, but I was encountered this problem a long time ago.
> You cannot transfer ext4 from a device with a phys sector 512 bite to a
> device with phys 4k sector device.
I have read several other accounts which agree with this. I will
test just directly putting an ext4 fs on an LV that's backed by 512e
drives and then copying an image of that to an LV that is backed by
4Kn drives, just to see what happens, though.
> In datasheet for you model tells:
> * 512e models can be converted to 4Kn format and
> vice versa.
> I don't understand what is it mean, but maybe you can try convert to 512e if
> possible.
I think it means that using hdparm to set its sector size to 512 is
possible, though that would invalidate all the data currently on
the drive (which is fine in this case).
There would of course also be vendor tools to change the sector
size, but I think hdparm should work if the data sheet says the
procedure is possible.
I'll let you know!
Thanks,
Andy
next prev parent reply other threads:[~2024-01-16 20:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-15 7:30 Any way in LVM to deal with 512e vs 4Kn physical devices? Andy Smith
2024-01-15 21:07 ` Roger Heflin
2024-01-16 18:24 ` Phillip Susi
2024-01-16 20:13 ` Andy Smith
2024-01-17 7:22 ` Andy Smith
2024-01-17 12:13 ` Roger Heflin
2024-01-17 14:10 ` Phillip Susi
2024-01-20 4:45 ` Andy Smith
2024-01-20 18:00 ` Phillip Susi
2024-01-20 20:56 ` Andy Smith
2024-01-24 16:18 ` Phillip Susi
2024-01-24 21:17 ` Roger Heflin
2024-01-25 19:05 ` Phillip Susi
2024-01-17 14:06 ` Phillip Susi
2024-01-16 19:30 ` Ilia Zykov
2024-01-16 20:17 ` Andy Smith [this message]
2024-01-17 10:36 ` Zdenek Kabelac
2024-01-17 11:21 ` Andy Smith
2024-01-17 11:48 ` Zdenek Kabelac
2024-01-17 14:24 ` Phillip Susi
2024-01-17 19:05 ` Ilia Zykov
2024-01-26 1:21 ` Glenn Washburn
2024-01-26 1:35 ` Demi Marie Obenour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZabkWx401gDBehBZ@mail.bitfolk.com \
--to=andy@strugglers.net \
--cc=linux-lvm@lists.linux.dev \
--cc=mail@service4.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).