Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-26 Thread Gordon Messmer
On 2/26/19 6:37 AM, Simon Matter via CentOS wrote: How is it not systemd doing it? Such things didn't happen with pre systemd distributions. The following log is from a CentOS 6 system.  I created RAID devices on two drives.  I then stopped the RAID devices and 'dd' over the beginning of the

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-26 Thread Jobst Schmalenbach
On Mon, Feb 25, 2019 at 11:23:12AM +, Tony Mountifield (t...@softins.co.uk) wrote: > In article <20190225050144.ga5...@button.barrett.com.au>, > Jobst Schmalenbach wrote: > > Hi. > > CENTOS 7.6.1810, fresh install - use this as a base to create/upgrade > > new/old machines. > > > > I was tr

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-26 Thread Jobst Schmalenbach
On Tue, Feb 26, 2019 at 03:37:34PM +0100, Simon Matter via CentOS (centos@centos.org) wrote: > > On Mon, Feb 25, 2019 at 11:54 PM Simon Matter via CentOS > > > > wrote: > >> > What makes you think this has *anything* to do with systemd? Bitching > >> > about systemd every time you hit a problem i

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-26 Thread Jobst Schmalenbach
On Mon, Feb 25, 2019 at 05:24:44PM -0800, Gordon Messmer (gordon.mess...@gmail.com) wrote: > On 2/24/19 9:01 PM, Jobst Schmalenbach wrote: > [snip] > > What makes you think this has *anything* to do with systemd? Bitching about > systemd every time you hit a problem isn't helpful.  Don't. Becasu

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-26 Thread Simon Matter via CentOS
> On Mon, Feb 25, 2019 at 11:54 PM Simon Matter via CentOS > > wrote: > >> > >> > What makes you think this has *anything* to do with systemd? Bitching >> > about systemd every time you hit a problem isn't helpful. Don't. >> >> If it's not systemd, who else does it? Can you elaborate, please? >>

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-26 Thread Christofer C. Bell
On Mon, Feb 25, 2019 at 11:54 PM Simon Matter via CentOS wrote: > > > > What makes you think this has *anything* to do with systemd? Bitching > > about systemd every time you hit a problem isn't helpful. Don't. > > If it's not systemd, who else does it? Can you elaborate, please? > I'll wager i

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-25 Thread Simon Matter via CentOS
> On 2/24/19 9:01 PM, Jobst Schmalenbach wrote: >> I tried to delete the MDX, I removed the disks by failing them, then >> removing each array md0, md1 and md2. >> I also did >> >>dd if=/dev/zero of=/dev/sdX bs=512 seek=$(($(blockdev --getsz >> /dev/sdX)-1024)) count=1024 > > > Clearing the ini

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-25 Thread Gordon Messmer
On 2/24/19 9:01 PM, Jobst Schmalenbach wrote: I tried to delete the MDX, I removed the disks by failing them, then removing each array md0, md1 and md2. I also did dd if=/dev/zero of=/dev/sdX bs=512 seek=$(($(blockdev --getsz /dev/sdX)-1024)) count=1024 Clearing the initial sectors doesn

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-25 Thread Tony Mountifield
In article <20190225050144.ga5...@button.barrett.com.au>, Jobst Schmalenbach wrote: > Hi. > > CENTOS 7.6.1810, fresh install - use this as a base to create/upgrade new/old > machines. > > I was trying to setup two disks as a RAID1 array, using these lines > > mdadm --create --verbose /dev/md

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-24 Thread Jobst Schmalenbach
On Mon, Feb 25, 2019 at 06:50:11AM +0100, Simon Matter via CentOS (centos@centos.org) wrote: > > Hi. > > > > dd if=/dev/zero of=/dev/sdX bs=512 seek=$(($(blockdev --getsz > > /dev/sdX)-1024)) count=1024 > > I didn't check but are you really sure you're cleaning up the end of the > drive? Maybe

Re: [CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-24 Thread Simon Matter via CentOS
> Hi. > > CENTOS 7.6.1810, fresh install - use this as a base to create/upgrade > new/old machines. > > I was trying to setup two disks as a RAID1 array, using these lines > > mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 > /dev/sdc1 > mdadm --create --verbose /dev/md1

[CentOS] Problem with mdadm, raid1 and automatically adds any disk to raid

2019-02-24 Thread Jobst Schmalenbach
Hi. CENTOS 7.6.1810, fresh install - use this as a base to create/upgrade new/old machines. I was trying to setup two disks as a RAID1 array, using these lines mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1 mdadm --create --verbose /dev/md1 --level=0 --rai