Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My question is the RAID6's file system has the same recovery procedure as any file system. The problem is i have to recover data from a partially formatted RAID6's file system.
Last edited by Tahir Saleh; 03-13-2009 at 11:15 AM.
Yes, is this a software or hardwaer RAID? How many drives are in the RAID? Can you still access the data? What is telling you that there is an error?
Version of kernel and Distro info would be nice too.
My question is the RAID6's file system has the same recovery procedure as any file system. The problem is i have to recover data from a partially formatted RAID6's file system.
I'm really not quite sure what you're asking exactly.
Data recovery on a RAID drive functions generally exactly like data recovery on a non-RAID drive.
You can't recover all the data from a single drive unless you're doing mirroring.
What do you mean "partially formatted"? Did you start formatting the file system and stop half way through because you picked the wrong device?
If you destroyed a single disk in the array (say by formatting /dev/sda3 directly) you might be able to remove that disk and put a bank one back.
If you actually formatted the array directly... you're more or a less screwed unless your data can be recovered with something like ext3grep, foremost, or tsk (or whatever tools are applicable for your fs).
The situation is that the LVM2 was made on a machine. OS specification is as follows:
Distro = RHEL4
Kernel = 2.6.9-5.ELsmp
Now what has happened is that eight hardware RAID6 disk four (/dev/sda,/dev/sdb,/dev/sdc, /dev/sdd) on one side and four on the other side (/dev/sde,/dev/sdf,/dev/sdg, /dev/sdh) were combined to form an LVM2 partitions such that each side were made to be /dev/vg01/lvol0 and /dev/vg02/lvol0 by the commands:
where /var/export1 and /var/export2 are directories created with mkdir command.
Problem:
The device /dev/sda has accidentally been partially formatted i.e. I started formatting the file system of device /dev/sda and stopped half way through because I had picked the wrong device. It was approximately 15% formatted. Destro did not boot after that.
Progress so Far:
Destro was recovered by commenting the entries from /etc/fstab.
By removing that disk and putting a blank one back will to it i.e. will it recover the data. Can LVM be recovered.
Regards.
Last edited by Tahir Saleh; 03-14-2009 at 08:38 AM.
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731
Rep:
Hi,
i am already not sure if i understand you correctly.
You formatted one of the underlying hardware RAID disks? This means one of your LVM disks is dead. LVM works as long as all underlying disks are available and have existing LVM information. In your case, there seems to be no useful information on your disks /dev/sda, what means LVM is unable to create the VG.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.