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


Groups > linux.debian.user > #244434

Re: smartd

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: smartd
Date 2022-01-23 19:50 +0100
Message-ID <DIQ66-3nO-13@gated-at.bofh.it> (permalink)
References <DItjb-6Bu-11@gated-at.bofh.it> <DItVU-73X-11@gated-at.bofh.it> <DIOxl-2C6-17@gated-at.bofh.it> <DIPD3-3dZ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Sun, Jan 23, 2022 at 07:09:48PM +0100, Linux-Fan wrote:
> To really profit from the enhanced reliability, you need to play
> through the recovery scenario, too. I recommend doing this in a VM
> unless you have some dedicated machine with at least two HDDs to
> play with.

If wanting to play around with mdraid you can do it with loop
devices created from image files on your regular filesystem.

$ cd /var/tmp
$ for i in a b; do fallocate -l 100M fake_disk_${i}.img; done
$ for i in a b; do sudo losetup -f fake_disk_{$i}.img; done
$ sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/loop[01]
$ sudo mkfs.ext4 /dev/md0
$ sudo mount /dev/md0 /mnt

You can then practice removing, adding, failing etc. the loop devices.

When done playing around just unmount, stop array, losetup -d each loop
device then delete the files.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

smartd peter@easthope.ca - 2022-01-22 19:30 +0100
  Re: smartd Dan Ritter <dsr@randomstring.org> - 2022-01-22 20:00 +0100
    Re: smartd peter@easthope.ca - 2022-01-23 16:50 +0100
    [SOLVED] Re: smartd peter@easthope.ca - 2022-02-04 18:20 +0100
  Re: smartd Andy Smith <andy@strugglers.net> - 2022-01-22 20:10 +0100
    Re: smartd peter@easthope.ca - 2022-01-23 07:00 +0100
      Re: smartd Andy Smith <andy@strugglers.net> - 2022-01-23 12:20 +0100
        Re: smartd Charles Curley <charlescurley@charlescurley.com> - 2022-01-23 16:20 +0100
          Re: smartd <tomas@tuxteam.de> - 2022-01-23 17:00 +0100
            Re: smartd rhkramer@gmail.com - 2022-01-24 18:20 +0100
    Re: smartd peter@easthope.ca - 2022-01-23 18:10 +0100
      Re: smartd Linux-Fan <Ma_Sys.ma@web.de> - 2022-01-23 19:20 +0100
        Re: smartd Andy Smith <andy@strugglers.net> - 2022-01-23 19:50 +0100
          Re: smartd Charles Curley <charlescurley@charlescurley.com> - 2022-01-23 22:20 +0100
        Re: smartd Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-25 10:50 +0100
    [SOLVED] Re: smartd peter@easthope.ca - 2022-02-04 19:10 +0100
  Re: smartd Charles Curley <charlescurley@charlescurley.com> - 2022-01-22 22:50 +0100

csiph-web