× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Mount ReadyNAS NV+ RAID disks in Linux - Input/Output error

rexpo
Initiate

Mount ReadyNAS NV+ RAID disks in Linux - Input/Output error

Hi all,

I know this topic has been covered many times in these forums and other places on the net, but I am still having trouble accessing the actual files on the NAS disks. I have come frustratingly close to being access the files, but not close enough! I'd like to know why my directory listing of the mounted raid looks like this?:

root@ubuntu:/mnt# ls -lasc
ls: cannot access backup: Input/output error
ls: cannot access media: Input/output error
ls: cannot access home: Input/output error
ls: cannot access .timemachine: Input/output error
ls: cannot access testshare: Input/output error
total 68
16 drwxrwxrwx 8 root root 16384 2011-11-02 15:24 .
4 drwxr-xr-x 22 root root 4096 2011-11-02 20:40 ..
16 -rw------- 1 root root 7168 2011-11-02 15:28 aquota.group
16 -rw------- 1 root root 7168 2011-11-02 15:28 aquota.user
? -????????? ? ? ? ? ? backup
? -????????? ? ? ? ? ? home
16 drwx------ 2 root root 16384 2011-11-01 19:57 lost+found
? -????????? ? ? ? ? ? media
? -????????? ? ? ? ? ? testshare
? -????????? ? ? ? ? ? .timemachine
root@ubuntu:/mnt#


and what do I need to do to access the files in the folder "testshare"?


Some background info:

I have two identical ReadyNAS NV+ with four 750GB drives in each of them, using x-raid (giving ~2TB storage). One of them is totally messed up, and one is just fine. The working one is basically empty - it only has 8 jpeg images stored in a share called testshare. My thinking is that I need to prove that I can recover 8 lousy jpegs from the one that is working before I will have any chance of recovering thousands of precious jpegs from the trashed one 😞

My test setup:

MacBook Pro running VirtualBox, with a VM running ubuntu 10.04. lvm2 and fuseext2 are installed. I have created four virtual hard disks, each 698.64 GB, and attached them to the VM. I have created another virtual disk, which I use for accessing a physical hard drive attached to the host via a USB SATA adapter. I have cloned, one-by-one, each of the four disks from the working NV+, though only the first 5 GB, assuming that this should be more than enough data from each disk to be able to access the less than 20 MB of files on the RAID volume.

For cloning from the physical disk (always /dev/sdf) to each of the raid disks (/dev/sdb, sdc, sdd, sde) I used:

dd if=/dev/sdf of=/dev/sdb bs=512 conv=noerror,sync count=10485760

Here is the result of mounting and trying to access the raid volume:

root@ubuntu:~# pvscan
PV /dev/sdb5 VG c lvm2 [696.41 GiB / 0 free]
PV /dev/sdc5 VG c lvm2 [696.41 GiB / 0 free]
PV /dev/sdd5 VG c lvm2 [696.41 GiB / 5.00 GiB free]
Total: 3 [2.04 TiB] / in use: 3 [2.04 TiB] / in no VG: 0 [0 ]
root@ubuntu:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "c" using metadata type lvm2
root@ubuntu:~# vgchange -a y c
1 logical volume(s) in volume group "c" now active
root@ubuntu:~# lvscan
ACTIVE '/dev/c/c' [2.04 TiB] inherit
root@ubuntu:~# fuseext2 -o ro /dev/c/c /mnt
root@ubuntu:~# cd /mnt
root@ubuntu:/mnt# ls -lasc
ls: cannot access backup: Input/output error
ls: cannot access media: Input/output error
ls: cannot access home: Input/output error
ls: cannot access .timemachine: Input/output error
ls: cannot access testshare: Input/output error
total 68
16 drwxrwxrwx 8 root root 16384 2011-11-02 15:24 .
4 drwxr-xr-x 22 root root 4096 2011-11-02 20:40 ..
16 -rw------- 1 root root 7168 2011-11-02 15:28 aquota.group
16 -rw------- 1 root root 7168 2011-11-02 15:28 aquota.user
? -????????? ? ? ? ? ? backup
? -????????? ? ? ? ? ? home
16 drwx------ 2 root root 16384 2011-11-01 19:57 lost+found
? -????????? ? ? ? ? ? media
? -????????? ? ? ? ? ? testshare
? -????????? ? ? ? ? ? .timemachine
root@ubuntu:/mnt#


So close! :shock: What am I missing here?

Here is a list of my drives:

root@ubuntu:~# fdisk -lu

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 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: 0x0002658d

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 40105983 20051968 83 Linux
/dev/sda2 40108030 41940991 916481 5 Extended
/dev/sda5 40108032 41940991 916480 82 Linux swap / Solaris

Disk /dev/sdb: 750.2 GB, 750158987776 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465154273 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: 0xb443b91b

Device Boot Start End Blocks Id System
/dev/sdb1 2 4096001 2048000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 4096002 4608001 256000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sdb3 4608002 1465112305 730252152 5 Extended
/dev/sdb5 4608003 1465112305 730252151+ 8e Linux LVM

Disk /dev/sdc: 750.2 GB, 750158987776 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465154273 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: 0xb443b6e1

Device Boot Start End Blocks Id System
/dev/sdc1 2 4096001 2048000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdc2 4096002 4608001 256000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sdc3 4608002 1465112305 730252152 5 Extended
/dev/sdc5 4608003 1465112305 730252151+ 8e Linux LVM

Disk /dev/sdd: 750.2 GB, 750158987776 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465154273 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: 0xb443b6d3

Device Boot Start End Blocks Id System
/dev/sdd1 2 4096001 2048000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdd2 4096002 4608001 256000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sdd3 4608002 1465112305 730252152 5 Extended
/dev/sdd5 4608003 1465112305 730252151+ 8e Linux LVM

Disk /dev/sde: 750.2 GB, 750158987776 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465154273 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/sde doesn't contain a valid partition table
root@ubuntu:~#


Here is the xraid_config.log from the working NV+:

VERSION/ID::superblock=(0.1.0),ID=a201e221.00000000.00000000.00000000,create_time=4eb03fb5
RAID_INFO::disks_total=4,raid_disks=4,parity_disk=3,disks_online=4,disks_working=4,disks_failed=0,spare_disk=0,base_disk=0,size=1465128688,update_time=00000000,state=0,luns=2,extcmd=1,expandable_bitmap=0x0,lsize=1465128686,drive_present=0xf
LOGICAL_DRIVE:0:begin_sector=2,sectors=4096000,raid_level=1,status=redundant,initialized=1,dmap=f
LOGICAL_DRIVE:1:begin_sector=4096002,sectors=1461032686,raid_level=X,status=redundant,initialized=1,dmap=f
PHYSICAL_DRIVE:0:number=0,device=hdc,major=22,minor=0,raid_id=0,state=online,present=1,size=1465128688,r_model=ST3750640NS,r_size=1465128688,r_fw=3.AEG
PHYSICAL_DRIVE:1:number=1,device=hde,major=33,minor=0,raid_id=1,state=online,present=1,size=1465128688,r_model=ST3750640NS,r_size=1465128688,r_fw=3.AEG
PHYSICAL_DRIVE:2:number=2,device=hdg,major=34,minor=0,raid_id=2,state=online,present=1,size=1465128688,r_model=ST3750640NS,r_size=1465128688,r_fw=3.AEG
PHYSICAL_DRIVE:3:number=3,device=hdi,major=56,minor=0,raid_id=3,state=online,present=1,size=1465128688,r_model=ST3750640NS,r_size=1465128688,r_fw=3.AEG
RUN_PARAMETERS::raid_running=1,last_word=ok,interface_start_at=1,fake=0
RAID_REBUILD::sync=0,logical=0,parity=3,sectors=0,total=4294967295,source=f,total_drives=4,auto_sync=1
RAID_P_CHECK::chck=0,current_lun=0,total_luns=2,raid_level=0,err=0,current_sector=0,total_sectors=0,report_err=1
RAID_P_INIT::initialized_bitmap=0xf,initialize_error_bitmap=0x0,initializing_bitmap=0x0,current_sector=0,total_sector=0


And the partition.log from the working NV+:

Disk /dev/hdi doesn't contain a valid partition table

Disk /dev/hdc: 750.1 GB, 750145888256 bytes
255 heads, 63 sectors/track, 91200 cylinders, total 1465128688 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xb443b91b

Device Boot Start End Blocks Id System
/dev/hdc1 2 4096001 2048000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hdc2 4096002 4608001 256000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/hdc3 4608002 1465112305 730252152 5 Extended
/dev/hdc5 4608003 1465112305 730252151+ 8e Linux LVM

Disk /dev/hde: 750.1 GB, 750145888256 bytes
255 heads, 63 sectors/track, 91200 cylinders, total 1465128688 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xb443b6e1

Device Boot Start End Blocks Id System
/dev/hde1 2 4096001 2048000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hde2 4096002 4608001 256000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/hde3 4608002 1465112305 730252152 5 Extended
/dev/hde5 4608003 1465112305 730252151+ 8e Linux LVM

Disk /dev/hdg: 750.1 GB, 750145888256 bytes
255 heads, 63 sectors/track, 91200 cylinders, total 1465128688 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xb443b6d3

Device Boot Start End Blocks Id System
/dev/hdg1 2 4096001 2048000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hdg2 4096002 4608001 256000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/hdg3 4608002 1465112305 730252152 5 Extended
/dev/hdg5 4608003 1465112305 730252151+ 8e Linux LVM

Disk /dev/hdi: 750.1 GB, 750145888256 bytes
255 heads, 63 sectors/track, 91200 cylinders, total 1465128688 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000


Hope you guys can help!

-Rexpo
Message 1 of 2
rexpo
Initiate

Re: Mount ReadyNAS NV+ RAID disks in Linux - Input/Output er

5GB isn't enough data read from the disks to be able to get at the filesystems properly. I tried again with 10GB and it worked, though I believe that I got lucky - seems like shortcuts aren't such a good idea after all and that I need to dd the whole disks into my test VM.

Mystery solved.

-Rexpo
Message 2 of 2
Top Contributors
Discussion stats
  • 1 reply
  • 1974 views
  • 1 kudo
  • 1 in conversation
Announcements