Software :: Programatically Determine Device In RAID Array?

Oct 30, 2009

I'm writing a bash script that needs to know whether or not a device node is part of a RAID array. I'm just curious if anyone knows of a good way to determine if a device node is in a RAID array. I know that you can run mdadm -Q or mdadm --examine on the device node and that will tell you. But I don't want to rely on screen scrapping and would rather have something that would return a boolean. Any ideas?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Device Locations Switch In RAID Array

Mar 17, 2011

I am running Ubuntu 10.10 64. I have a RAID array consisting of two 1 TB HDD's, controlled by my on-board RAID controller. I have a dual-boot of Ubuntu 10.10 and Windows. The RAID array is mapped in /dev/mapper, and here is the output of sudo dmraid -ay

Code:
RAID set "pdc_dedfhcfdee" already active
RAID set "pdc_dedfhcfdee1" already active
RAID set "pdc_dedfhcfdee2" already active
RAID set "pdc_dedfhcfdee3" already active

[Code]....

View 2 Replies View Related

General :: Software RAID Device Not Recognized - Can't Access Array

Aug 3, 2010

We ran out of space on our server hard drive, so I installed 2 x 1GB drives, set them up as a software RAID1 array, copied the contents of /home to it, mounted it as /home for testing. Everything OK, so I unmounted it, deleted the contents of the /home folders (don't worry, we're backed up), then remounted the array. Everything was fine until we rebooted. Now I can't access the array at all; during booting the error "mount: special device /dev/md1 does not exist" comes up twice, and manually trying toe same issue. The relevant line from fstab reads:

/dev/md1 /home ext3 defaults 0 0

However, using webmin shows only md0, the RAID0 device on which the OSD was originally installed. There is no /dev/md1 device file. The mdadm.conf file reads as follows:

# mdadm.conf written out by anaconda
DEVICE partitions
MAILADDR root
ARRAY /dev/md0 level=raid0 num-devices=2 uuid=76fd4050:fb820568:c9bd3a59:ad3e70b0

So it's not listed; I'm assuming this is significant. Am I right, and whether I am or not, what can I do?

View 3 Replies View Related

Programming :: Get Uuid Of A Device / Partition In System Programatically?

Mar 13, 2011

I am very much new to Linux programming. My question is Is there any way to read UUID of a device or partition in linux programatically. Is there any c/c++ API for user-space applications. I found some commands "sudo vol_id --uuid /dev/sda1", "sudo blkid", "ls -l /dev/disk/by-uuid/". But all are commands which we need to run in terminal. But i need to achieve this from a c/c++ program. Can some one help me in this problem.(FYI: I need to read uuid of root filesystem ("/") where Linux has been installed.)

View 9 Replies View Related

Ubuntu :: Expand Raid Array. Now Have "no Space Left On Device"?

Aug 14, 2011

I have been using Natty (11.04) for a while with a 3disk RAID5 via MDADM and all have been ok.I have just stuck in another disk using: mdadm /dev/md0 --add /dev/sdb, then mdadm --grow /dev/md --raid-devices=4I then resize2fs /dev/md0all seemed ok until i tried "tail -f /var/log/syslog" and was given:tail: cannot watch `/var/log/syslog': No space left on devicedf -h gives me loads of space freedf -i no problemsany i have an expensive lump parts just sitting here doing nothing.

View 9 Replies View Related

Ubuntu Servers :: Creation Of RAID-0 Array In Disk Utility Resulting In Smaller Than Expected Array?

Sep 27, 2010

I have a NETGEAR ReadyNAS NV+ with four 1TB drives in a RAID-5 array. This is our primary file storage. This has previously been backed up to a hardware RAID-0 array directly attached to our Windows server. The capacity of this backup array is no longer sufficient. So the plan was, take a bunch of 200GB to 320GB drives (And a 750) I had kicking around, chuck them in a couple of old SCSI drive enclosures I have collecting dust, attach them via IDA/SATA-to-USB adaptors to a USB hub, attach that to the server, create a JBOD array spanning the disks, and back up the NAS to that. Performance is not an issue as this is just to be used for backup, with the idea being as near to zero cost as possible (Spend so far = NZ$100�ish).

The first hurdle I struck was Windows not supporting Dynamic Disks on USB drives (Required to create a spanned volume). At first I resisted using another machine (i.e. a machine running Ubuntu) as I didn't want to dedicate a piece of hardware to backing up the NAS. I then decided it would be acceptable to do this via a VM, which is what I've done.So I have 10.04 running under VMWare Server 2.0.2 under Windows Server 2008 R2. The disks are all presented to the VM. I wasn't sure if I was going to end up creating the array under LVM or something else, but I noticed Disk Utility has an option to create an array, so I tried that. When I add two 250GB drives, the array size is 500GB. When I then add a 160GB drive, the array size drops to 480GB. Huh? If I keep adding disks (Regardless of order) the final array size comes out at 1.8 TB, as per the attached screenshot. Now with the following drives, I expected something more like:

160 + 250 + 250+ 750 + 250 +200 + 200 + 250 + 320 + 250 + 320 = 3.2TB

Am I missing something or making a false assumption somewhere?

View 4 Replies View Related

Hardware :: Determine The UUID Of 2 Disks That Are Assembled In A RAID1 Array?

Feb 17, 2011

I just experienced a HDD failure and while reorganizing the drives inthis machine I realized the benefits of UUID instead of /dev/sdX nomenclature. I am trying to determine the UUID of 2 disks that are assembled in a RAID1 array. right now they are /dev/sde & /dev/sdf with each only one partition. I tried ls -l /dev/disk/by-uuid but I get only the UUID of other disks, not the ones currently ID'd as sde & sdf. my mdadm.conf assembles several raid arrays all by UUID, but somehow, I cant recall how I got the UUIDs of the other HDDs at first...

View 14 Replies View Related

General :: Can't Find Boot Device - Error "Unable To Determine Major/minor Number Of Root Device"

Mar 17, 2011

I just compiled my first own kernel (I'm using Arch Linux), following the tutorial on the german site. Now I tried to boot it, I ended up failing with this message: Code: Waiting 10 seconds for device /dev/sda1 ... Root device '/dev/sda1' doesn't exist, Attempting to create it. ERROR: Unable to determine major/minor number of root device '/dev/sda1' Here is the important part of my menu.lst:

[Code]....

I simply copy&pasted the Arch-entry, i.e. I also had the disk by uuid there. The failure message was the same, just the root device name was the different name Also, at first I did not have the initrd line in my menu.lst (as written in my tutorial that I may not need it). In this case I had this error message:

[Code]....

View 10 Replies View Related

Fedora X86/64bit :: Use Fedora / Linux Raid Program To Manage Raid Array?

Jun 24, 2009

I've tried to install Fedora 11, both 32 and 64 on my main machine.It could not install as it stops on the first install window. I've already filed a bug but really haven't seen any feed back yet.The bug has something to do with Anaconda and the Raid array but I really can't tell.

I have an Intel Board (see signature). I am running intel raid software under W7 currently.It works fine. But, I'm wondering, when I attempt to install F!!, is my current raid set-up causing problems? Do I need to get rid of the intel raid software and use a Fedor/Linux raid program to manage the raid array??

View 2 Replies View Related

Hardware :: Determine Speed Of RAID Hot Swappable Disks?

Mar 4, 2009

I'm trying to to determine the speed of my Raid Hot swappable disks. I need to determine if each disk is ether 10,000 rpm or 15000 rpm. I know that each disk is 72GB in size: I have tried to find this information ind/proc/diskinfo and using dmesg but no luck.

Hardware spec:
dl380 with P400 raid controller
/dev/cciss/c0d3: (Smart Array P400) RAID 1 Volume 0 status: OK.
/dev/cciss/c0d3: (Smart Array P400) RAID 1 Volume 1 status: OK.
/dev/cciss/c0d3: (Smart Array P400) RAID 1 Volume 2 status: OK.
/dev/cciss/c0d3: (Smart Array P400) RAID 1 Volume 3 status: OK.
[root@smstcatp11 cciss_vol_status-1.03]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p6 29134940 2806224 24848732 11% /
/dev/cciss/c0d1p1 59122668 20567660 34972516 38% /apps
/dev/cciss/c0d0p1 101086 11353 84514 12% /boot
/dev/cciss/c0d3p1 56616620 102716 53056720 1% /cdr
/dev/cciss/c0d3p2 2466732 61816 2279612 3% /home
/dev/cciss/c0d2p1 59122668 626432 54913744 2% /data
none 2073896 0 2073896 0% /dev/shm
/dev/cciss/c0d0p2 16516084 78820 15598272 1% /tmp
/dev/cciss/c0d0p3 16516084 198828 15478264 2% /var

View 2 Replies View Related

Programming :: Determine Which Device The Web Cam Is Using?

Aug 31, 2010

When I run apps like mplayer to use my web cam it uses /dev/video#. For reason unknown to me this number changes and is usually either 1 or 0. I have looked on the Internet after struggling to find how to know which /dev/video device is used. So far I can only presume I have used the wrong terms to find how to determine which device the web cam is using.

View 5 Replies View Related

General :: CentOS - Determine IP For Network Device

Sep 20, 2010

When CentOS boots up, it tries to determine the IP for a network device (eth0) and fails.
'Determining IP information for eth0... failed; no link present.'
I'm curious to know how, after booting up, I could set the IP information for a wireless device, wlan0, manually. Another way of putting this questions is: if CentOS is able to determine IP information for a network device on bootup, what settings is it configuring exactly?

View 2 Replies View Related

Server :: Determine If A Device Supports IO Fencing?

Jul 20, 2010

Is there a command to determine of a device supports IO Fencing?We are trying to run a Sybase cluster that shares storage. I'm sure the device supports fencing, but don't know how to show that it does.

View 1 Replies View Related

Ubuntu :: "reconnect" To The RAID Array Even If The "mothersystem" Of The Software RAID Is Lost?

Oct 19, 2010

Consider the following setup: Ubuntu system installed on a separate SSD for speed. An ubuntu software RAID array consisting of X number of physical HDD's for storage (RAID6 or RAID10). RAID setup is done during system install. If I suffer a total crash of the SSD and loose my system, will I be able to, using a new system disk, "reconnect" to the RAID array even if the "mothersystem" of the software RAID is lost? If yes, are there any particular config- or system files I need to backup to be able to rescue the array or will it just be recognized "out-of-the-box" when reinstalling ubuntu?

View 4 Replies View Related

Ubuntu Installation :: Determine Boot Device Number?

Jun 30, 2011

I'm currently running Ubuntu (w/ GRUB) and Windows XP. I'd like to remove Ubuntu and run the recovery on Windows XP because it has started not running correctly. The computer is about 5 years old and I figured I'd just wipe it clean and start over (read: remove Ubuntu and reinstall windows via the recovery console).

I intend to follow the tutorial here: [URL]

However, I'm confused about determining the boot device number for Windows. I've run "sudo fdisk -l" and I can identify the windows drive in the list it says:

Device: /dev/sda1
Boot: *
Start: 1
End: 19352
Blocks: 155444908+
Id: 7
System: HPFS/NTFS

Am I looking for the 7, the 1, or something completely different? This is also the first partition on the list.

sda2 (id: c) is a FAT32 drive. I think this is the recovery partition included on the HP desktop.

sda3 (id:83) is Linux
sda4 (id: 82) is swap

I just need to run fixmbr.

View 2 Replies View Related

Ubuntu :: Raid 1 Array Not Showing Up?

Aug 28, 2010

I am using Ubuntu 10.04 x64. I am not trying to install Ubuntu on a RAID 1 drive like all of the guides are for. I have a RAID 1 array that I am using for data storage. In windows it shows as a single array just fine. In linux it shows as 2 separate drives. I don't care how they show up to be honest I just have to data written to one drive written to the other automatically as well so my RAID isn't screwed up. Looking through different articles and forums I find a lot of stuff saying that it should show up under /dev/mapper/dxxx or something under /dev/mapper. All that shows up there for me is a device called control which doesn't seem to do something.

View 1 Replies View Related

Ubuntu :: GPT Nvidia RAID Array In 10.10?

Nov 4, 2010

I just installed Ubuntu 10.10 64bit and wanted to get access to my nvidia RAID array. This array is working, and is NTFS formatted. But wasn't showing up through normal means in Ubuntu. (for example the NTFS Configuration Tool didn't display it) Here's what the system showed.

Code:

root@hermes:~# ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 59 2010-11-03 22:39 control
lrwxrwxrwx 1 root root 7 2010-11-03 22:42 nvidia_dadijiag -> ../dm-0

[code]....

Is my mirror still in effect, or did i just mount one of the specific drives from the mirror?

View 1 Replies View Related

Ubuntu :: Can't Remove RAID 1 Array?

Jan 24, 2011

I'm going a little bit crazy. I can't seem to remove my RAID 1 arrays. Any suggestions? I don't need to save data. The drives are empty. I'm upgrading to 4 2TB drives.Running Lucid Lynx server

Code:
jessica@nas:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sdb1[1]
976759936 blocks [2/1] [_U]
md0 : active raid1 sdd1[0]

[Code]...

View 5 Replies View Related

General :: Could Not Increase Raid Array?

Feb 3, 2011

i am trying to increase raid1 arraysize whcih is predefind,what i did i add two more drive in the raid but i could not increase raid array

exp:-
Creation Time : Wed Feb 2 18:14:56 2011
Raid Level : raid1

[code]....

View 1 Replies View Related

CentOS 5 :: Mounting A RAID Array?

May 11, 2011

Round two:I am trying to install a RAID 1 array on my system. I already have another RAID 1 array in there. I am using the BIOS RAID option to set up the array.Here's what dmraid -r tells me:

# dmraid -r
/dev/sda: pdc, "pdc_bajfedfacg", mirror, ok, 3906249984 sectors, data@ 0
/dev/sdb: pdc, "pdc_bajfedfacg", mirror, ok, 3906249984 sectors, data@ 0

[code]....

View 9 Replies View Related

Ubuntu Installation :: Dual Boot SSD Non Raid - 1 Terabyte Raid 1 Storage "No Block Device Found"?

Sep 15, 2010

It's been a real battle, but I am getting close.I won't go into all the details of the fight that I have had, but I've almost made it to the finish line. Here is the set up. ASUS Z8PE-D18 mother board 2 CPU, 8 Gig Ram. I recently added an OCZ Agility SSD, defined a raid 1 virtual disk on the 1 terabyte WD HDD drives, which will holds all of my user data, the SSD is for executables.The bios is set to AHCI. Windows 7 installed fine, recognizes the raid VD just fine.

I installed Ubuntu 10.04 by first booting into try and mode, then opening a terminal and issuing a "sudo dmraid -ay" command. Then performing the install. I told it to install the raid components, and told it to let me specify the partitions manually. When setting up the partitions, I told it to use the free space I set aside on the SSD from the Windows 7 install as ext4 and to mount root there. Ubuntu installed just fine, grub2 comes up just fine, and Windows 7 boots with out a hitch, recognizing the mirrored partition as I indicated previously. When I tell grub to boot linux however, it pauses and I get the "no block devices found" message. It will then boot, but it does not recognize the raid array. After Ubuntu starts up I can run "dmraid -ay" and it recognizes the raid array, but shows the two component disks of the raid array as well. It will not allow the component disks to be mounted, but they show up which is annoying. (I can live with that if I have to)

I have fixed a similar problem before by setting up a dmraid script in /etc/initramfs-tools/scripts/local-top ... following the instructions found at the bottom of this blog:[URL].. To recap: My problem is that after grub2 fires up Ubuntu 10.04.1 LTS (Lucid Lynx), it pauses, and I get "no block devices found" It then boots but does not recognize the raid array untill I manually run "dmraid -ay". I've hunted around for what to do but I have not found anything. It may be some timing issue or something, but I am so tired of beating my head against this wall.

View 4 Replies View Related

Debian Installation :: No Boot From RAID Array?

Dec 22, 2010

I installed Debian 5.0.3 (Backport with .34 Kernel), because my server hardware (Dell PowerEdge R210) needs special firmware and drivers.However, the installation went quite smooth.I put the system on a RAID 1 Array with about 500 GB space.s I said the installation went well, however, it doesn't boot! No GRUB, nothing

View 4 Replies View Related

Debian Configuration :: RAID Array Not Accessible

Aug 29, 2015

Just setup with Debian 8 (LXDE) a few weeks ago. Raid10 array was preexisting.

Was working well. After booting I would need to go to the save as then would need to enter the root password and everything would be good.

Can't access the array.

Used to use the command $ mount /dev/dm-o /home/myspace/folder under Debian 7.6 to mount the array (no longer works).
blkd lists a /dev/md0 but instead of UUID it is PTUUID

[Code] .....

View 0 Replies View Related

Fedora :: Raid Array Broken After Installing RC1?

Oct 30, 2010

I installed RC1, and never touched the disks that were raided previously, and the attached image is what i see for my raid array that was previously working fine.

View 3 Replies View Related

Ubuntu :: RAID 5 Array With 4 2TB Hard Drives?

Mar 17, 2010

I want to make a RAID5 array with 4 2TB hard drives. One of the drives is full of data so I will need to start with a 3 disks and then once I copy the data from the 4th onto the array, I will then add the 4th drive. This will be my first experience with RAID. I've spent a few hours searching for info but most of what I have found is a bit over my head.

View 9 Replies View Related

Ubuntu / Apple :: RAID Array On A Power Mac G5?

Jun 29, 2010

I'm just about to be given a Power Mac G5 (Late 2005) Dual 2.0GHz. I think this was the last G5 produced.I plan on using it as file server/NAS and will probably run 10.04 LTS (or maybe 8.04 LTS). I would install a SATA RAID controller and run 4 1TB drives in a RAID 5 configuration. The only thing I'm unsure about is choosing a compatible RAID controller. I need to find a RAID controller that

- Is PCIe
- Is compatible with both the Power Mac and Ubuntu PPC
- Does true hardware RAID
- Doesn't cost a fortune!

Am I right in thinking that the card might need to be open firmware compatible? If it makes any difference, I plan on running the OS from a separate 5th drive. I've found this on eBay. I asked the seller and he claims it supports true hardware RAID and says the chipset is a Silicon Image SIL3124. I does seem suspiciously cheap though...

View 2 Replies View Related

Ubuntu Installation :: Raid Array Not Available After Upgrade?

Jul 11, 2010

After upgrading my ubuntu install my raid array is gone. The drives appear in blkid as "Linux raid member" and both have the same uuid. If I try to mount the drive via fstab I get a message that the drive is not ready or present. If I try to mount each of the two drives, one mounts successfully the other reports serious errors. Issuing a cat /proc/mdstat shows md_d0 as inactive.How can I re-establish my raid array? I have the data backed up so if I have to wipe out the disks to start over that's an option.

View 2 Replies View Related

Ubuntu Installation :: How To Keep RAID Array Safe

Aug 6, 2010

I currently have a nice HTPC setup that has been upgraded from distribution to distribution since 8.xx all the way up to 9.10 now. I just moved to a new place and it feels like the right time to do a fresh install of 10.04 into the HTPC. The problem is that I have a RAID 5 array in the system that has all my pictures, videos, music, etc. This OS is installed in a separate drive that is not part of the RAID array (I have 4 drives in the system, 3 in the array, 1 for the OS). what is the general process I should follow to do:

1. a fresh install of 10.04

2. do #1 while at the same time not losing my array (don't think I would anyway).

3. what to do after install to get the array back up and running and mounted.

View 4 Replies View Related

Ubuntu Installation :: RAID Array Will Not Boot (x64)?

Sep 15, 2010

I am using the 10.04.1 x64 Kubuntu live CD to install Kubuntu on my FakeRAID 0 array, I tell it not to install grub as i know it is still currently broken. the install goes flawlessly. However on first boot using my live grub CD unless i tell my computer to point to the CD it will hang (which it is told to boot from CD first so i'm not sure why it does.) When i tell it to boot to Linux, it will not boot saying the kernel is missing files (to much to sadly list, all i do not understand) then offers me a terminal to input "help" into for a list of Linux commands. Windows 7 pro x64 works just fine CD was downloaded VIA P2P if it matters

View 6 Replies View Related

Ubuntu Installation :: Repairing Mbr On Raid Array?

Nov 27, 2010

repairing the MBR on my raid array. I have three disks, each with three paritions:root (sda1 sdb1 sdc1) 59GB swap (sda2 sdb2 sdc2) 1.12GB grub/boot (sda3 sdb3 sdc3) 298MB I have been able to get this running and it has been working fine for several months. A few days ago, I installed 10.04 to a USB stick but did not disable the hard drives at that point and so the MBR was overwritten. If I leave the USB stick in, it boots fine from that stick. However now I can't get the boot from the raid array to work correctly. I can do the following:Load 10.04 from the Live CD install mdadm recreate the root partition using

Code:

mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1

I can mount and view the files on md0 with no problems. It's not corrupted in any way. When I installed, I followed the directions to make each of the grub drives bootable. However I don't know for sure whether grub was installed on each partition separately or if it was installed on the assembled partition only. I have tried using

Code:

sudo grub-install /dev/sda3

and got warnings, something to the effect

Code:

Cannot find a device for /boot/grub
no path or device specified
Auto-detection of a filesystem module failed
specify the module with option '--module' explicitly

I have also been able to get to the grub rescue prompt but my keyboard (wireless USB) is not recognized and so I can't type anything in at that point.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved