Samba share on software raid1


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
Old 08-31-2018
So when you say you "detach" a disk how are you doing that?
# 9  
Old 08-31-2018
i just reconfigure a permissions and add a group

Code:
drwxr-xr-x 4 root root 4096 Aug 30 23:12 raid

Code:
drwxr-xr-x   3 root root  4096 Aug 30 12:39 mnt

Code:
drwxrwx--- 2 root admins  4096 Aug 31 08:54 test

smb.conf
Code:
[test]
path = /mnt/raid/test
valid users = @admins
read only = no
browsable = yes
guest ok = no
public= no

when deattach one disk, i cant see test folder in /mnt/raid/

------ Post updated at 03:26 AM ------

Quote:
Originally Posted by hicksd8
So when you say you "detach" a disk how are you doing that?
i turned off from the board, just pull off sata cable.
# 10  
Old 08-31-2018
After you created the RAID did you format it/create a new filesystem on it?

Did you see the resilvering process occur?

You are right to assume that you should be able to remove one of the drives and the volume still be available.

Does it also disappear if you detach the other disk?
# 11  
Old 08-31-2018
This is what I did
Code:
sudo mkfs.ext4 -F /dev/md0

folder /mnt/raid/test disappear only. But this is only folder that I need.
/mnt/raid is steal present.
# 12  
Old 08-31-2018
When you detach a disk, is the RAID still shown as mounted?

You might have /mnt/raid existing on your root filesystem which is covered when you mount /dev/md0 over the top. Then, if the RAID dismounts (although it should'nt) you will be left with /mnt/raid but the test folder will seem to be gone.
# 13  
Old 08-31-2018
Quote:
Originally Posted by hicksd8
When you detach a disk, is the RAID still shown as mounted?

You might have /mnt/raid existing on your root filesystem which is covered when you mount /dev/md0 over the top. Then, if the RAID dismounts (although it should'nt) you will be left with /mnt/raid but the test folder will seem to be gone.
yeah raid is present, but inactive, no another disk.
How can i get my windows users allways have their files, and me also.
I cant get to lost my test folder.

I now deattach disk and no folder.
this is lsblk command
Code:
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME                    SIZE FSTYPE            TYPE MOUNTPOINT
sda                   232.9G                   disk
└─sda1                232.9G LVM2_member       part
  ├─johna--vg-root     227G ext4              lvm  /
  └─johna--vg-swap_1   5.9G swap              lvm  [SWAP]
sdb                     1.8T linux_raid_member disk

------ Post updated at 04:25 AM ------

Code:
cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sdb[0](S)
      1953383512 blocks super 1.2

unused devices: <none>

------ Post updated at 04:35 AM ------

Code:
sudo mdadm --examine --scan --config=mdadm.conf >> /etc/mdadm/mdadm.conf

Code:
ARRAY /dev/md/0  metadata=1.2 UUID=bd34d949:34a3999d:949d6038:a871e1c1 name=johna:0


Last edited by tomislav91; 08-31-2018 at 06:23 AM..
# 14  
Old 08-31-2018
You posted this in "Unix for Beginners Question and Answers" but this isn't a beginners question so I'll move this thread to the Ubuntu forum proper in the hope that more Ubuntu experts will see it.
This User Gave Thanks to hicksd8 For This Post:
Neo (08-31-2018)
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Samba share - currently not working psychocandy Red Hat 2 08-22-2017 11:58 AM
Copy files to samba share Ubuntu 14.04 cmccabe UNIX for Beginners Questions & Answers 2 09-13-2016 05:12 PM
Samba Share access from windows zaineyma UNIX for Beginners Questions & Answers 1 03-29-2016 01:07 PM
Samba share assess w/no authentication dignarn Red Hat 0 07-17-2015 02:59 PM
Samba share Windows problem PAfreakFlorian UNIX for Dummies Questions & Answers 0 10-08-2014 05:37 PM
Samba share problem in Linux 6.4 Priy Red Hat 3 06-11-2013 01:59 PM
How to Map AD groups to Samba share? sunnysthakur Red Hat 3 01-16-2013 09:17 AM
samba issue: one samba share without password prompting and the others with. ideal2545 Solaris 0 01-12-2012 03:45 PM
Problems between a HP UX 11.31 Samba share and Windows 7... zixzix01 UNIX for Advanced & Expert Users 1 04-22-2011 02:48 PM
SAMBA is connecting to the share somehow as root woot14 Solaris 0 09-24-2010 10:46 AM
Samba share script funyotros Linux 0 09-23-2010 11:20 AM
Facing problem in Samba share manoj.solaris Linux 1 01-11-2010 08:18 AM
Samba: share subfolder as read only. sparcman Solaris 2 06-09-2009 07:05 AM
How to mount windows Share on solaris using SAMBA daya.pandit Solaris 2 11-12-2008 12:06 AM
How can i set up Software disk mirroring(Raid1) in SCO 5.0.5 with two SCSI harddisk ? coralsea UNIX for Dummies Questions & Answers 1 01-16-2002 07:44 PM