Mounting NAS-200 LVM in UBUNTU 14.04LTS

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
rethieruse
Posts: 1
Joined: 14 Oct 2014, 21:38

Mounting NAS-200 LVM in UBUNTU 14.04LTS

#1 Post by rethieruse »

I’m new to Linux (I can get around in it) and would like some help if you don’t mind. I have been working with Linux for several years to some extent so I can get around some with the GUI, DASH and Terminal etc.

Here is my story and I’m sticking with it! LOL! I have two drives that were JBOD in an NAS-200 drive. Both work fine and both are in a UBUNTU 14.04 system and your software TestDisk sees both drives as well as the HDD used for the operating system. The Fdisk –ls output is shown below.
XXXXXXXXXXXX@LENOVO-XXXX:~$ sudo fdisk -ls

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044521

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 625141759 312320001 5 Extended
/dev/sda5 501760 625141759 312320000 8e Linux LVM

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x77ea33fe

Device Boot Start End Blocks Id System
/dev/sdc1 63 976045139 488022538+ 8e Linux LVM
/dev/sdc2 976045140 976527089 240975 8e Linux LVM
/dev/sdc3 976527090 976768064 120487+ 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0d1a028c

Device Boot Start End Blocks Id System
/dev/sdb1 63 976045139 488022538+ 8e Linux LVM
/dev/sdb2 976045140 976527089 240975 8e Linux LVM
/dev/sdb3 976527090 976768064 120487+ 82 Linux swap / Solaris

Disk /dev/mapper/ubuntu--vg-root: 316.6 GB, 316586065920 bytes
255 heads, 63 sectors/track, 38489 cylinders, total 618332160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu--vg-swap_1: 3208 MB, 3208642560 bytes
255 heads, 63 sectors/track, 390 cylinders, total 6266880 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table
Your program TestDisk shows the following:
TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
>Disk /dev/sda - 320 GB / 298 GiB - Hitachi HDT725032VLA380
Disk /dev/sdb - 500 GB / 465 GiB - HITACHI HDS725050KLA360
Disk /dev/sdc - 500 GB / 465 GiB - HITACHI HDS725050KLA360
Disk /dev/mapper/ubuntu--vg-root - 316 GB / 294 GiB - Hitachi HDT725032VLA380
Disk /dev/mapper/ubuntu--vg-swap_1 - 3208 MB / 3060 MiB - Hitachi HDT725032VLA380
Disk /dev/dm-0 - 316 GB / 294 GiB - Hitachi HDT725032VLA380
Disk /dev/dm-1 - 3208 MB / 3060 MiB - Hitachi HDT725032VLA380
My interest is to make an LVM out of these existing two 500GB drives so I can retrieve the information from them. Is this possible and could you point me to a link or step by step to do this?

Question is there a preference as to which drive is to be first in line when making up the LVM? Is there is a preference when it comes to LVM's as to which drive comes first? I do know which drive is which by using Disks which gives me the serial numbers of each drive so it comes down to not understanding fully the workings of the LVM’s and if there is a sequence each drive is to be placed to attach to the other drive to make the Logical Volume?
Another thing noted is that the two 500GB drives don’t show as active according to Fdisk so I guess neither are mapped so that a Logical Volume can’t be made up. Disks shows both HDD as /dev/sdb1 and /dev/sdc1 respectively both with a partition type as Linux LVM and Contents show as LVM2 Physical Volume (LVM2 001) Disks goes on to show a graphic representation of Partition 1 with 500 GB LVM2 PV, Partition 2 with 247 MB LVM2, Swap Partition 3 with 123 MB Swap (Version 2 Non Active), Free Space 2.6MB. I believe that TestDisk also allows naming of a group is this what is needed to put the two drives virtually together?

I guess I should have asked if making a LV out of these two drives both out of a Linux based NAS-200 by Cysco originally Lynksys is even possible? Your help in this matter is greatly appreciated.

Best Regards,
Bob

Locked