Attach existing qnap disk without formatting

Post your questions about myQNAPcloud service here.
Post Reply
alexstosic
New here
Posts: 8
Joined: Mon Dec 01, 2014 7:24 pm

Attach existing qnap disk without formatting

Post by alexstosic » Thu Oct 24, 2019 4:31 am

I wanted to restart from scratch
I've installed a new hdd and setup the nas as new.

I want now to add the old disk and copy over all files to the new drive
When adding a pool and a volume, qnap ask to format the drive.

I read somewhere add without format can be done vial shell/cli but can't find any info

TS-253 Pro dual slot, new disk is now system drive in bay 1
old system drive with data in it is now in bay 2

alexstosic
New here
Posts: 8
Joined: Mon Dec 01, 2014 7:24 pm

Re: Attach existing qnap disk without formatting

Post by alexstosic » Thu Oct 24, 2019 4:35 am

I can see the drive

Disk /dev/sdc: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 267350 2147483647+ ee EFI GPT

alexstosic
New here
Posts: 8
Joined: Mon Dec 01, 2014 7:24 pm

Re: Attach existing qnap disk without formatting

Post by alexstosic » Thu Oct 24, 2019 4:37 am

[/share] # getcfg system version
4.4.1
[/share] # df -h
Filesystem Size Used Available Use% Mounted on
none 300.0M 255.9M 44.1M 85% /
devtmpfs 3.8G 12.0K 3.8G 0% /dev
tmpfs 64.0M 420.0K 63.6M 1% /tmp
tmpfs 3.8G 132.0K 3.8G 0% /dev/shm
tmpfs 16.0M 0 16.0M 0% /share
tmpfs 16.0M 0 16.0M 0% /mnt/snapshot/export
/dev/md9 493.5M 124.6M 368.8M 25% /mnt/HDA_ROOT
cgroup_root 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/md13 417.0M 402.9M 14.1M 97% /mnt/ext
tmpfs 64.0M 3.1M 60.9M 5% /samba
/dev/mapper/cachedev1
3.3T 128.0M 3.3T 0% /share/CACHEDEV1_DATA
tmpfs 16.0M 116.0K 15.9M 1% /share/CACHEDEV1_DATA/.samba/lock/msg.lock
tmpfs 16.0M 0 16.0M 0% /mnt/ext/opt/samba/private/msg.sock
[/share] # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md1 : active raid1 sda3[0]
3897063616 blocks super 1.0 [1/1]

md322 : active raid1 sdc5[2] sda5[0]
7235136 blocks super 1.0 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk

md256 : active raid1 sdc2[2] sda2[0]
530112 blocks super 1.0 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk

md13 : active raid1 sdc4[32] sda4[0]
458880 blocks super 1.0 [32/2] [UU______________________________]
bitmap: 1/1 pages [4KB], 65536KB chunk

md9 : active raid1 sdc1[32] sda1[0]
530048 blocks super 1.0 [32/2] [UU______________________________]
bitmap: 1/1 pages [4KB], 65536KB chunk

unused devices: <none>
[/share] # hdparm -i /dev/sd[a-h] 2>/dev/null | grep Model
Model=WDC WD40EFRX-68WT0N0 , FwRev=82.00A82, SerialNo= WD-WCC4E0JRF2U9
Model=WDC WD40EFRX-68WT0N0 , FwRev=82.00A82, SerialNo= WD-WCC4EFTP6ESU
[/share] #

dolbyman
Guru
Posts: 15245
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Attach existing qnap disk without formatting

Post by dolbyman » Thu Oct 24, 2019 4:42 am

that's exactly why you need external backups (and for other disasters)

see if you can recreate the old shares (under new names) and point them to the old volume (if it is mounted)

also a NAS doesn't need spontaneous reinstall .. any reason for the reinstall ? malware ?

alexstosic
New here
Posts: 8
Joined: Mon Dec 01, 2014 7:24 pm

Re: Attach existing qnap disk without formatting

Post by alexstosic » Thu Oct 24, 2019 1:55 pm

Old disk is still bootable but kept crashing regularly (at least every week) that's why I wanted to start fresh,
I need to copy over to the new disk, without having to have a third disk/device to perform the migration.

alexstosic
New here
Posts: 8
Joined: Mon Dec 01, 2014 7:24 pm

Re: Attach existing qnap disk without formatting

Post by alexstosic » Mon Oct 28, 2019 5:19 pm

QNAP support suggest to mount the hdd on an another PC and move it from there, I'll try soon and let you know.

alexstosic
New here
Posts: 8
Joined: Mon Dec 01, 2014 7:24 pm

Re: Attach existing qnap disk without formatting

Post by alexstosic » Mon Nov 04, 2019 6:07 pm

currently recovering with r-linux (although the disk and partition was perfectly fine)
4TB will probably take a week

Post Reply

Return to “myQNAPcloud service”