Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Apr 19, 2014 9:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: RAID 5 Array offline!!
PostPosted: Tue Sep 05, 2006 11:43 am 
Offline
Newbie

Joined: Tue Aug 22, 2006 12:03 pm
Posts: 6
Help! For some reason, I have lost access to all my shared drives. This occurred when I was adding an additional share drive name and somehow the configuration page for the file shares disappeared. I managed to ssh to the machine and found that /dev/md1 apparently is not mounted for some reason. Any advise on how to best proceed? I'm hesistant to make a mistaken in which I will loose the data on the unmount array.

Thanks! All help appreciated!


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 1:37 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
tried manually mounting /dev/md1 already?

we need a wiki page about what do when this happens at terastation.org.

there already were some threads about how to recover the data if you run in such a situation. i do not have experience with software raids so i think i maybe can not be very helpful here.

only thing that i know is that as you were able to ssh into the box, your Terastation Pro is not in EM (Emergency Mode = Engineering Mode)

please post the output of
[code:c49e3]mount[/code:c49e3]

and
[code:c49e3]ps aux[/code:c49e3]

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 1:54 pm 
Offline
Newbie

Joined: Tue Aug 22, 2006 12:03 pm
Posts: 6
Hi Mindbender,

thanks for answering. I'm afraid I have not tried manually mounting the drive but I have run the mount command and it only shows /dev/md0 and other ram associated mounts have been mounted. Looking into fstab, I don't see any reference to /dev/md1

By the way the home page of the weblogin for the Terastation strangely shows the drives as "Unformated" and when the system starts up and detects the other drive, it displays "Single" on the LCD.

I'll try to post the full mount and ps aux later when I get to the machine.

Thanks again Mindbender!


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 5:01 pm 
Offline
Newbie

Joined: Tue Aug 22, 2006 12:03 pm
Posts: 6
By the way, what is the normal/default mount point for /dev/md2 ?


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 5:28 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
This is from my TeraStation Pro:

root@TERASTATION:~# mount
/dev/md0 on / type auto (rw,noatime)
proc on /proc type proc (rw)
/dev/shm on /mnt/ram type tmpfs (rw,mode=1777,size=15m)
/dev/ram1 on /tmp type ext2 (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md1 on /mnt/array1 type xfs (rw,noatime)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw)
root@TERASTATION:~#

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 10:52 pm 
Offline
Newbie

Joined: Tue Aug 22, 2006 12:03 pm
Posts: 6
Well, looks like manually mounting it didn't work. I tried

mount -t xfs /dev/md1 /mnt/array1
mount: wrong fs type, bad option, bad superblock on /dev/md1,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)


When I type 'mount' I get:

/dev/md0 on / type auto (rw,noatime)
proc on /proc type proc (rw)
/dev/shm on /mnt/ram type tmpfs (rw,mode=1777,size=15m)
/dev/ram1 on /tmp type ext2 (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw)


ps -aux gets me:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.7 0.4 1508 512 ? S 06:51 0:03 init
root 2 0.0 0.0 0 0 ? S 06:51 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SN 06:51 0:00 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? S 06:51 0:00 [kswapd]
root 5 0.0 0.0 0 0 ? S 06:51 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? S 06:51 0:00 [kupdated]
root 7 0.0 0.0 0 0 ? S 06:51 0:00 [pagebufd]
root 8 0.0 0.0 0 0 ? S 06:51 0:00 [xfslogd/0]
root 9 0.0 0.0 0 0 ? S 06:51 0:00 [xfsdatad/0]
root 11 0.0 0.0 0 0 ? S 06:51 0:00 [scsi_eh_0]
root 12 0.0 0.0 0 0 ? S 06:51 0:00 [scsi_eh_1]
root 13 0.0 0.0 0 0 ? S 06:51 0:00 [scsi_eh_2]
root 14 0.0 0.0 0 0 ? S 06:51 0:00 [scsi_eh_3]
root 15 0.0 0.0 0 0 ? S 06:51 0:00 [mtdblockd]
root 16 0.0 0.0 0 0 ? S 06:51 0:00 [khubd]
root 20 0.0 0.0 0 0 ? S 06:51 0:00 [mdrecoveryd]
root 89 0.0 0.0 0 0 ? S 06:51 0:00 [raid1d]
root 90 0.0 0.0 0 0 ? S 06:51 0:00 [raid1scand]
root 154 0.0 0.0 0 0 ? S 06:51 0:00 [xfssyncd]
root 356 0.0 0.4 1628 616 ? Ss 06:51 0:00 /sbin/syslogd -m 0
root 360 0.0 0.3 1500 472 ? Ss 06:51 0:00 /sbin/klogd -x
root 363 0.0 0.4 2052 572 ? Ss 06:51 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_ho
root 367 0.0 0.9 4392 1216 ? Ss 06:51 0:00 /usr/sbin/httpd
root 370 0.0 0.4 1616 520 ? Ss 06:51 0:00 /usr/sbin/inetd
bin 374 0.0 0.2 1668 360 ? Ss 06:51 0:00 /usr/sbin/portmap
root 376 0.0 0.4 2084 576 ? Ss 06:51 0:00 /usr/sbin/rpc.nfsd
root 378 0.0 0.4 2152 580 ? S 06:51 0:00 /usr/sbin/rpc.mountd
root 385 0.0 0.3 3852 480 ? S 06:51 0:00 /usr/sbin/lsprcvd
root 399 0.0 1.0 4440 1304 ? S 06:51 0:00 /usr/sbin/httpd
root 400 0.0 1.0 4472 1308 ? S 06:51 0:00 /usr/sbin/httpd
root 401 0.0 1.0 4440 1304 ? S 06:51 0:00 /usr/sbin/httpd
root 403 0.0 1.0 4440 1304 ? S 06:51 0:00 /usr/sbin/httpd
root 414 0.0 1.0 4440 1312 ? S 06:51 0:00 /usr/sbin/httpd
root 519 0.0 0.3 1484 448 ? S 06:51 0:00 /usr/sbin/logchkd
root 532 0.0 0.3 1664 480 ? S 06:51 0:00 /usr/sbin/upsd
root 561 0.0 0.5 4492 668 ? Ss 06:51 0:00 /usr/sbin/smbd -D
root 563 0.0 0.6 3340 848 ? Ss 06:51 0:00 /usr/sbin/nmbd -D
root 569 0.0 0.4 1640 620 ? Ss 06:51 0:00 /usr/sbin/cron
root 571 0.0 0.3 1504 416 ttyS0 Ss+ 06:51 0:00 /sbin/getty console
root 650 0.0 1.0 4440 1312 ? S 06:53 0:00 /usr/sbin/httpd
root 690 0.0 0.9 4412 1184 ? S 06:53 0:00 /usr/sbin/httpd
root 714 0.0 0.9 4412 1184 ? S 06:53 0:00 /usr/sbin/httpd
root 715 0.0 0.9 4412 1184 ? S 06:53 0:00 /usr/sbin/httpd
root 719 0.0 0.9 4412 1184 ? S 06:53 0:00 /usr/sbin/httpd
root 726 0.3 0.7 2460 944 ? Rs 06:53 0:01 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_ho
root 733 0.0 1.1 2776 1420 pts/0 Ss 06:54 0:00 -bash
root 949 0.0 0.6 2480 832 pts/0 R+ 06:59 0:00 ps aux


Any idea guys? Thanks a lot for looking into this!


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 11:38 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
You are missing the raid5 daemon. I can see the raid1 daemon for the root filesystem. Were you running the default raid 5 setup with which it was provided? If you were there should be an entry for raid5d too.

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
 Profile  
 
PostPosted: Tue Sep 05, 2006 11:52 pm 
Offline
Newbie

Joined: Tue Aug 22, 2006 12:03 pm
Posts: 6
Hi Guys,

the strangest thing! I noticed that the mdadm.conf file in /etc was blank and when I tried to write to it, the write attempt failed. So what I did was I deleted some user data which was in directories in /home. After which, I found that I could write to the /etc/mdadm.conf file again. A reboot and I was able to manually mount /dev/md1 to /mnt/array1.

In a way, the crisis to get the data out has been averted but there still is the need to find out what is wrong. What I plan to do is first to move the data off, try to find out what went wrong, then wipe the Terastation to its factory default state. Any idea whats the best way to reset the Terastation Pro to a default or factory state?

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group