Re: Mixing HDD and SSD in lvm

2024-02-11 Thread Andy Smith
Hi, On Sun, Feb 11, 2024 at 11:00:07AM +0100, Kamil Jońca wrote: > ID# ATTRIBUTE_NAME FLAGSVALUE WORST THRESH FAIL RAW_VALUE > 246 Total_LBAs_Written -O--CK 100 100 000-14380174325 > [...] > --8<---cut here---end--->8--- > > Do I

Re: Mixing HDD and SSD in lvm

2024-02-11 Thread Kamil Jońca
Kamil Jońca writes: > Debian box with LVM > LVM uses 2 PV - raid devices each uses 2 HDD (rotating) > discs (with sata interfaces). > > Now I am considering replacing one PV with md device constisting of SSD > discs, so LVM will be have one "HDD" based pv and one SSD based PV. > Should I worry a

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Andy Smith
Hi, On Tue, Feb 06, 2024 at 12:18:26PM +0100, Kamil Jońca wrote: > My main concern is if speed differences between SSD and HDD in one lvm > can make any problems. The default allocation policy for LVM ("normal") is to use an arbitrary PV that has space. So this means that unless you say so, you w

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Andy Smith
Hi, On Tue, Feb 06, 2024 at 11:03:03AM +0100, Basti wrote: > If you use mdadm for RAID you can mark the slower disk as 'write-mostly' to > get more read speed. Both (MD) RAID-1 and RAID-10 will work this out by themselves, by the way, and tend to read from the fastest device. I have benchmarked

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Andy Smith
Hi, On Tue, Feb 06, 2024 at 09:04:13AM +0100, Hans wrote: > I am not sure, if it is possible, to do same in LVM. As far as I know, LVM > must also set the corrct devicenames in correct order, mustn't it? Neither LVM nor MD will have a problem with member devices changing their device path as the

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Max Nikulin
On 06/02/2024 18:18, Kamil Jońca wrote: 1. now VG has two PV. Both are raid1 with two HDD. 2. I want to have VG with one PV as RAID1 with 2 HDD's and second PV as RAID1 with 2SSD's Just a warning. It seems, it is necessary to ensure that drives use the same block size, however my impression ma

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Kamil Jońca
Kamil Jońca writes: > Marco Moock writes: > >> Am 06.02.2024 um 07:17:02 Uhr schrieb Kamil Jońca: >> >>> Should I worry about anything (speed differences or sth)? >> >> Speed differences will occur because reading and writing from/to the >> SSD will be much faster. > Of course, but can it make a

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Dan Ritter
Kamil Jońca wrote: > > Debian box with LVM > LVM uses 2 PV - raid devices each uses 2 HDD (rotating) > discs (with sata interfaces). > > Now I am considering replacing one PV with md device constisting of SSD > discs, so LVM will be have one "HDD" based pv and one SSD based PV. > Should I worry

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Basti
If you use mdadm for RAID you can mark the slower disk as 'write-mostly' to get more read speed. On 06.02.24 09:23, Marco Moock wrote: Am 06.02.2024 um 08:54:18 Uhr schrieb Kamil Jońca: Marco Moock writes: Am 06.02.2024 um 07:17:02 Uhr schrieb Kamil Jońca: Should I worry about anything

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Marco Moock
Am 06.02.2024 um 08:54:18 Uhr schrieb Kamil Jońca: > Marco Moock writes: > > > Am 06.02.2024 um 07:17:02 Uhr schrieb Kamil Jońca: > > > >> Should I worry about anything (speed differences or sth)? > > > > Speed differences will occur because reading and writing from/to the > > SSD will be mu

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Kamil Jońca
Marco Moock writes: > Am 06.02.2024 um 07:17:02 Uhr schrieb Kamil Jońca: > >> Should I worry about anything (speed differences or sth)? > > Speed differences will occur because reading and writing from/to the > SSD will be much faster. Of course, but can it make any data damage to lvm? I am aski

Re: Mixing HDD and SSD in lvm

2024-02-06 Thread Hans
Am Dienstag, 6. Februar 2024, 07:17:02 CET schrieb Kamil Jońca: Hi Kamil, I don't know, if this is working at all. The reason for this, is, the BIOS might cause trouble, because it might not always detect the drives in the correct order. For example, in my case I have several SATA drives, conn

Re: Mixing HDD and SSD in lvm

2024-02-05 Thread Marco Moock
Am 06.02.2024 um 07:17:02 Uhr schrieb Kamil Jońca: > Should I worry about anything (speed differences or sth)? Speed differences will occur because reading and writing from/to the SSD will be much faster. -- kind regards Marco Spam und Werbung bitte an ichschickerekl...@cartoonies.org

Mixing HDD and SSD in lvm

2024-02-05 Thread Kamil Jońca
Debian box with LVM LVM uses 2 PV - raid devices each uses 2 HDD (rotating) discs (with sata interfaces). Now I am considering replacing one PV with md device constisting of SSD discs, so LVM will be have one "HDD" based pv and one SSD based PV. Should I worry about anything (speed differences