Ubuntu :: Temporarily Copy Data Before Growing RAID0 Array?

Feb 1, 2011

I currently have two hard drives, with my root partition configured in RAID0. I'd like to add two additional hard drives, and include them in my RAID0 array. I need to recreate the array to do this, so I'd like to copy everything off of the existing array, add the drives, build the new array, and copy everything back. I have an external hard drive with four times the capacity of my current array. What would be the best way to copy this data so that nothing is missed, so I can just copy everything back and boot back up? dd, image the entire root partition, mount it after creating the new array, copy everything back (at the filesystem level) dd, image the entire root partition, write it back out to the new array, I'm not sure how this would work, because the partition will be the wrong size, I don't know much about dd. rsync, just rsync everything on root over to the external something else? I plan on booting to a live CD and mounting my current array there, so I won't be working on a live filesystem.

View 1 Replies


ADVERTISEMENT

OpenSUSE Install :: Copy Data From The Straight Disk To The Array, Using Several Methods: With Dolphin, With Cpio?

Jan 9, 2010

I'm not sure wether this is the correct forum for this, but this is the best place I can see at the moment, so I'll give it a try. Please redirect me if I'm mistaken.Running Suse 11.2, I have a RAID-5 device mounted, and a straigt disk. I want to copy data from the straigt disk to the array, using several methods: with Dolphin, with cpio. Copying runs for some time, sometimes one or some files are copied indeed, but after a short time (sometimes half a minute, sometimes 10 minutes or more) I get a

Message from syslogd@linux-wrth at Jan 9 22:44:03 ...
kernel:[ 381.602651] Oops: 0000 [#1] PREEMPT SMP
Message from syslogd@linux-wrth at Jan 9 22:44:03 ...

[code]....

View 2 Replies View Related

Ubuntu :: Growing Root Partition Along With Corresponding SoftRAID Array

Sep 4, 2010

So, I recently installed a server with several software RAID partitions over three drives. After installation, I pulled out the CD-ROM and added a fourth drive.

I believe I successfully grew all the arrays (RAID1 for /boot, RAID5 for /, and RAID1 for swap), but I'm not seeing that growth in my filesystem.

The root partition is no larger than it previously was, even though the specific array that is mounted to it has grown to the proper size.

$ df -h
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/md2 292G 6.8G 271G 3% /
none 118M 292K 118M 1% /dev
none 123M 0 123M 0% /dev/shm

[Code]....

I'm sure I'm missing something quite simple here, but how can I resize my root partition to the full size of /dev/md2?

I should note that even though I ripped out the CD-ROM in favor of an additional HDD, I can probably run a live session from a USB stick (although I've been unable to thus far- any solution that can avoid doing so is preferable).

View 2 Replies View Related

Ubuntu :: Create A Raid0 Array Of Drives?

Feb 20, 2011

Just got 3 extra drives for my machine.

2x160Gb sata
1x 165Gb sata

How do i create a raid0 array of these drives? On each drive i have got a partition whose size is 160GB and formatted to type fd (Raid Autodetect) i have tried the following:

Code:
mdadm --create /dev/md0 --level=0 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sda1
mkfs.ext4 /dev/md0
mount /dev/md0 /media/raid
but for some reason it doesnt work.

[Code]...

View 5 Replies View Related

Software :: Mdadm - Raid0 Array Appear With Only One Disk

Dec 1, 2010

When I set up Ubuntu 10.10 I had only one hdd around so I installed my system with the idea that I will add the 2nd hdd for raid1 later on. Last weekend I wanted to add the hdd, but discovered, that ubuntu created a raid0 array. So I went on and tried different things: removing the 1st hdd from the raid0 array, create a raid1 with two disks, and so on... I finally could syncronize both disks but after a reboot the raid0 array appeared again with only one disk. Now I know, I should have written the mdadm.conf and fstab files... My last tries resulted in a missing superblock. Here is the story:

[Code].....

View 1 Replies View Related

Ubuntu Installation :: Can Create An Mdadm RAID0 Array When Fakeraid Is Enabled

May 24, 2011

I'm looking to shrink my windows partition on a raid0 array and create a mdadm ubuntu partition using raid0. Is this possible? can I just ignore the /dev/mapper device and use the standard /dev/sdx devices?

View 4 Replies View Related

General :: Mount Hard RAID5 Array With Software RAID0 And GPT?

Aug 8, 2009

I couldn't post in General. It said I had insufficient permissions to post there, so, this post does have to do with Windows slightly. Sorry that it's here, but I DID read the rules (I searched, and couldn't find an answer to my problem either)

Anyways, I have a RAID5 array 2.72TB (4x1TB drives) which I used in my windows installation, initialized as GPT, and I used "span" to make the single 2TB partition, and 720GB partition into one partition. I believe that Windows created a software RAID0. Ok, so now I've made the leap away from windows, and am going 100% into Linux (Debian, to be exact) and I'm trying to figure out how to mount this array. I've only done basic web/ftp/ircd server management on Linux before, and never anything with mounting drives. I'm a complete n00b at this stuff.

View 9 Replies View Related

Hardware :: Can I Add Raid0 Array To Existing Install Leaving OS On Original Drive

Mar 24, 2009

I am currently running Ubuntu 8.10 amd64 on a single 750GB drive. My question is whether or not I can add two more drives (say 2 500GB drives) in a raid 0 array leaving the OS and data on the original drive? I find my self working with some very large files and I would like to speed up their processing time. At the same time, I would like to leave my current configuration in place without touching the OS or my data. I'm not much of a hardware guy.

View 4 Replies View Related

Red Hat / Fedora :: Growing RAID5 Without Back Up Data?

Feb 15, 2011

I am trying to build a media server for my home and still in the process of evaluating my OS options (Ubuntu Server, Fedora Core, or Win Server). I am planning to use four 1TB drives initially for the RAID5 array. Once it fill up i will add more 1TB drives.

My question is can Fedora Core create a RAID5 array and grow latter without having to back up data to external hard drive and re-create the array? I am looking for something that is easy to use and manage. If Fedora Core doesnt have this option, can you recommend other distributions that can do this?

View 1 Replies View Related

Fedora :: Growing RAID5 Without Back Up Data?

Feb 15, 2011

I am trying to build a media server for my home and still in the process of evaluating my OS options (Ubuntu Server, Fedora Core, or Win Server). I am planning to use four 1TB drives initially for the RAID5 array. Once it fill up i will add more 1TB drives.

My question is can Fedora Core create a RAID5 array and grow latter without having to back up data to external hard drive and re-create the array? I am looking for something that is easy to use and manage. If Fedora Core doesnt have this option, can you recommend other distributions that can do this?

View 2 Replies View Related

Ubuntu :: Data From Windows Raid0

Oct 21, 2010

I had windows and ubuntu for some time, the other day I had an issue with (msconfig). The easiest way to fix it is to fresh install windows. So I wanted to boot into ubuntu, take my windows files and toss them onto a external drive. So this is were I need help. I have 3 hard drives, 2 internal and 1 external. The 2 internal drives are 2 500 gig WD's in raid0. I can not find out how to retrieve my data from these drives at all. I can get the partition manager to tell me I have them, but I can not find them anywhere let alone get data off. And I have my work for my 10 page research paper on there and I should be working on it but have not been able to retrieve the work and put it on my laptop.

View 5 Replies View Related

OpenSUSE Install :: Partitioning & Booting - (grub Won't Install On The Pci Express Card As It Is A Raid0 Array)

Jun 11, 2011

I am currently running all my applications off a HD as I was unable to install the grub bootloader on my ocz pci express card (grub won't install on the pci express card as it is a raid0 array). I would like to use the HD for backup only and run everything off the ocz card - with the exception of booting (which is unfortunate but I didn't manage to make the pci express card boot). How is it possible to tell suse during the installation to create the /boot on the HD and the rest on the pci express card and also to allocate the remainder of the HD as empty storage area??

View 1 Replies View Related

Ubuntu :: Excel Data Shrinks To The Small Scale - Unreadable When Copy Data From Another Spreadsheet Onto The New One

Jan 17, 2011

I've been using Excel from OpenOffice with moderate success for the last year. Now I've just tried to open a new spreadsheet and I'm suddenly getting a highly condensed view. The cells are about 1mm X 4mm. If I expand them by selecting and dragging, then try to copy data from another spreadsheet onto the new one, the data shrinks to the small scale -- unreadable.

View 4 Replies View Related

Programming :: How To Copy Array In Bash

May 13, 2010

I have this code:

Code:
original_content=${content[@]};
echo ${#content[@]} # is 23
echo ${#original_content[@]} # is 1

I'd expect original_content should be copy of content. How to copy array?

View 2 Replies View Related

Software :: Recovering Data From MD Array (using Knoppix)

Jun 2, 2011

I had a major OS crash (Gentoo) maybe 2 months ago and completely neglected my system. Now I want to recover all my mirror raid data back so that I can restore the system. My plan is this:

1) copy all data so that I can have a backup
2) rebuild system with some HW upgrades

First step is to get the data out. I managed to boot with Knoppix and I have full access to my ext2 partitions. My mistake was to create the mirror partitions and these are not working now. I copied my /etc/mdadm.conf into /etc/mdadm/mdadm.conf in Knoppix and then tried to start the services. This is what I got:

knoppix@Microknoppix:~$ /etc/init.d/mdadm start
knoppix@Microknoppix:~$ /etc/init.d/mdadm-raid start
Assembling MD arrays...failed (failed to load MD subsystem).

I can see the partitions:

[Code]......

These are my current ideas:

1) Can I change the filesystem type from mdraid to ext2 or ext3 safely?

2) How can I mount these raid filesystems so that I can copy my data?

View 2 Replies View Related

Programming :: Comparing Data In Array In FORTRAN?

May 16, 2010

I have two arrays of data, called data1.dat and data2.dat. each contains 60 data. What I want to do is to compare the data in each file and write the counting into bins. It goes like this. First, take the first data in data1.dat file and compare with the 60 data in data2.dat file. If there is any data which is same with the data in data1.dat then it count in bin. The total bins are also 60. Next it goes to the second data in data1.dat and compare with all the 60 data in data2.dat. If there is any data same then it add in second bin. And it repeats to all the data in data1.dat

View 3 Replies View Related

Programming :: Reading A File Of Data In An Array?

Feb 10, 2011

I have two files of data with different numbers of columns and rows. I want to read this two files in two arrays and then compare for example the second column of first data file with the third column of the other text file and if the difference between of two numbers is less than a threshold then the program print the information in the rows which fulfill this condition in the third text file. I have written below program but the problem is that it does not go through all rows of second file.

declare -a a
declare -a b
r=` awk '{n++} END {print n}' second.txt `
echo $r
awk '
{

[Code]....

Actually I have two data files one of them contains 44406 and the other one has 12066 rows and I want to check whether the difference between the components of two specific columns is less than a threshod but I have simplified it here. I had written this code and then I have realized that this code just goes through the number of rows as the same as the first.txt file and ignores the rest. I could not find the problem yet.

View 2 Replies View Related

Fedora :: RAID 1 - How To Create New Array Without Losing Data

Jan 1, 2010

I have a software RAID array using mdraid that consists of two 1.5TB drives that I use for storage, the array is mounted at /Storage. I am running out of space in the array so I ordered two more 1.5TB drives to create a 4 drive RAID 1+0 array which will be 3TB big. My question is how do I create the new array and not lose any data?

The drives and partitions are sdc1, sdd1, and soon to be sde1, sdf1. I currently have 4 RAID arrays (md0,md1,md2,md3). I think I can create the RAID 1+0 array with the two new drives, copy the data from my current array to the new one, remove the old array, then add the two original drives to the new array. But I wanted to ask on here first to make sure my data doesn't go poof.

View 1 Replies View Related

Server :: Recreate Raid-5 Array Without Loosing Data

Dec 11, 2010

I rebuilt a server and am now trying to recover my large data arrays. The server was ubuntu 10.04lts before. I decided to rebuild it with CentOS simply because I am more familiar with it. I had 2 raid-5 arrays on the old server:4 x 1tb -> md0 5 x 2tb -> md1 The newly built server does not know about these arrays yet. How can I reassemble the arrays without loosing my data? I know the data can still be accessed because booting the server with a live-cd mounts and shows the arrays just fine. Should I boot with a live cd and copy the mdadm config file?

View 5 Replies View Related

Programming :: PHP MySQL Array Return Unexpected Data

Nov 8, 2010

I am trying to build an array with the column headers and the data like so:

PHP Code:
function query($query) {
$data = array();
$q = "$query";
$this->log->message("Manual query [$q], returning columns...");
$result = @mysqli_query($this->dbc, $q);
$this->selected_rows = mysqli_num_rows($result);

while($meta = mysqli_fetch_field($result)) {
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
echo "meta [{$meta->name}]"; $data[$meta->name][] = $row[$meta->name]; } }
echo "DATA ["; print_r($data); echo "] <br />";
return $data; }

So I can select the data from the array like so:
PHP Code:
echo $data[col_name][row_num];

However when I dump the array I dont get the data I am expecting:
Code:
running select * from users:
meta [company_name]meta [company_name]
DATA [Array ( [company_name] => Array ( [0] => My company [1] => My details ) ) ]

View 6 Replies View Related

Server :: Recover RAID5 Storage Array DATA Using Xfs_repair?

Jul 5, 2011

I have an Acer Altos EasyStore SATA NAS box that hung, the only way to reboot was to crash the system (unplug it). Upon reboot it was not recognising the hard drives (it wanted to do a destructive reinitialize). Most of the importent data was backed up, however some was overlooked and we'd quite like to get it back. Removing the disks and placing them in a PC with enough SATA bays to cope, and booting with a live linux distribution (System Rescue CD) I can see the 4 drives are not suffering hardware error and that the original partions exist. Using mdadm I can assemble the Arrays without error (seems to be three but the only one I am concerned with is the RAID5 array of about 3TB). /dev/m1p2 mounts as a loopdevice once an offset is entered. In turn this mounts as an XFS parition. However despite df showing the partition almost to be full. ls -l or ls -a on the mount point shows it to be empty!

I got thusfar using a translation from a German language forum, unfortunately I only speak a little German, and the only other English language post on a simlilar matter I found within that site had no replies. The next step was to unmount loop, then run xfs_chack and xfs_repair on the file system. xfs_check returns that there is are a few dir size and offset errors along with link count mismatches. This I would presume normal for a file system that has become slightly corrupted. xfs_repair (version 3.0.3) gets as far as Phase 3 it finds and corrects zerolength entries, offsets on directories and bogus inode numbers. However the final two lines are:

Code:

realloc failed in blkent_append (2671166480 bytes)
zsh: segmentation fault xfs_repair /dev/loop1

A search on the error missing out data size just returns code to generate it, is anybody able to explain what it means? Also remounting hard drive, ls and varients of still do not return anything. Am I missing some thing (root I am logged in with now would have different credentials presumably to root on the NAS box, so how do I get around this)?

View 5 Replies View Related

Software :: Pipeline Data Of Find Command In Array After Processing Contents

Jun 7, 2010

I am searching for a file in a specific folder using the following command and storing it in a log file

find . -maxdepth 2 -type f -name "components.xml" -print | while read obj
do
basename `dirname $obj` >> avail_list.log
done

Here I want to do the following
1. Store each entry after processing in an array variable.
2. Use this array variables as arguments to function calls.

Here my primary objective is to store the entries from 'find' command in an array. So it is ok for me if I am not creating the log file.

View 5 Replies View Related

Programming :: Writing Shell Snip To Import CSV Data Into Bash Array

Jan 5, 2011

I have been trying to write a simple snip of bash shell code to import from 1 to 100 records into a Bash array.

I have a CSV file that is structured like:
record1,item1,item2,item3,item4
record2,item1,item2,item3,item4
record3,item1,item2,item3,item4
record4,item1,item2,item3,item4

And would like to get this data into corresponding arrays as such:
$record1[item1-4]
$record2[item1-4]
$record3[item1-4]
$record4[item1-4]

View 9 Replies View Related

Ubuntu :: Copy Data From 1 Hdd To Another?

Dec 20, 2010

I'm running Ubuntu 10.04 and I'm upgrading to a new hard drive i have an 80GB and I'm going to a 250GB and I need to how can I transfer everything of the 80GB to the 250GB

View 6 Replies View Related

Ubuntu :: Copy Data From 10.04 To Virtual Box

Feb 17, 2011

I want to copy data from my ubuntu 10.04 to Virtual box , which is Windows XP. How can I do it ?

View 3 Replies View Related

Ubuntu :: Copy System Data To Another Machine?

Feb 7, 2011

I am looking for a way to see if it is possible to copy the system state of a system to another system.Is it possible to simply move the folder structure over to another machine, and have it work? Do I need any special partitions for /var, /home, etc?My machine is dying slowly, and I really want the quickest way to migrate the system over to the new system.

View 7 Replies View Related

Ubuntu :: How To Copy And Paste Large Chunks Of Data

Jun 16, 2011

I want to copy about 40GB - to a partiton. There are two hard drives in my box one won't boot but I can aaccess it and mount partitions and I aim to move data from it to a new bootable hard drive. Doing a simple cp copy command may not be the best way to copy and paste such a large chunk? Also I want to backup the data I plan to copy/paste using a USB hard drive to backup. But I could also paste data from the backup to the new drive instead of from old internal hd to new hd. - that's another option.

View 1 Replies View Related

Ubuntu :: Change Permissions To Copy Data From Bootable USB?

Jul 17, 2011

I have two HDDs in computer, one with ntfs and windows on it and second with btrfs. I want to get data on that btrfs disk. I boot with bootable USB stick with ubuntu on it but I found out that I cannot copy anzthing. I dont have permissions. How to change that. I am logged in as nobody here in USB stick, and files are probably locked as mz previous username when I create them.

View 1 Replies View Related

Ubuntu :: Changing Filesystem - Using Partimage To Make Copy Of Data

Feb 22, 2010

I have my / partition on an SSD that I formatted in ext3 but I now realise that, in order to use TRIM, I need to be ext4. Can I use Partimage to make and image of the partition, format it (using GParted) and then restore the image? Basically, do Partimage files survive a filesystem change?

View 1 Replies View Related

General :: CentOS 5.4 - LVM Data Copy To Different Disk

Jan 26, 2010

I've got a CentOS 5.4 box and the following disks connected:
# parted /dev/sda print
Model: ATA WDC WD1600BEKT-0 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 160GB 160GB primary lvm

# parted /dev/sdb print
Model: ATA WDC WD1200BEVT-0 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 120GB 120GB primary ext3 lvm
the OS, data and programs are on /dev/sda.

I'd like to copy the full directories and files to the newly added /dev/sdb wich has, as you can see, less space. Also note that /dev/sda has only about 3.6Gigs uses, so it will no doubt easily go into /dev/sdb. How can I do the full copy, and yet make /dev/sdb bootable just like /dev/sda (just as if it was cloned by Ghost)? I've checked dd, but AFAIK, it needs that both source and target devices be the same in size.

View 1 Replies View Related







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