Add drive 1 to the volume failed

Questions about SNMP, Power, System, Logs, disk, & RAID.
danno321
Know my way around
Posts: 179
Joined: Fri Aug 07, 2009 1:36 am

Add drive 1 to the volume failed

Post by danno321 »

(submitted a tech ticket on this Sunday but have not received even an acknowledgment yet so posting here though this is not a new problem based on other posts.)

I have TS-239P with Seagate ST3100528AS drives x 2. Slot one had CC34 firmware drive and slot to is at CC38; RAID 1. I have to replace drive 1 as it failed. The new drive is at CC49 and tests fine under Windows. When I try to add it to the TS239, it recognizes the drive properly and as GOOD but then fails to add it to the RAID 1 Volume throwing the error : "Add drive 1 to the volume failed". I have rebooted and replugged to no avail. Anyone help me here? TIA
TS-251A 2017 (previously TS-239 Pro 2009).
danno321
Know my way around
Posts: 179
Joined: Fri Aug 07, 2009 1:36 am

Re: Add drive 1 to the volume failed

Post by danno321 »

Ran the suggested commands and output follows. It is the disk in SLOT 1 that is not being added to RAID1 Volume. Looks like '/dev/sda' is disk1 that needs to be added but it is NTFS file system so I need to format it before I try '# mdadm --add /dev/md0 /dev/sda3 ? What is the format command? Thanks



[~] # fdisk -ul

Disk /dev/sdx: 128 MB, 128057344 bytes
8 heads, 32 sectors/track, 977 cylinders, total 250112 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdx1 32 2047 1008 83 Linux
/dev/sdx2 2048 112639 55296 83 Linux
/dev/sdx3 112640 223231 55296 83 Linux
/dev/sdx4 223232 250111 13440 5 Extended
/dev/sdx5 223264 233727 5232 83 Linux
/dev/sdx6 233760 250111 8176 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 8 1060289 530141 83 Linux
/dev/sdb2 1060296 2120579 530142 82 Linux swap / Solaris
/dev/sdb3 2120584 1952507969 975193693 83 Linux
/dev/sdb4 1952507976 1953503999 498012 83 Linux

Disk /dev/md9: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders, total 1060096 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/md2: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders, total 1060096 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/md0: 998.5 GB, 998598246400 bytes
2 heads, 4 sectors/track, 243798400 cylinders, total 1950387200 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
16 heads, 63 sectors/track, 1938021 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 63 1953522143 976761040+ 7 HPFS/NTFS
[~] #



[~] # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid1 sdb3[1]
975193600 blocks [2/1] [_U]
bitmap: 137/233 pages [548KB], 2048KB chunk

md2 : active raid1 sdb2[0]
530048 blocks [2/1] [U_]

md13 : active raid1 sdb4[1]
458880 blocks [2/1] [_U]
bitmap: 41/57 pages [164KB], 4KB chunk

md9 : active raid1 sda1[0] sdb1[1]
530048 blocks [2/2] [UU]
bitmap: 0/65 pages [0KB], 4KB chunk

unused devices: <none>
TS-251A 2017 (previously TS-239 Pro 2009).
danno321
Know my way around
Posts: 179
Joined: Fri Aug 07, 2009 1:36 am

Re: Add drive 1 to the volume failed

Post by danno321 »

Can anyone offer me some guidance on getting HDD 1 to build in the RAID 1 volume? I am guessing that the QNAP has some automated scripts to partition new drives for RAID volumes; if so, I am at a dead end with no help. :(
TS-251A 2017 (previously TS-239 Pro 2009).
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Add drive 1 to the volume failed

Post by schumaku »

Interesting - the NAS is supposed to apply the partitions automatically. Curious on how you managed the the NAS keeping this single NTFS partiitons, however. Here what I would give a try:

1. Shutdown NAS
2. Remove HDD 1
3. Boot NAS, it will end in the similar status.
4. Hot plug the HDD 1
5. Run the same checks again
danno321
Know my way around
Posts: 179
Joined: Fri Aug 07, 2009 1:36 am

Re: Add drive 1 to the volume failed

Post by danno321 »

The NTFS file system got on there because I tested in under Windows XP to make sure it worked, copying 800MB to it and running Seatools on it.

I followed the steps you outlined and received the error "[Mirror Disk Volume: Drive 1 2] Add drive 1 to the volume failed." Below is the two commands output again; looks the same. Thanks for help so far. - D


[~] # fdisk -ul

Disk /dev/sdx: 128 MB, 128057344 bytes
8 heads, 32 sectors/track, 977 cylinders, total 250112 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdx1 32 2047 1008 83 Linux
/dev/sdx2 2048 112639 55296 83 Linux
/dev/sdx3 112640 223231 55296 83 Linux
/dev/sdx4 223232 250111 13440 5 Extended
/dev/sdx5 223264 233727 5232 83 Linux
/dev/sdx6 233760 250111 8176 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 8 1060289 530141 83 Linux
/dev/sdb2 1060296 2120579 530142 82 Linux swap / Solaris
/dev/sdb3 2120584 1952507969 975193693 83 Linux
/dev/sdb4 1952507976 1953503999 498012 83 Linux

Disk /dev/md9: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders, total 1060096 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/md2: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders, total 1060096 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/md0: 998.5 GB, 998598246400 bytes
2 heads, 4 sectors/track, 243798400 cylinders, total 1950387200 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
16 heads, 63 sectors/track, 1938021 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 63 1953522143 976761040+ 7 HPFS/NTFS


[~] # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid1 sdb3[1]
975193600 blocks [2/1] [_U]
bitmap: 139/233 pages [556KB], 2048KB chunk

md2 : active raid1 sdb2[0]
530048 blocks [2/1] [U_]

md13 : active raid1 sdb4[1]
458880 blocks [2/1] [_U]
bitmap: 41/57 pages [164KB], 4KB chunk

md9 : active raid1 sda1[0] sdb1[1]
530048 blocks [2/2] [UU]
bitmap: 0/65 pages [0KB], 4KB chunk

unused devices: <none>
TS-251A 2017 (previously TS-239 Pro 2009).
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Add drive 1 to the volume failed

Post by schumaku »

No clue on why the NAS does not remove this partition.

[~] # fdisk /dev/sda
...
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

(check if we have the correct disk with the single one partition)
Command (m for help): p
...
Command (m for help): d
Partition number (1-4): 1

(now let's validate:)
Command (m for help): p

(commit the change, write the partiton table)
Command (m for help): p

(write the changed partition table)
Command (m for help): w

Check if the NAS picks up and is partitioning the drive now (fdisk -ul). If not, remove the disk (wait fo the beep of the confirmation...) and replug.

Alternate process: Remove the drive from the NAS, and remove the partition on your Windows system.
danno321
Know my way around
Posts: 179
Joined: Fri Aug 07, 2009 1:36 am

Re: Add drive 1 to the volume failed

Post by danno321 »

Using the fdisk commands I removed the NTFS single partition saved, powered down, removed drive, booted, hot-plugged drive. The fdisk and mdstat ouptput follow at end of this post. Good news: the qnap is rebuilding the RAID volume! Thanks a bunch 'schumaku'. - D

[~] # fdisk -ul

Disk /dev/sdx: 128 MB, 128057344 bytes
8 heads, 32 sectors/track, 977 cylinders, total 250112 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdx1 32 2047 1008 83 Linux
/dev/sdx2 2048 112639 55296 83 Linux
/dev/sdx3 112640 223231 55296 83 Linux
/dev/sdx4 223232 250111 13440 5 Extended
/dev/sdx5 223264 233727 5232 83 Linux
/dev/sdx6 233760 250111 8176 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 8 1060289 530141 83 Linux
/dev/sdb2 1060296 2120579 530142 82 Linux swap / Solaris
/dev/sdb3 2120584 1952507969 975193693 83 Linux
/dev/sdb4 1952507976 1953503999 498012 83 Linux

Disk /dev/md9: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders, total 1060096 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/md2: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders, total 1060096 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/md0: 998.5 GB, 998598246400 bytes
2 heads, 4 sectors/track, 243798400 cylinders, total 1950387200 sectors
Units = sectors of 1 * 512 = 512 bytes

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

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 40 1060289 530125 83 Linux
/dev/sda2 1060296 2120579 530142 83 Linux
/dev/sda3 2120584 1952507969 975193693 83 Linux
/dev/sda4 1952507976 1953503999 498012 83 Linux

Disk /dev/sda4: 469 MB, 469893120 bytes
2 heads, 4 sectors/track, 114720 cylinders, total 917760 sectors
Units = sectors of 1 * 512 = 512 bytes

Disk /dev/sda4 doesn't contain a valid partition table
[~] # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid1 sda3[2] sdb3[1]
975193600 blocks [2/1] [_U]
[=>...................] recovery = 9.2% (90303872/975193600) finish=213.2min speed=69158K/sec
bitmap: 130/233 pages [520KB], 2048KB chunk

md2 : active raid1 sda2[1] sdb2[0]
530048 blocks [2/2] [UU]

md13 : active raid1 sda4[0] sdb4[1]
458880 blocks [2/2] [UU]
bitmap: 0/57 pages [0KB], 4KB chunk

md9 : active raid1 sda1[0] sdb1[1]
530048 blocks [2/2] [UU]
bitmap: 4/65 pages [16KB], 4KB chunk

unused devices: <none>
TS-251A 2017 (previously TS-239 Pro 2009).
DreamensioN
Starting out
Posts: 13
Joined: Sat Mar 19, 2011 9:46 am

Re: Add drive 1 to the volume failed

Post by DreamensioN »

I just wanted to say thanks to schumaku for this post. I have just gone through the process of rebuilding my RAID5 array, one disk at a time.
I got to the very last disk to do (which was DISK1), and the QNAP would fail to recognise that I put in a new drive.

It wasn't until I found this post, and figured out it was because I had an NTFS partition on it, which was causing it not to be picked up by the QNAP. I shutdown the QNAP, plugged the drive back into my Windows desktop PC, deleted the partition, plugged the drive back into the QNAP - and presto, it has picked it up and is rebuilding the array.

For what it's worth to anybody else who has the issue, this is what my system log looked like after I added the drive, it failed to detect, I shutdown and removed the drive, cleared the NTFS partition, and reinstated the drive.

Code: Select all

 2011-05-27
929 19:52:58 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5 6] Start rebuilding. 
 2011-05-27
927 19:50:44 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5 6] Drive 1 added into the volume. 
 2011-05-27
926 19:50:21 System 127.0.0.1 localhost System started. 
 2011-05-27
925 19:44:26 System 127.0.0.1 localhost System was shut down on Fri May 27 19:44:26 EST 2011. 
 2011-05-27
924 19:43:12 admin 192.168.1.100 --- [Power Management] System will be shutdown now. 
 2011-05-27
923 19:38:45 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5 6] Add drive 1 to the volume failed. 
 2011-05-27
922 19:38:24 System 127.0.0.1 localhost Drive 1 plugged in. 
ppotier91
New here
Posts: 6
Joined: Mon Oct 31, 2011 10:37 pm

Same trouble with my TS-412

Post by ppotier91 »

Hi

I had exactly the same problem with my TS-412. One of my 4 2To hard disk seems to have SMART alerts, I decided to replace it, but it was NTFS formatted when I plugged it. I got the same error message "Error Raid5 Add drive 1 to the volume failed'. I was very anxious, thinking that the NAS slot 1 was defective, search google and found this topics.
I unplugged the disk, put iback into the pc, kill the NTFS partition, plug it back to the NAS ans immediatly it has been seen as a new volume to be synch with raid....

So life i beautiful now :-)

Thanks for your comments guys, it help me.

Kind regards
User avatar
criminala
Know my way around
Posts: 188
Joined: Mon May 23, 2011 9:53 pm
Contact:

Re: Add drive 1 to the volume failed

Post by criminala »

It seems that every single thing i do with this nas turns into finding a new bug .
Disk 1 needed to be replaced , so i replace it . "Error : Add drive 1 to the volume failed" . Right .

Find this thread and seems to be a known issue . So i attach the disk to my windows , see that there is a RAW partition on it , delete the partition and put it in the nas . Works .

People developing at qnap software dep have lots of work to do imo . This is just one of the many bugs/failures that i found .
Qnap 459 pro II Turbo 3gb DDR3 -!- 4x4TB Hitachi 5900rpm RAID 5 -!- USB3 external 4TB Hitachi 7200rpm -!- Eaton Ellipse MAX 1500 UPS
Gast_
New here
Posts: 2
Joined: Tue Oct 16, 2012 5:30 pm

Re: Add drive 1 to the volume failed

Post by Gast_ »

danno321 wrote:Using the fdisk commands I removed the NTFS single partition saved, powered down, removed drive, booted, hot-plugged drive. The fdisk and mdstat ouptput follow at end of this post. Good news: the qnap is rebuilding the RAID volume! Thanks a bunch 'schumaku'.
Same from me, big thanks! Worked for me, too.
lifeisfun
Know my way around
Posts: 128
Joined: Sun Nov 30, 2008 5:09 am

Re: Add drive 1 to the volume failed

Post by lifeisfun »

Thank you as well, same problem replacing drive 1
QNAP are you reading this?
Do something about it!
Gudul
First post
Posts: 1
Joined: Wed Dec 28, 2011 4:08 am

Re: Add drive 1 to the volume failed

Post by Gudul »

Same for me with TS-412 - 3.8.2 Build 20130301
Three of my four drives were inserted out of the box into the NAS and got taken without problem. I used the fourth one temporarily for backup with an eSata adapter connected to the NAS - so it got formated by the NAS itself.
When I inserted this fourth drive for finalyl completing the upgrade I got the same error message "Error : Add drive 1 to the volume failed".
I took it out and cleared any partition out, put it back and everything went fine.
QNAP people, this drive was formatted by your own application! Can't you just clear any partition before attempting to add the volume?
User avatar
doktornotor
Ask me anything
Posts: 7472
Joined: Tue Apr 24, 2012 5:44 am

Re: Add drive 1 to the volume failed

Post by doktornotor »

Gudul wrote:QNAP people, this drive was formatted by your own application! Can't you just clear any partition before attempting to add the volume?
Long standing failure. Fancy GUI >> core functionality. :roll:
I'm gone from this forum till QNAP stop wasting volunteers' time. Get help from QNAP helpdesk instead.
Warning: offensive signature and materials damaging QNAP reputation follow:
QNAP's FW security issues
QNAP's hardware compatibility list madness
QNAP's new logo competition
Dear QNAP, kindly fire your clueless incompetent forum "admin" And while at it, don't forget the webmaster!
Ramon PB
New here
Posts: 4
Joined: Wed May 29, 2013 4:32 pm

Re: Add drive 1 to the volume failed

Post by Ramon PB »

Works like a charm.

Just in case somebody faces the same problem, I replaced a faulty disk in a TS-219P with a brand new 1 TB RED NAS Western Digital disk, which I had previously NTFS formatted just for testing. After getting the error message "Error : Add drive 1 to the volume failed" I followed the instructions here to remove the NTFS partition and the RAID-1 is rebuilding right now with no problems.

Thanks a lot for the information.
Locked

Return to “System & Disk Volume Management”