Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #32786

Re: Software RAID 1 array

From Tauno Voipio <tauno.voipio@notused.fi.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Software RAID 1 array
Date 2021-08-11 16:12 +0300
Organization A noiseless patient Spider
Message-ID <sf0ibt$opl$1@dont-email.me> (permalink)
References <sev4b1$30ft$43@gallifrey.nk.ca>

Show all headers | View raw


RAID 1 is a mirror, meaning that there is a copy of all
data in both participants. There is little sense to build
a mirror array of two different size disks, the larger
unit can be used only to the size of the smaller unit.

In this case, the array would be 485G in size, and the
rest of /dev/sdb would be unavailable.

-- 

-TV


On 11.8.21 3.06, The Doctor wrote:
> Question how do you create a software RAID 1 array using
> 
> lsblk
> NAME                   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
> loop0                    7:0    0   3.3G  0 loop /var/tmp
> sda                      8:0    0 465.8G  0 disk
> ├─sda1                   8:1    0     1G  0 part /boot
> └─sda2                   8:2    0 464.8G  0 part
>    ├─almalinux_ns1-root 253:0    0    70G  0 lvm  /
>      ├─almalinux_ns1-swap 253:1    0  11.8G  0 lvm  [SWAP]
>        └─almalinux_ns1-home 253:2    0   383G  0 lvm  /home
>        sdb                      8:16   0 931.5G  0 disk
>        └─sdb1                   8:17   0 931.5G  0 part
>        sr0                     11:0    1  1024M  0 rom
> 
> fdisk -l
> 
> Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 8D33601F-80DB-48DF-8207-B26A027E4412
> 
> Device     Start        End    Sectors   Size Type
> /dev/sdb1   2048 1953523711 1953521664 931.5G Linux RAID
> 
> 
> Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x7e306797
> 
> Device     Boot   Start       End   Sectors   Size Id Type
> /dev/sda1  *       2048   2099199   2097152     1G fd Linux raid autodetect
> /dev/sda2       2099200 976773119 974673920 464.8G 8e Linux LVM
> 
> 
> sk /dev/mapper/almalinux_ns1-root: 70 GiB, 75161927680 bytes, 146800640 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> 
> 
> Disk /dev/mapper/almalinux_ns1-swap: 11.8 GiB, 12700352512 bytes, 24805376 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> 
> 
> Disk /dev/mapper/almalinux_ns1-home: 383 GiB, 411167621120 bytes, 803061760 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> 
> 
> Disk /dev/loop0: 3.3 GiB, 3516923904 bytes, 6868992 sectors
> Units: sectors of 1 * 512 = 512 bytes
> 
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> 
> 
> 

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Software RAID 1 array doctor@doctor.nl2k.ab.ca (The Doctor) - 2021-08-11 00:06 +0000
  Re: Software RAID 1 array Andreas Kohlbach <ank@spamfence.net> - 2021-08-10 20:47 -0400
    OT Re: Software RAID 1 array Rinaldi <rm@nunya.inv> - 2021-08-10 22:54 -0500
    OT Re: Software RAID 1 array Rinaldi <rm@nunya.inv> - 2021-08-10 22:57 -0500
      Re: OT Re: Software RAID 1 array Marc Haber <mh+usenetspam1118@zugschl.us> - 2021-08-11 08:42 +0200
        Re: OT Re: Software RAID 1 array Andreas Kohlbach <ank@spamfence.net> - 2021-08-11 20:06 -0400
          Re: OT Re: Software RAID 1 array Marc Haber <mh+usenetspam1118@zugschl.us> - 2021-08-12 11:25 +0200
    Re: Software RAID 1 array Eli the Bearded <*@eli.users.panix.com> - 2021-08-12 18:30 +0000
  Re: Software RAID 1 array Marc Haber <mh+usenetspam1118@zugschl.us> - 2021-08-11 08:43 +0200
    Re: Software RAID 1 array doctor@doctor.nl2k.ab.ca (The Doctor) - 2021-08-11 14:19 +0000
  Re: Software RAID 1 array Pascal Hambourg <pascal@plouf.fr.eu.org> - 2021-08-11 11:06 +0200
    Re: Software RAID 1 array doctor@doctor.nl2k.ab.ca (The Doctor) - 2021-08-11 14:20 +0000
      Re: Software RAID 1 array Pascal Hambourg <pascal@plouf.fr.eu.org> - 2021-08-11 23:05 +0200
  Re: Software RAID 1 array Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2021-08-11 16:12 +0300
    Re: Software RAID 1 array Joe Beanfish <joebeanfish@nospam.duh> - 2021-08-11 15:15 +0000
      Re: Software RAID 1 array doctor@doctor.nl2k.ab.ca (The Doctor) - 2021-08-11 21:34 +0000
        Re: Software RAID 1 array "Carlos E. R." <robin_listas@es.invalid> - 2021-08-12 00:00 +0200
  Re: Software RAID 1 array Septal <r215a@h0gerth.net> - 2021-08-17 00:37 -0400
    Re: Software RAID 1 array doctor@doctor.nl2k.ab.ca (The Doctor) - 2021-08-17 04:52 +0000
      Re: Software RAID 1 array Septal <r215a@h0gerth.net> - 2021-08-17 20:10 -0400

csiph-web