LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-14-2017, 12:12 PM   #1
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 116

Rep: Reputation: 15
Recover Partition table on a virtual DISK using TestDisk, is it possible ?


Hi,

On one of the Servers, I have a 50TB Virtual Disk which is a RAID6. I use LSI megaRAID.

The server for some reason failed and the Disks were showing foreign and not importable.

After clearing the Foreign Configuration, I see all the disks are online.

After googling, I did recreate the RAID6 in the same order of disks as it was before.

Though RAID was setup, no partitions are seen.

This VD has 10 XFS partitions. Though TestDisk does show the partitions when I analyze, I am not sure it is showing the correct partitions.

If I select one of the partitions and select P on it, it can not list and I get a message it is not supported.

Server is running CentOS 6.4

TestDisk 7.0,

Does it support XFS partitions ?

Regards,

A
 
Old 03-14-2017, 02:52 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I believe that support for XFS in version 7.0 is limited to finding a lost partition, and there is no ability to list or copy files.
 
Old 03-14-2017, 03:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
One post a while back suggested that photorec could attempt this.

I've never tried it.


Never tried this either. https://www.cnwrecovery.com/html/undelete_xfs.html
 
Old 03-14-2017, 04:41 PM   #4
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 116

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the Replies. Even restoring partition table with XFS is limited ?

Regards,

Athreya
 
Old 03-14-2017, 05:14 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Finding the XFS header and extracting the size from it is all that's necessary to make a partition table entry. That's a lot simpler than understanding the filesystem structure thoroughly enough to recover files. Even the documentation for release 7.1 of TestDisk makes no mention of any support beyond partition recovery.

As for PhotoRec, the most telling comment I found was, "You can try PhotoRec but usually it doesn't work with big files on XFS."

FWIW, I looked at all the git commit messages for TestDisk/PhotoRec since the 7.0 release and found no mention of XFS whatsoever.

Last edited by rknichols; 03-14-2017 at 05:36 PM. Reason: add "FWIW, ..."
 
1 members found this post helpful.
Old 03-14-2017, 06:28 PM   #6
coltree
Member
 
Registered: Nov 2003
Location: Jacobs Well, Queensland AU
Distribution: OpenBSD
Posts: 102
Blog Entries: 1

Rep: Reputation: 34
it's virtually impossible
 
1 members found this post helpful.
Old 04-04-2017, 11:50 AM   #7
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 116

Original Poster
Rep: Reputation: 15
Since there are no other options to look, please consider this Closed
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto recreating a partition table in a virtual disk? theosys Linux - Virtualization and Cloud 1 03-15-2015 12:06 PM
Recovering partition table using TestDisk and sfdisk julkwiec Linux - Hardware 2 07-17-2010 03:58 AM
Using testdisk to recover a partition Mark_in_Hollywood Linux - Newbie 6 04-18-2008 07:54 PM
Using testdisk to recover deleted lvm2 partition sstendal Linux - General 2 04-02-2008 09:30 AM
testdisk can't fix my partition table :( dmedhora Linux - General 7 11-28-2007 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration