at first my situation, then a few questions which hopefully someone can answer me
I have a TS-469L (firmware 4.1.4 20150804) with three harddrives (2x4TB, 1x2.5TB) and about 8TB used disk space. Each disk has its own SingleDrive storage pool. I configured no RAID.
Now I like to put four new 6TB drives into the NAS and span a RAID 5 over these new drives and to copy my data to the new RAID.
I have an eSATA case and USB docking station and thought I could attach the old drives externally to copy the data to the freshly built RAID 5. After that I like to format the old drives for external backup usage, so I just need to get this working one time to copy the data.
For testing purposes I removed one drive and connected it externally (USB and eSATA didn't make a difference).
Unfortunately the NAS does not detect the volume of the external drive. It just detects a few (strange) partitions, some of them not mountable, some others have an ext3 filesystem which is obviously for internal usage.
I am quite used to Linux (but no storage/RAID expert) and do not fear the command line, so I tried my luck to get the external volume mounted manually - but without luck
Now my questions:
1) Is there a better way of accomplishing my task?
2) How can I mount a QNAP volume from an external disk?
For the second question, that's how far I got up to now:
Obviously QNAP uses md software raid in conjunction with lvm.
My drive is /dev/sdc and from taking a look at the other active volumes I saw that the 3rd partition is the interesting one.
I got the RAID assembled and mdadm reports this:
Code: Select all
% mdadm --assemble /dev/md42 /dev/sdc3
% mdadm -D /dev/md42
/dev/md42:
Version : 1.0
Creation Time : Sat Aug 16 12:44:22 2014
Raid Level : raid1
Array Size : 2431935616 (2319.27 GiB 2490.30 GB)
Used Dev Size : 2431935616 (2319.27 GiB 2490.30 GB)
Raid Devices : 1
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Mon Aug 10 12:17:00 2015
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : 3
UUID : 33166a62:1fec0f43:1b2d877f:3a0fbc11
Events : 2
Number Major Minor RaidDevice State
0 8 35 0 active sync /dev/sdc3
The /dev/sdc3 partition itself can't be mounted directly because lvm manages the volumes. With help from searching the Internet I found some information to get the volumes working and tried this:
Code: Select all
% vgscan --mknodes
% lvchange -a y /dev/vg3/lv3
% lvdisplay /dev/vg3
--- Logical volume ---
LV Path /dev/vg3/lv546
LV Name lv546
VG Name vg3
LV UUID NVyN2k-kdS2-Y2ro-f7S3-uNpR-B5FM-snwIPK
LV Write Access read/write
LV Creation host, time barrel, 2014-08-16 12:44:25 +0200
LV Status NOT available
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors 4096
--- Logical volume ---
LV Name tp3
VG Name vg3
LV UUID kADvrd-WEz2-a2fm-Kx3x-q9pb-8T2L-5mEJyp
LV Write Access read/write
LV Creation host, time barrel, 2014-08-16 12:44:31 +0200
LV Pool transaction ID 1
LV Pool metadata tp3_tmeta
LV Pool data tp3_tdata
LV Pool chunk size 1.00 MiB
LV Zero new blocks yes
LV Status NOT available
LV Size 2.23 TiB
Allocated pool chunks 0
Current LE 584518
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/vg3/lv3
LV Name lv3
VG Name vg3
LV UUID zFDh8M-HY6Y-3e0w-4708-ghte-GCeW-1kfcUy
LV Write Access read/write
LV Creation host, time barrel, 2014-08-16 12:44:33 +0200
LV Pool name tp3
LV Status available
# open 0
LV Size 2.23 TiB
Mapped size 100.00%
Mapped sectors 4784168960
Current LE 584005
Segments 1
Allocation inherit
Read ahead sectors 4096
Block device 253:15
But I couldn't mount it:
Code: Select all
% mkdir -p /mnt/lvm
% dmesg -c
% mount -o ro /dev/vg3/lv3 /mnt/lvm
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg3-lv3,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
% dmesg
[ 5880.950289] EXT3-fs (dm-15): error: couldn't mount because of unsupported optional features (2c0)
I appreciate any help and can provide more information if you need it!
Thanks!