mdadm container! How does it work


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users mdadm container! How does it work
# 1  
Old 10-29-2011
mdadm container! How does it work

Hi everyone,

I am not sure if I understand how mdadm --create /dev/md0 --level=container works?
A device called /dev/md0 appears in /proc/mdstat but I am not sure how to use that device?

I have 2 blank drives with 1 500GB partition on each. I would like to setup mirroring, but not in the way that you have to create partition of the size that you want mirror to be. I am not sure if container does that or not? I have looked all over the net and was unable to find any info.

If someone can give me more info on it, it would be greatly appreciated!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to fix mistake on raid: mdadm create instead of assemble?

Hi guys, I'm new to RAID although I've had a server running raid5 for a while. It was delivered preinstalled like this and I never really wondered how to monitor and maintain it. This quick introduction just to let you understand why I'm such an idiot asking such a silly question. Now what... (0 Replies)
Discussion started by: chebarbudo
0 Replies

2. Filesystems, Disks and Memory

MDADM Failure - where it came from?

Hello, i have a system with 6 sata3 seagate st3000dm01 disks running on stable Debian with software raid mdadm. i have md0 for root and md1 for swap and md2 for the files. i now want to add one more disk = sdh4 for md2 but i got this errors: The new disk is connected to an 4 port sata... (7 Replies)
Discussion started by: Sunghost
7 Replies

3. UNIX for Advanced & Expert Users

USB RAID 5 Problem on Joli OS 1.2 (Ubuntu) using mdadm

Hi All, I have been trying to create a USB RAID 5 using mdadm tool on Joli OS 1.2 (Ubuntu) but with no luck. I cannot even get pass the creation of array device (/dev/md0) and superblock. I am using 3 USB keys (2 16.4 GB kingston and 1 16GB sandisk). My steps are: ... (5 Replies)
Discussion started by: powelltallen
5 Replies

4. Solaris

Container

Hi, Can any one let me know in detail what is container and how it is different from zones. and also any process to create a container (6 Replies)
Discussion started by: chetansingh23
6 Replies

5. Red Hat

mdadm for / and /boot

had this RHEL 5 installation with /dev/sda1 and /dev/sda2 running.. created two more partitions /dev/sdj1 and /dev/sdj2 , the same sized partition as /dev/sda trying to use mdadm to create RAID1 .. I cannot even do it in "rescue" mode, I wonder if it can be done.. it kept... (2 Replies)
Discussion started by: ppchu99
2 Replies

6. UNIX for Advanced & Expert Users

mdadm question

Hello, I have 4 drives (500G each) in a raid 10, I got a power failior and this is the result? cat /proc/mdstat Personalities : md126 : inactive sdb sdc sdd sde 1953536528 blocks super external:-md127/0 md127 : inactive sdd(S) sde(S) sdb(S) sdc(S) 9028 blocks super... (3 Replies)
Discussion started by: rmokros
3 Replies

7. Emergency UNIX and Linux Support

mdadm unable to fail a resyncing drive?

Hi All I have a RAID 5 array consisting of 4 drives that had a partial drive failure in one of the drives. Rebooting shows the faulty drive as background rebuilding and mdadm /dev/ARRAYID shows three drives as in sync with the fourth drive as spare rebuilding. However the array won't come... (9 Replies)
Discussion started by: Bashingaway
9 Replies

8. Solaris

solaris zones vs container..

kindly share what are difference b/w solaris zones and containers.... (8 Replies)
Discussion started by: Rajesh_Apple
8 Replies

9. Virtualization and Cloud Computing

is mdadm --incremental --rebuild --run --scan destructive?

Hello Unix Community: My task to figure out how to add a 20G volume to an existing EBS Array (RAID0) at AWS. I haven't been told that growing the existing volumes isn't an option, or adding another larger volume to the existing array is the way to go. The client's existing data-store is... (0 Replies)
Discussion started by: Habitual
0 Replies

10. Linux

mdadm - Swapping 500GB disks for 1TB

Hi, I have a three disk raid 5, with 500GB disks. This is close to being full, and whilst I can just add another disk and rebuild to add another 500GB, I would prefer to replace with 1TB disks. So i have some questions. Can I replace these disks one by one with bigger disks? I... (1 Reply)
Discussion started by: snoop2048
1 Replies
Login or Register to Ask a Question
LSRAID(8)							Linus md Utilities							 LSRAID(8)

NAME
lsraid - List and query Linux md devices. SYNOPSIS
lsraid -A [-g|-s|-f] {-a <device> | -d <device>} ... lsraid -A -p lsraid -D [-l] {-a <device> | -d <device>} ... lsraid -D -p lsraid -R {-a <device> | -d <device>} ... lsraid -R -p lsraid -h lsraid -V DESCRIPTION
lsraid is a program for querying Linux md devices. It can describe the composite device and the block devices that belong to it. It can also provide a description of the md device suitable for including in the /etc/raidtab configuration file. lsraid also has the ability to operate on online and offline devices. It can read an online device via the kernel interface and provide information about it. When a device is offline, lsraid can look at any of the block devices that are a part of the md device and read the persistent md superblock for information. OPTIONS
-A Selects array-based operation. lsraid will query the given devices and output a short listing of the referenced md devices. -a <device> Adds md device <device> to the list of devices to query. If the device is online, lsraid will discover all of the block devices that belong to it via the kernel interface. Otherwise lsraid will only be able to verify that the device exists. -D Selects disk-based operation. lsraid will query the given devices and then output a description of all the member disks requested. -d <device> Adds block device <device> to the list of devices to query. lsraid will read the md superblock off of <device> and use it to discover the assocated md device and block devices. -f Displays only failed block devices in array-based mode (-A). -g Displays only good block devices in array-based mode (-A). -h, --help Displays a short usage message, then exits. -l Displays a long dump of block device superblocks in disk-based mode (-D). This output is verbatim from the on-disk md superblock, and reflects the state on the specific disk, not the state the md device currently considers authorative. -p Scans all block devices in /proc/partitions for RAID arrays. This can be slow in the presence of network block devices and the like. This option is mutually exclusive with the -a and -d options. -R Selects raidtab operation. lsraid will query all the devices specified and output a description of the referenced md devices in a for- mat suitable for placing in a raidtab(5) file. -s Displays only spare block devices in array-based mode (-A). NOTES
lsraid cannot discover the block devices that make up an offline md device. Providing one of the member devices with the -d option allows lsraid to discover the rest of the information about the offline md device. Disk-based operation only displays the block devices specified on the command line. Specify the md device on the command line to see information about all of the member disks. If the md device is offline, specify both the md device and one of the member disks. lsraid does not do any special handling of md devices composed of other md devices (eg RAID 1+0). The member devices are merely treated as block devices while in the context of the parent device. This is only an issue for raidtab-based operation. The raidtab(5) output will be printed in the order the md devices are queried. This means that a command creating a raidtab(5) for a RAID 1+0 device should list the member devices first on the command line. EXAMPLES
lsraid -A -a /dev/md0 Display a short listing of the md0 device. lsraid -A -d /dev/sda1 Display a short listing of the array that sda1 belongs to. lsraid -A -f -a /dev/md0 Display the failed devices belonging to the md0 device. lsraid -D -l -a /dev/md0 Display a long dump of the on-disk md superblock of every disk in md0. lsraid -D -a /dev/md0 -d /dev/sda1 Display a short discription of the disks in md0 as well as a short description of the disk sda1. sda1 will only be described once if it belongs to md0. lsraid -R -a /dev/md0 -a /dev/md1 -a /dev/md2 Display a description of the arrays in an output format suitable for using in raidtab(5) files. Note that if md0 and md1 are raid0 arrays and md2 is a raid1 created from md0 and md1, this command will output the information in the correct order. lsraid -R -p Scan all block devices in /proc/partitions and display all discovered md devices in a format suitable for using in raidtab(5) files. BUGS
Probably. SEE ALSO
mkraid(8), raidtab(5), raidstart(8), raidstop(8) VERSION
lsraid version 0.7.0 (26 March 2002) HISTORY
Version 0.7.0 Added scanning of active block device partitions. Version 0.4.0 Initial documented version. Functionally complete. AUTHOR
Joel Becker <joel.becker@oracle.com> COPYRIGHT
Copyright (C) Oracle Corporation, Joel Becker. All rights reserved. This program is free software; see the file COPYING in the source distribution for the terms under which it can be redistributed and/or modified. 3rd Berkeley Distribution 2002-03-26 LSRAID(8)