Still the same problem I started with
Beiträge von nubdubdidubdub
-
-
I follow this tutorial on swapping out a drive; https://www.howtoforge.com/rep…rd_disks_in_a_raid1_array
For now the new disk is being recovered and hopefully it will be a active device after that
-
Will I be able to recover the array or am I toast?
I found some commands by Googling but I don't want to lose my data if possible
EDIT: I was able to get the array back up with:
root@openmediavault:~# mdadm -A --scan
mdadm: /dev/md0 has been started with 2 drives (out of 3) and 1 rebuilding.So now I am back to the beginning, with the one drive stuck in "spare rebuilding /dev/sdc1"-mode
-
root@openmediavault:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : inactive sdc1[4](S) sdb1[3](S)
3906266112 blocks super 1.2unused devices: <none>
root@openmediavault:~# mdadm --detail --scan --verbose
mdadm: md device /dev/md0 does not appear to be active. -
I had to unmount the md0 because a process was using it with "umount -l /dev/md0"
But now it appears the device does not have a superblock, mounted or not (mount -a) and can't be assembled.root@openmediavault:~# mdadm --assemble --verbose --force /dev/md0 /dev/sd[bcd]1
mdadm: looking for devices for /dev/md0
mdadm: no RAID superblock on /dev/sdd1
mdadm: /dev/sdd1 has no superblock - assembly abortedroot@openmediavault:~# mdadm --add /dev/md0 /dev/sdd1
mdadm: cannot get array info for /dev/md0 -
It appears that the device is busy, but when I try to stop the device it's not part of the raid.
root@openmediavault:~# mdadm --add /dev/md0 /dev/sdd1
mdadm: Cannot open /dev/sdd1: Device or resource busyroot@openmediavault:~# mdadm --stop /dev/sdd1
mdadm: /dev/sdd1 does not appear to be an md device -
Hi guys,
I swapped out a drive which was reporting some bad sectors for a new drive.
The drive started rebuilding fine, but when it was finished it keeps reporting "spare rebuilding"I'm not sure what's wrong and Google hasn't brought a solution...
Do you guys have an idea how to fix this?Thanks in advance
root@openmediavault:~# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Nov 20 00:28:55 2015
Raid Level : raid5
Array Size : 3905767424 (3724.83 GiB 3999.51 GB)
Used Dev Size : 1952883712 (1862.42 GiB 1999.75 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistentIntent Bitmap : Internal
Update Time : Thu Sep 1 20:51:47 2016
State : active, degraded
Active Devices : 2
Working Devices : 3
Failed Devices : 0
Spare Devices : 1Layout : left-symmetric
Chunk Size : 512KName : manfred:0
UUID : 051c3493:cd0e06a3:6b8cbbcb:c89c797c
Events : 14713631Number Major Minor RaidDevice State
4 8 49 0 spare rebuilding /dev/sdd1
1 8 17 1 active sync /dev/sdb1
3 8 33 2 active sync /dev/sdc1root@openmediavault:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd1[4] sdb1[1] sdc1[3]
3905767424 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU]
bitmap: 0/15 pages [0KB], 65536KB chunkunused devices: <none>
-
Thanks! Worked like a charm
Maybe it was because I have imported the old debian raid5?
Thanks again for the help.
-
Ofcourse
Thanks for having a look.
root@openmediavault:/media/b815c7ef-3280-4f67-b063-6c4773bc5cb3# ls -la
drwxrwx--- 5 root 1001 4096 jun 24 20:23 .
drwxr-xr-x 5 root root 4096 jun 19 14:48 ..
-rw------- 1 root root 7168 jun 24 22:24 aquota.group
-rw------- 1 root root 7168 jun 24 22:24 aquota.user
drwx--S--- 15 david root 4096 jun 19 14:19 david -
Hi guys,
I have been running a NAS server with shares on plain Debian and decided to move to OMV2.1.
However I am running into a bit of difficulty in setting op the SAMBA shares...The share is browsable under windows, but I do not get asked for a username or password, and get greeted with "Windows cannot access..."
Could someone give me someone tell me what could be the issue?
I've dumped the output of the most relevant command below:
root@openmediavault:/etc/samba# cat smb.conf
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 1
syslog = 1
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = yes
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0777
directory mask = 0777
use sendfile = yes
aio read size = 16384
aio write size = 16384
null passwords = no
local master = yes
time server = no
wins support = no#======================= Share Definitions =======================
[david]
path = /media/b815c7ef-3280-4f67-b063-6c4773bc5cb3/david/
guest ok = no
read only = no
browseable = yes
inherit acls = no
inherit permissions = yes
ea support = no
store dos attributes = no
printable = no
create mask = 0755
force create mode = 0644
directory mask = 0755
force directory mode = 0755
hide dot files = yes
valid users = "david"
invalid users =
read list =
write list = "david"root@openmediavault:/media/b815c7ef-3280-4f67-b063-6c4773bc5cb3# ls -l
-rw------- 1 root root 7168 jun 24 22:24 aquota.group
-rw------- 1 root root 7168 jun 24 22:24 aquota.user
drwx--S--- 15 david root 4096 jun 19 14:19 davidroot@openmediavault:/media/b815c7ef-3280-4f67-b063-6c4773bc5cb3# getfacl david
# file: david
# owner: david
# group: root
# flags: -s-
user::rwx
group::---
other::---Thanks for having a look!