Link to home
Start Free TrialLog in
Avatar of DrDamnit
DrDamnitFlag for United States of America

asked on

Where did my files go?

I have an Openfiler NAS, which is no longer behaving well with our domain controller. I can log in fine as root via ssh, but cannot log in to any file shares as anyone via samba.

So, I want to can openfiler, and change it to Ubuntu.

I booted up with an Ubuntu 9.10 Desktop live CD, and installed mdadm, and rebuilt the array and mounted it on /mnt/raid.

I can access the disk. that's not a problem. I can get into the RAID array just fine (see screenshot).

However, when I navigate to /mnt/raid/mnt/storage/primary there is a directory (Main) missing.

It is there when I boot back into Openfiler.

How do I get to this via the Ubuntu live CD? My main goal is to use FTP to transfer off all the files that are in that directory to another box so I can reinstall this one.


screenshot.png
Avatar of Pieter Jordaan
Pieter Jordaan
Flag of South Africa image

Openfiler NAS uses logical volumes for partitions, and Ubuntu 9 does not have lvm support.

You will have to boot with a Ubuntu 10 CD to read the logical volume.
The recovery console should pick it up automatically.

If not, post the output of
ls -l /dev/mapper
from the recovery console.

You can just mount any device inside /dev/mapper using a normal mount.
Also be careful mounting the LVM, as it is possible to screw up the raid signature for the LVM I suggest you mount it as read only to not damage the raid or the journal block.
Avatar of DrDamnit

ASKER

OK. I'll change to an Ubuntu 10 live cd and try it out.
Booted up with an Ubuntu 10 live cd, and wasn't given a recovery mode option. It started into the desktop session, and I got just as far as I did before. I can mount the array, but the directory I need is not showing.

I think you are dead on with it being an LVM. How would I mount the LVM via the Ubuntu 10 desktop session?

I used mdadm --auto-detect to find and assemble the raid array. cat /proc/mdstat shows the two RAID volumes....

Use lvscan to scan for Logical Volumes.

lvdisplay to display all the Volumes.

pvdisplay will display all the physical drives assigned to logical volumes.

See if you pick up any drives or lv's
ASKER CERTIFIED SOLUTION
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial