MDADM creates additional block devicesmdadm - RAID5 array size vs. actual disk size mismatch“Spare” disk...
How to "add" units to results of pgfmathsetmacro?
How can I find an old paper when the usual methods fail?
Are employers legally allowed to pay employees in goods and services equal to or greater than the minimum wage?
The cat exchanges places with a drawing of the cat
Are those flyers about apartment purchase a scam?
A torrent of foreign terms
Tempoverlustspiel
What can Amex do if I cancel their card after using the sign up bonus miles?
How should I write this passage to make it the most readable?
How can I communicate my issues with a potential date's pushy behavior?
Do Reform Jews believe in a theistic God?
Why did Saruman lie?
How do some PhD students get 10+ papers? Is that what I need for landing good faculty position?
Are there really no countries that protect Freedom of Speech as the United States does?
Do beef farmed pastures net remove carbon emissions?
PhD advisor lost funding, need advice
How do you deal with the emotions of not being the one to find the cause of a bug?
Swap on SSD in 2019?
My cat is a houdini
Is there any way to stop a user from creating executables and running them?
How can God warn people of the upcoming rapture without disrupting society?
Word for an event that will likely never happen again
What would it take to get a message to another star?
How to Check all AD userers for "blank" password?
MDADM creates additional block devices
mdadm - RAID5 array size vs. actual disk size mismatch“Spare” disk in a 2-disk mdadm RAID1 array?An existing mdadm RAID5 is not mounting, Either a problem drive or SuperblockReplacing a disk to RAID5 failedraid5 array reassembles as raid0How do I (re)build/create/assemble an IMSM RAID-0 array from disk images instead of disk drives using mdadm?Recovering a RAID 6mdadm raid10 recovery - is this filesystem corrupted? Is it fixable?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md
type. According to the kernel.org documentation, the md
device type is Metadisk (RAID) devices.
The metadisk driver is used to span a filesystem across multiple
physical disks.
However, this started to happens today on the same host. (I am using a configuration management tool to create a RAID array, but the same happens when I issue the mdadm commands manually.
lsblk output looks like below:
user@host:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
xvdf 202:80 0 20G 0 disk
nvme1n1 259:1 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
Can someone shed some light? Is this expected? I am seeing this for the first time.
Host is Ubuntu 16.04.6 LTS
Clarification
Why are these created:
└─md0p2 259:2 0 1.8T 0 md
linux devices mdadm lsblk raid0
|
show 2 more comments
I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md
type. According to the kernel.org documentation, the md
device type is Metadisk (RAID) devices.
The metadisk driver is used to span a filesystem across multiple
physical disks.
However, this started to happens today on the same host. (I am using a configuration management tool to create a RAID array, but the same happens when I issue the mdadm commands manually.
lsblk output looks like below:
user@host:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
xvdf 202:80 0 20G 0 disk
nvme1n1 259:1 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
Can someone shed some light? Is this expected? I am seeing this for the first time.
Host is Ubuntu 16.04.6 LTS
Clarification
Why are these created:
└─md0p2 259:2 0 1.8T 0 md
linux devices mdadm lsblk raid0
What exactly is the problem you're seeing in lsblk output?
– muru
16 hours ago
1
Do you mean themd0p2
? That's just a partition that somebody created on themd0
device, just like you would on any other disk device.
– TooTea
16 hours ago
@muru the md0p2 devices that are created along.
– Alan Kis
16 hours ago
@TooTea md0p2 is not a type PARTITION. It is MD type. No one except me and the NSA doesn't have access to the host.
– Alan Kis
16 hours ago
It's still a partition. If you didn't create it yourself, there might have been a partition table lying around on one of the component devices and that partition table is now seen through the raid device. That sounds likely given that the size of the partition looks very close to the size of the component device.
– TooTea
15 hours ago
|
show 2 more comments
I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md
type. According to the kernel.org documentation, the md
device type is Metadisk (RAID) devices.
The metadisk driver is used to span a filesystem across multiple
physical disks.
However, this started to happens today on the same host. (I am using a configuration management tool to create a RAID array, but the same happens when I issue the mdadm commands manually.
lsblk output looks like below:
user@host:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
xvdf 202:80 0 20G 0 disk
nvme1n1 259:1 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
Can someone shed some light? Is this expected? I am seeing this for the first time.
Host is Ubuntu 16.04.6 LTS
Clarification
Why are these created:
└─md0p2 259:2 0 1.8T 0 md
linux devices mdadm lsblk raid0
I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md
type. According to the kernel.org documentation, the md
device type is Metadisk (RAID) devices.
The metadisk driver is used to span a filesystem across multiple
physical disks.
However, this started to happens today on the same host. (I am using a configuration management tool to create a RAID array, but the same happens when I issue the mdadm commands manually.
lsblk output looks like below:
user@host:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
xvdf 202:80 0 20G 0 disk
nvme1n1 259:1 0 1.7T 0 disk
└─md0 9:0 0 3.5T 0 raid0
└─md0p2 259:2 0 1.8T 0 md
Can someone shed some light? Is this expected? I am seeing this for the first time.
Host is Ubuntu 16.04.6 LTS
Clarification
Why are these created:
└─md0p2 259:2 0 1.8T 0 md
linux devices mdadm lsblk raid0
linux devices mdadm lsblk raid0
edited 16 hours ago
Alan Kis
asked 16 hours ago
Alan KisAlan Kis
1662 gold badges3 silver badges9 bronze badges
1662 gold badges3 silver badges9 bronze badges
What exactly is the problem you're seeing in lsblk output?
– muru
16 hours ago
1
Do you mean themd0p2
? That's just a partition that somebody created on themd0
device, just like you would on any other disk device.
– TooTea
16 hours ago
@muru the md0p2 devices that are created along.
– Alan Kis
16 hours ago
@TooTea md0p2 is not a type PARTITION. It is MD type. No one except me and the NSA doesn't have access to the host.
– Alan Kis
16 hours ago
It's still a partition. If you didn't create it yourself, there might have been a partition table lying around on one of the component devices and that partition table is now seen through the raid device. That sounds likely given that the size of the partition looks very close to the size of the component device.
– TooTea
15 hours ago
|
show 2 more comments
What exactly is the problem you're seeing in lsblk output?
– muru
16 hours ago
1
Do you mean themd0p2
? That's just a partition that somebody created on themd0
device, just like you would on any other disk device.
– TooTea
16 hours ago
@muru the md0p2 devices that are created along.
– Alan Kis
16 hours ago
@TooTea md0p2 is not a type PARTITION. It is MD type. No one except me and the NSA doesn't have access to the host.
– Alan Kis
16 hours ago
It's still a partition. If you didn't create it yourself, there might have been a partition table lying around on one of the component devices and that partition table is now seen through the raid device. That sounds likely given that the size of the partition looks very close to the size of the component device.
– TooTea
15 hours ago
What exactly is the problem you're seeing in lsblk output?
– muru
16 hours ago
What exactly is the problem you're seeing in lsblk output?
– muru
16 hours ago
1
1
Do you mean the
md0p2
? That's just a partition that somebody created on the md0
device, just like you would on any other disk device.– TooTea
16 hours ago
Do you mean the
md0p2
? That's just a partition that somebody created on the md0
device, just like you would on any other disk device.– TooTea
16 hours ago
@muru the md0p2 devices that are created along.
– Alan Kis
16 hours ago
@muru the md0p2 devices that are created along.
– Alan Kis
16 hours ago
@TooTea md0p2 is not a type PARTITION. It is MD type. No one except me and the NSA doesn't have access to the host.
– Alan Kis
16 hours ago
@TooTea md0p2 is not a type PARTITION. It is MD type. No one except me and the NSA doesn't have access to the host.
– Alan Kis
16 hours ago
It's still a partition. If you didn't create it yourself, there might have been a partition table lying around on one of the component devices and that partition table is now seen through the raid device. That sounds likely given that the size of the partition looks very close to the size of the component device.
– TooTea
15 hours ago
It's still a partition. If you didn't create it yourself, there might have been a partition table lying around on one of the component devices and that partition table is now seen through the raid device. That sounds likely given that the size of the partition looks very close to the size of the component device.
– TooTea
15 hours ago
|
show 2 more comments
1 Answer
1
active
oldest
votes
When a block device is added to the system, the kernel attempts to parse any partition table that may exist on the device, and if successful, will add block devices for the partitions it thinks exists because of what it read in the partition table. Note that support for many partition table types can be configured into the kernel, so partition tables from e.g. Solaris and BSD will also be recognized.
It's possible for random data to somehow match what the kernel expects a partition table to look like, causing false partition devices to be created.
lsblk
output has a "TYPE" column, but that may or may not be correct; this too may be a best-effort guess. The major device number is a better indication of what type of device it is; refer to /proc/devices
to see what numbers correspond to what kernel driver. Here at least the md0p2
major device number is not the same as the md0
major device number, so it's not the md
driver that created that device.
Zeroing out the first block helps prevent such misinterpretation of data as a partition table:
# dd if=/dev/zero of=/dev/md0 count=1
Double-check the device you are writing to!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535353%2fmdadm-creates-additional-block-devices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
When a block device is added to the system, the kernel attempts to parse any partition table that may exist on the device, and if successful, will add block devices for the partitions it thinks exists because of what it read in the partition table. Note that support for many partition table types can be configured into the kernel, so partition tables from e.g. Solaris and BSD will also be recognized.
It's possible for random data to somehow match what the kernel expects a partition table to look like, causing false partition devices to be created.
lsblk
output has a "TYPE" column, but that may or may not be correct; this too may be a best-effort guess. The major device number is a better indication of what type of device it is; refer to /proc/devices
to see what numbers correspond to what kernel driver. Here at least the md0p2
major device number is not the same as the md0
major device number, so it's not the md
driver that created that device.
Zeroing out the first block helps prevent such misinterpretation of data as a partition table:
# dd if=/dev/zero of=/dev/md0 count=1
Double-check the device you are writing to!
add a comment |
When a block device is added to the system, the kernel attempts to parse any partition table that may exist on the device, and if successful, will add block devices for the partitions it thinks exists because of what it read in the partition table. Note that support for many partition table types can be configured into the kernel, so partition tables from e.g. Solaris and BSD will also be recognized.
It's possible for random data to somehow match what the kernel expects a partition table to look like, causing false partition devices to be created.
lsblk
output has a "TYPE" column, but that may or may not be correct; this too may be a best-effort guess. The major device number is a better indication of what type of device it is; refer to /proc/devices
to see what numbers correspond to what kernel driver. Here at least the md0p2
major device number is not the same as the md0
major device number, so it's not the md
driver that created that device.
Zeroing out the first block helps prevent such misinterpretation of data as a partition table:
# dd if=/dev/zero of=/dev/md0 count=1
Double-check the device you are writing to!
add a comment |
When a block device is added to the system, the kernel attempts to parse any partition table that may exist on the device, and if successful, will add block devices for the partitions it thinks exists because of what it read in the partition table. Note that support for many partition table types can be configured into the kernel, so partition tables from e.g. Solaris and BSD will also be recognized.
It's possible for random data to somehow match what the kernel expects a partition table to look like, causing false partition devices to be created.
lsblk
output has a "TYPE" column, but that may or may not be correct; this too may be a best-effort guess. The major device number is a better indication of what type of device it is; refer to /proc/devices
to see what numbers correspond to what kernel driver. Here at least the md0p2
major device number is not the same as the md0
major device number, so it's not the md
driver that created that device.
Zeroing out the first block helps prevent such misinterpretation of data as a partition table:
# dd if=/dev/zero of=/dev/md0 count=1
Double-check the device you are writing to!
When a block device is added to the system, the kernel attempts to parse any partition table that may exist on the device, and if successful, will add block devices for the partitions it thinks exists because of what it read in the partition table. Note that support for many partition table types can be configured into the kernel, so partition tables from e.g. Solaris and BSD will also be recognized.
It's possible for random data to somehow match what the kernel expects a partition table to look like, causing false partition devices to be created.
lsblk
output has a "TYPE" column, but that may or may not be correct; this too may be a best-effort guess. The major device number is a better indication of what type of device it is; refer to /proc/devices
to see what numbers correspond to what kernel driver. Here at least the md0p2
major device number is not the same as the md0
major device number, so it's not the md
driver that created that device.
Zeroing out the first block helps prevent such misinterpretation of data as a partition table:
# dd if=/dev/zero of=/dev/md0 count=1
Double-check the device you are writing to!
answered 13 hours ago
wurtelwurtel
11.8k1 gold badge16 silver badges29 bronze badges
11.8k1 gold badge16 silver badges29 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535353%2fmdadm-creates-additional-block-devices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What exactly is the problem you're seeing in lsblk output?
– muru
16 hours ago
1
Do you mean the
md0p2
? That's just a partition that somebody created on themd0
device, just like you would on any other disk device.– TooTea
16 hours ago
@muru the md0p2 devices that are created along.
– Alan Kis
16 hours ago
@TooTea md0p2 is not a type PARTITION. It is MD type. No one except me and the NSA doesn't have access to the host.
– Alan Kis
16 hours ago
It's still a partition. If you didn't create it yourself, there might have been a partition table lying around on one of the component devices and that partition table is now seen through the raid device. That sounds likely given that the size of the partition looks very close to the size of the component device.
– TooTea
15 hours ago