stevoith

Members
  • Posts

    36
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed

stevoith's Achievements

Noob

Noob (1/14)

0

Reputation

  1. Hi I do something similar, I have 2 nics, eth0 (192.168.1.#) & eth1, eth0 (192.168.2.#) is my normal home network and so I connect to my unraid over this network and then I have eth1, which is connected to a separate router, which is connected to a VPN network. I have plex running on one container which runs hosted over my eth0 network, so my TV's etc can get to it. Then I have transmission and Sickrage running in bridged containers, at boot time I do a little jiggling around to get those 2 containers to send their traffic out over the VPN network. I just switch wireless networks if I want to go out over the VPN or normal network. This is my go file from /boot/config #!/bin/bash echo "1" mkdir -p /mnt/btrfs echo "2" btrfs device scan mount -t btrfs /dev/sdj /mnt/btrfs /etc/rc.d/rc.docker stop sleep 20 ifconfig eth1 plumb ifconfig eth1 up brctl addbr br1 brctl addif br1 eth1 ifconfig br1 inet 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255 up /etc/rc.d/rc.docker start echo "lets set our container routes" sleep 60 #get the container id of transmission and SAB Transid=`docker ps | grep transmission | cut -b 1-12` RAGEid=`docker ps | grep rage| cut -b 1-12` #now find the process id for the container. TransProcID=`docker inspect -f '{{.State.Pid}}' $Transid` RAGEProcID=`docker inspect -f '{{.State.Pid}}' $RAGEid` #create the links to allow us to use netns to change variables within the container. mkdir -p /var/run/netns ln -s /proc/$TransProcID/ns/net /var/run/netns/$TransProcID ln -s /proc/$RAGEProcID/ns/net /var/run/netns/$RAGEProcID # use netns to change the default root to use the vpn connection. ip netns exec $TransProcID route del default gw 192.168.2.100 ip netns exec $TransProcID ifconfig eth0 down ip netns exec $TransProcID ifconfig eth0 inet 192.168.2.10 ip netns exec $TransProcID route add default gw 192.168.2.1 ip netns exec $TransProcID ifconfig eth0 up ip netns exec $RAGEProcID route del default gw 192.168.2.100 ip netns exec $RAGEProcID ifconfig eth0 down ip netns exec $RAGEProcID ifconfig eth0 inet 192.168.2.20 ip netns exec $RAGEProcID route add default gw 192.168.2.1 ip netns exec $RAGEProcID ifconfig eth0 up # Start the Management Utility /usr/local/sbin/emhttp -p 9090 & There may be a much cleaner way to do this now, but I set my server up a few years back. Cheers
  2. I'm running 6.7.1 and I have my docker image on an SSD disk which I mount as a separate btrfs file system. I use the unassigned devices plugin to mount it at boot time. Cheers
  3. Possibly not, but it's worked for the last 3+ years so if it changes I'll deal with it. Cheers Steve
  4. Problem sorted. Deleted the Docker image and restarted docker re-added the containers problem gone.. very strange issue. As for the comment about me not letting docker get started by the array, I do like it get started, then stop it, make some changes then restart Ie :- echo "1" mkdir -p /mnt/btrfs echo "2" btrfs device scan mount -t btrfs /dev/sdj /mnt/btrfs /etc/rc.d/rc.docker stop sleep 20 ifconfig eth1 plumb ifconfig eth1 up brctl addbr br1 brctl addif br1 eth1 ifconfig br1 inet 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255 up /etc/rc.d/rc.docker start echo "lets set our container routes" sleep 60 #get the container id of transmission and Rage Transid=`docker ps | grep transmission | cut -b 1-12` RAGEid=`docker ps | grep rage| cut -b 1-12` #now find the process id for the container. TransProcID=`docker inspect -f '{{.State.Pid}}' $Transid` RAGEProcID=`docker inspect -f '{{.State.Pid}}' $RAGEid` #create the links to allow us to use netns to change variables within the container. mkdir -p /var/run/netns ln -s /proc/$TransProcID/ns/net /var/run/netns/$TransProcID ln -s /proc/$RAGEProcID/ns/net /var/run/netns/$RAGEProcID # use netns to change the default root to use the vpn connection. ip netns exec $TransProcID route del default gw 192.168.2.100 ip netns exec $TransProcID ifconfig eth0 down ip netns exec $TransProcID ifconfig eth0 inet 192.168.2.10 ip netns exec $TransProcID route add default gw 192.168.2.1 ip netns exec $TransProcID ifconfig eth0 up ip netns exec $RAGEProcID route del default gw 192.168.2.100 ip netns exec $RAGEProcID ifconfig eth0 down ip netns exec $RAGEProcID ifconfig eth0 inet 192.168.2.20 ip netns exec $RAGEProcID route add default gw 192.168.2.1 ip netns exec $RAGEProcID ifconfig eth0 up # Start the Management Utility /usr/local/sbin/emhttp -p 9090 & ~ I'm sure there is a cleaner way of doing things, but this just allows me to push those containers down my external VPN. Cheers
  5. This just keeps getting odder in container :- [root@8beee782d872 user]# mkdir fred [root@8beee782d872 user]# ls appdata Films fred TV [root@8beee782d872 user]# look on underlying server fs, not there. root@NAS-server:/mnt/user# ls Downloads/ Films/ Macbckup/ PVR/ TV/ backup/ btrfs@ test/ root@NAS-server:/mnt/user#
  6. The config directory is fine.. its the films and tv I can't see. I stop and restart docker at boot time vi the go file, I do sme tweaking to push sickrage and transmission out my vpn network, dual hosted unraid.. anyway I digress. So it gets stranger, sickrage is the same too, under /media to tv programs. /mnt/user/TV it too was empty, so I changed it to /mnt [root@8beee782d872 user]# cd /media [root@8beee782d872 media]# ls btrfs cache disk1 disk2 disk3 disk4 disk5 disk6 disks user user0 all good [root@8beee782d872 media]# cd user [root@8beee782d872 user]# ls -l total 0 drwxr-xr-x 3 root root 60 Sep 30 12:03 appdata drwxr-xr-x 2 root root 40 Sep 30 12:03 Films drwxr-xr-x 2 root root 40 Sep 30 12:03 TV There are directories missing :- on the underlying server :- drwxrwxrwx 1 nobody users 31 Nov 24 2015 Downloads/ drwxrwxrwx 1 nobody users 4096 Sep 29 19:33 Films/ drwxrwxrwx 1 nobody users 79 Oct 7 2015 Macbckup/ drwxrwxrwx 1 nobody users 71 Feb 17 2015 PVR/ drwxrwxrwx 1 nobody users 4096 Sep 28 10:48 TV/ drwxrwxrwx 1 nobody users 6 Feb 4 2016 backup/ lrwxrwxrwx 1 root root 10 Nov 12 2014 btrfs -> /mnt/btrfs/ drwxrwxrwx 1 nobody users 6 Oct 20 2015 test/ under films in container [root@8beee782d872 user]# cd Films [root@8beee782d872 Films]# ls [root@8beee782d872 Films]# So it's got to be something with perms or something but I'm stuffed if I can figure out what
  7. Hello folks, So I have been running Unraid and Docker for donkies without issue. The other day I had to power my server down for some electrical work to be done on the house, work was completed, server rebooted all sorted.. Or so I thought. I went to watch plex later in the evening, and noticed the dashboard hadn't updated with the new films I'd added. hmm so I ran a full refresh on movies and decided to watch a TV program but I got media unavailable. checked and checked in plex and on the server, but everything seemed fine so I thought ok I'll blow away the plex container and recreate it.. Went to re-add the libs but the content was empty, I have tried this several times now. eventually I hopped onto the container to see what was going on. # docker exec -u 0 -it PlexMediaServer bash root@NAS-server:/config# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/loop0 20971520 15277472 3297120 83% / tmpfs 8091416 0 8091416 0% /dev shm 65536 4 65532 1% /dev/shm /dev/loop0 20971520 15277472 3297120 83% /data rootfs 8032744 313124 7719620 4% /Films /dev/sdj 1562813784 193753556 1367491532 13% /config rootfs 8032744 313124 7719620 4% /TV ok so the Directories are there. Basically mapping /mnt/user/TV to /TV and /mnt/user/Films to /Films root@NAS-server:/mnt/TV# pwd /mnt/TV root@NAS-server:/mnt/TV# ls so nothing in the Directory, to make sure I wasn't going mad I did an ls on the underlaying host :- root@NAS-server:/boot/config# cd /mnt/user root@NAS-server:/mnt/user# ls Films/ Macbckup/ TV/ btrfs@ test/ root@NAS-server:/mnt/user# cd TV root@NAS-server:/mnt/user/TV# ls 12\ Monkeys/ Generation\ Kill/ Silicon\ Valley/ Agent\ X/ Hand\ of\ God/ files are there. So I hopped back onto the container again. went to /config root@NAS-server:/Films# cd /config root@NAS-server:/config# ls Library tmp So that directory appears to have mapped ok. Permissions all look good I am at a complete loss any one have any ideas for me at all please. Thanks
  8. Hi thanks for the reply Gary, Now that I know I can rebuild the array from scratch I will look at it.. I haven't rebooted because I want to watch something, but I will see what happens.. The only slightly annoying thing with another complete wipe would be to rebuild my pleX server etc again.. but they are all on a separate SSD which I mount as a btrfs disk, so I hope if I rebuild I can pull the docker apps back from the SSD..(is that possible ? ) it's taken about a year to get plex, sickrage, transmission etc. all to play nicely with each other.. (and before I am bashed for downloading stuff, I buy every single TV program & film I watch on DVD, as soon as they come out on DVD, friends find it amusing that all my DVD's are still wrapped in their cellophane ... I just don't like to wait). Thanks
  9. I now have this working again.. I stopped the array.. Deleted the shares via the GUI. started the global share option again. started the array, bingo the shares all mounted again... So I have a work around at least shame it doesn't do this properly at boot up any more.
  10. fair point folks, guess I was just getting a little frustrated with having nothing to watch
  11. Seriously I pay for this software.. can't someone from the unraid team at least respond.. it can't be that hard to figure out surely ? Something has gone wonky with the mounting..I want my plex server back there is bugger all on TV
  12. OK I decided to pay for this software and now I'm starting to think I've been done over... not in a bad way but a slightly annoying way.. surely the developers must know whats gone wonky here.. I can see all the data is still there, it's just that the software has decided my shares don't exist.. what the f**k is stopping the array from picking them up ? I am seriously thinking I need to switch back to freenas.. but I don't want too I can still see all the data is there :- root@NAS-server:/mnt/disk4# ls ../disk1 American\ Horror\ Story/ Downloads/ Films/ TV/ test/ root@NAS-server:/mnt/disk4# ls ../disk2 Downloads/ Films/ Macbckup/ TV/ backup/ btrfs@ root@NAS-server:/mnt/disk4# ls ../disk3 American\ Horror\ Story/ Films/ Macbckup/ PVR/ TV/ backup/ root@NAS-server:/mnt/disk4# ls ../disk4 American\ Horror\ Story/ TV/ root@NAS-server:/mnt/disk4# ls ../disk5 American\ Horror\ Story/ TV/ root@NAS-server:/mnt/disk4# ls ../disk6 American\ Horror\ Story/ TV/ root@NAS-server:/mnt/disk4# BattleStar\ Galactica/ Childeren\ of\ Dune/ Fargo\ (2014)/ House\ MD/ The\ 100/ The\ Wire/ Black\ Adder\ (1983)/ Continuum/ Friends/ Revolution/ The\ Big\ Bang\ Theory/ Under\ The\ Dome/ Boston\ Legal/ Dune/ Game\ Of\ Thrones/ Spooks/ The\ Sopranos/ Breaking\ Bad/ Falling\ Skies/ Heroes/ Star.Trek.The.Next.Generation.Complete.NTSC.DVD.DD5.1.x264-JCH/ The\ Walking\ Dead/ root@NAS-server:/mnt/disk2/TV# everything is there...the software has gone nuts some where.
  13. hahahaha this thing is doing my nut in..it's like the array is possessed So I stopped the array, deleted the TV and Films share again, turned off the shares in settings global shares settings and rebooted. I rebooted the the array, started it.. The shares are back and there, even though the global shares setting is still turned off.. it's magic..only not in a good way.
  14. Aggggg bleeeeeeeepp So I deleted the super.dat rebooted and reset the disks. start the array, back in exactly the same place. Jan 30 19:25:50 NAS-server logger: = sectsz=512 sunit=0 blks, lazy-count=1 Jan 30 19:25:50 NAS-server logger: realtime =none extsz=4096 blocks=0, rtextents=0 Jan 30 19:25:50 NAS-server emhttp: shcmd (69): mkdir -p /mnt/disk6 Jan 30 19:25:50 NAS-server emhttp: shcmd (70): set -o pipefail ; mount -t xfs -o noatime,nodiratime /dev/md6 /mnt/disk6 |& logger Jan 30 19:25:50 NAS-server kernel: XFS (md6): Mounting V4 Filesystem Jan 30 19:25:51 NAS-server kernel: XFS (md6): Ending clean mount Jan 30 19:25:51 NAS-server emhttp: shcmd (71): xfs_growfs /mnt/disk6 |& logger Jan 30 19:25:51 NAS-server logger: meta-data=/dev/md6 isize=256 agcount=4, agsize=183141659 blks Jan 30 19:25:51 NAS-server logger: = sectsz=512 attr=2, projid32bit=0 Jan 30 19:25:51 NAS-server logger: = crc=0 finobt=0 Jan 30 19:25:51 NAS-server logger: data = bsize=4096 blocks=732566633, imaxpct=5 Jan 30 19:25:51 NAS-server logger: = sunit=0 swidth=0 blks Jan 30 19:25:51 NAS-server logger: naming =version 2 bsize=4096 ascii-ci=0 ftype=0 Jan 30 19:25:51 NAS-server logger: log =internal bsize=4096 blocks=357698, version=2 Jan 30 19:25:51 NAS-server logger: = sectsz=512 sunit=0 blks, lazy-count=1 Jan 30 19:25:51 NAS-server logger: realtime =none extsz=4096 blocks=0, rtextents=0 Jan 30 19:25:51 NAS-server emhttp: shcmd (72): mkdir -p /mnt/cache Jan 30 19:25:51 NAS-server emhttp: shcmd (73): set -o pipefail ; mount -t xfs -o noatime,nodiratime /dev/sdb1 /mnt/cache |& logger Jan 30 19:25:51 NAS-server kernel: XFS (sdb1): Mounting V4 Filesystem Jan 30 19:25:51 NAS-server kernel: XFS (sdb1): Ending clean mount Jan 30 19:25:51 NAS-server emhttp: shcmd (74): sync Jan 30 19:25:51 NAS-server emhttp: skipping parity sync Jan 30 19:25:51 NAS-server emhttp: shcmd (75): :>/etc/samba/smb-shares.conf Jan 30 19:25:51 NAS-server avahi-daemon[5222]: Files changed, reloading. Jan 30 19:25:51 NAS-server emhttp: shcmd (76): chmod 0777 '/mnt/user/Films' Jan 30 19:25:51 NAS-server emhttp: shcmd (77): chown 'nobody':'users' '/mnt/user/Films' Jan 30 19:25:51 NAS-server emhttp: shcmd (78): chmod 0777 '/mnt/user/TV' Jan 30 19:25:51 NAS-server emhttp: shcmd (79): chown 'nobody':'users' '/mnt/user/TV' Jan 30 19:25:51 NAS-server emhttp: get_filesystem_status: getxattr: /mnt/user/Films Operation not supported Jan 30 19:25:51 NAS-server emhttp: get_filesystem_status: getxattr: /mnt/user/TV Operation not supported Jan 30 19:25:51 NAS-server emhttp: Restart SMB... Where is it getting those 2 mount points from ? if I delete the shares they come back after reboot.. Short of completely formatting the flash drive and rebuilding I am at a loss.. I don't want to loose my docker containers though, it's taken me ages to get them set the way I want them Any advice welcome... pleaaaassssseee