* [sisyphus] madadm can't create raid
@ 2016-01-11 13:35 Alexander Volkov
2016-01-11 16:13 ` slchess
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Alexander Volkov @ 2016-01-11 13:35 UTC (permalink / raw)
To: sisyphus
Всем привет.
Имеется: текущий сизиф, sysvinit, 2.6.32-ovz-el-alt139.
Подцепил пару новых дисков, gdisk-ом создал раздел:
gdisk -l /dev/sdd
GPT fdisk (gdisk) version 0.8.10.2
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdd: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 607DBCAF-663C-4E75-9D7F-CDB1ED6C786B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860533134 2.7 TiB FD00 Linux
RAID
cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda5[1] sdb5[0]
3879618432 blocks super 1.2 [2/2] [UU]
bitmap: 0/29 pages [0KB], 65536KB chunk
md4 : active raid1 sda4[1] sdb4[0]
20955136 blocks super 1.2 [2/2] [UU]
bitmap: 1/1 pages [4KB], 65536KB chunk
md0 : active raid1 sda3[1] sdb3[0]
4192896 blocks [2/2] [UU]
md2 : active raid1 sdf2[1] sde2[0]
3885914944 blocks super 1.2 [2/2] [UU]
bitmap: 0/29 pages [0KB],
65536KB chunk
Далее попытка создать md3:
mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
mdadm: cannot open /dev/sdc1: Device or resource busy
И не видно, кем(
ЧЯДНТ?
Перезагрузка не помогает.
--
Regards, Alexander
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] madadm can't create raid
2016-01-11 13:35 [sisyphus] madadm can't create raid Alexander Volkov
@ 2016-01-11 16:13 ` slchess
2016-01-11 21:47 ` Michael Shigorin
2016-01-12 6:52 ` Gleb Kulikov
2 siblings, 0 replies; 8+ messages in thread
From: slchess @ 2016-01-11 16:13 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
11.01.2016 16:35, Alexander Volkov пишет:
> Всем привет.
> Имеется: текущий сизиф, sysvinit, 2.6.32-ovz-el-alt139.
> Подцепил пару новых дисков, gdisk-ом создал раздел:
> gdisk -l /dev/sdd
> GPT fdisk (gdisk) version 0.8.10.2
>
> mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
> mdadm: cannot open /dev/sdc1: Device or resource busy
А где gdisk -l /dev/sdc ?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] madadm can't create raid
2016-01-11 13:35 [sisyphus] madadm can't create raid Alexander Volkov
2016-01-11 16:13 ` slchess
@ 2016-01-11 21:47 ` Michael Shigorin
2016-01-12 6:04 ` Sergei Epiphanov
2016-01-12 7:31 ` Alexander Volkov
2016-01-12 6:52 ` Gleb Kulikov
2 siblings, 2 replies; 8+ messages in thread
From: Michael Shigorin @ 2016-01-11 21:47 UTC (permalink / raw)
To: sisyphus
On Mon, Jan 11, 2016 at 04:35:31PM +0300, Alexander Volkov wrote:
> Подцепил пару новых дисков, gdisk-ом создал раздел:
Зачем, кстати? Если диски полностью под mdraid, это помогает
разве что видеть, что не пустые, но для зеркала менее полезно.
> Далее попытка создать md3:
> mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
> mdadm: cannot open /dev/sdc1: Device or resource busy
> И не видно, кем(
fuser -vv /dev/sdc1
lsof | grep /dev/sdc1
тоже молчат?
> Перезагрузка не помогает.
Там совершенно случайно не systemd?
Если так -- можно при помощи http://altlinux.org/rescue
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] madadm can't create raid
2016-01-11 21:47 ` Michael Shigorin
@ 2016-01-12 6:04 ` Sergei Epiphanov
2016-01-12 7:31 ` Alexander Volkov
1 sibling, 0 replies; 8+ messages in thread
From: Sergei Epiphanov @ 2016-01-12 6:04 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
С таким поведением я столкнулся, когда поставил пакет с multipath. Пока не
удалил всё, что касалось multipath, и не перезапустил систему, ни одно
устройство USB или жёсткий диск не были доступны именно с такой
формулировкой. При этом никаких блоков по lsof или fuser не выводилось.
Michael Shigorin <mike@altlinux.org> 12 января 2016 г. 0:47:53 написал:
> On Mon, Jan 11, 2016 at 04:35:31PM +0300, Alexander Volkov wrote:
>> Подцепил пару новых дисков, gdisk-ом создал раздел:
>
> Зачем, кстати? Если диски полностью под mdraid, это помогает
> разве что видеть, что не пустые, но для зеркала менее полезно.
>
>> Далее попытка создать md3:
>> mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
>> mdadm: cannot open /dev/sdc1: Device or resource busy
>> И не видно, кем(
>
> fuser -vv /dev/sdc1
> lsof | grep /dev/sdc1
> тоже молчат?
>
>> Перезагрузка не помогает.
>
> Там совершенно случайно не systemd?
> Если так -- можно при помощи http://altlinux.org/rescue
>
> --
> ---- WBR, Michael Shigorin / http://altlinux.org
> ------ http://opennet.ru / http://anna-news.info
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] madadm can't create raid
2016-01-11 21:47 ` Michael Shigorin
2016-01-12 6:04 ` Sergei Epiphanov
@ 2016-01-12 7:31 ` Alexander Volkov
1 sibling, 0 replies; 8+ messages in thread
From: Alexander Volkov @ 2016-01-12 7:31 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
12.01.2016, 00:47, "Michael Shigorin" <mike@altlinux.org>:
> On Mon, Jan 11, 2016 at 04:35:31PM +0300, Alexander Volkov wrote:
>> Подцепил пару новых дисков, gdisk-ом создал раздел:
>
> Зачем, кстати? Если диски полностью под mdraid, это помогает
Гм, ну, другие диски побиты на разделы под разные нужды, для этих, вроде бы, не надо.
> разве что видеть, что не пустые, но для зеркала менее полезно.
>
>> Далее попытка создать md3:
>> mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
>> mdadm: cannot open /dev/sdc1: Device or resource busy
>> И не видно, кем(
>
> fuser -vv /dev/sdc1
> lsof | grep /dev/sdc1
> тоже молчат?
Да, как рыба об лед.
>
>> Перезагрузка не помогает.
>
> Там совершенно случайно не systemd?
Нет, в исходных данных писал.
> Если так -- можно при помощи http://altlinux.org/rescue
>
--
Regards, Alex
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] madadm can't create raid
2016-01-11 13:35 [sisyphus] madadm can't create raid Alexander Volkov
2016-01-11 16:13 ` slchess
2016-01-11 21:47 ` Michael Shigorin
@ 2016-01-12 6:52 ` Gleb Kulikov
2016-01-12 7:28 ` Alexander Volkov
2 siblings, 1 reply; 8+ messages in thread
From: Gleb Kulikov @ 2016-01-12 6:52 UTC (permalink / raw)
To: sisyphus
В письме от 2016 January 11 (16:35:31) тов. Alexander Volkov написал:
> Далее попытка создать md3:
> mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
> mdadm: cannot open /dev/sdc1: Device or resource busy
Проверьте. что в систему не затесался multipath.
Если да, то удалить его или прописать диски в секцию blacklist
/etc/multipath.conf (например, так: wwid ST3500320AS*).
Но лучше удалить multipath вообще, почему-то blacklist, при некоторых
условиях, не срабатывает.
Вообще, эпические грабли (я на них тоже нарвался, потерял данные. И до сих пор
не могу понять, КТО мне поставил multipath! :)
--
С уважением, /
uin://15341920
skype: gleb_kulikov.tomsk
sip://2387245@sipnet.ru
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] madadm can't create raid
2016-01-12 6:52 ` Gleb Kulikov
@ 2016-01-12 7:28 ` Alexander Volkov
0 siblings, 1 reply; 8+ messages in thread
From: Alexander Volkov @ 2016-01-12 7:28 UTC (permalink / raw)
To: glebus, ALT Linux Sisyphus discussions
12.01.2016, 09:52, "Gleb Kulikov" <glebus@asd.iao.ru>:
> В письме от 2016 January 11 (16:35:31) тов. Alexander Volkov написал:
>
>> Далее попытка создать md3:
>> mdadm -C /dev/md/3 -l 1 -n 2 /dev/sd[cd]1 -b internal
>> mdadm: cannot open /dev/sdc1: Device or resource busy
>
> Проверьте. что в систему не затесался multipath.
> Если да, то удалить его или прописать диски в секцию blacklist
> /etc/multipath.conf (например, так: wwid ST3500320AS*).
>
> Но лучше удалить multipath вообще, почему-то blacklist, при некоторых
> условиях, не срабатывает.
>
> Вообще, эпические грабли (я на них тоже нарвался, потерял данные. И до сих пор
> не могу понять, КТО мне поставил multipath! :)
>
> --
rpm -qa | grep multipath
multipath-tools-0.5.0-alt2
libmultipath-0.5.0-alt2
Удалил - не помогло.
--
Regards, Alex
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-01-14 8:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-11 13:35 [sisyphus] madadm can't create raid Alexander Volkov
2016-01-11 16:13 ` slchess
2016-01-11 21:47 ` Michael Shigorin
2016-01-12 6:04 ` Sergei Epiphanov
2016-01-12 7:31 ` Alexander Volkov
2016-01-12 6:52 ` Gleb Kulikov
2016-01-12 7:28 ` Alexander Volkov
2016-01-14 8:22 ` Alexander Volkov
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git