#garfield Logs
Feb 18 2023
#garfield Calendar
09:59 AM aandrew: rue_mohr: that's an odd setup, you have a 1T RAID1 with two 1T drives and another 1T RAID1 but with two 4T drives?
11:35 AM aandrew: heh, so I am planning on taking three I2S DAC+AMP (MAX98357A) and connecting them to three regular old 120->12V power transformers to give me three-phase power source with reasonable-ish current
11:37 AM aandrew: the MAX98357 can put 3W into 4 ohms, which isn't a lot, so I have some random amplifier boards that have a TPA3110 on them. With a 24V power supply I should get some more oomph
11:39 AM aandrew: the power transformers are just 120V to 12V+12V, so 10:1:1. if I connect them "backwards" and with the low side paralleled, that should give me ~240V I think
11:39 AM aandrew: current won't be awesome but I think it'll work
11:40 AM aandrew: then I can drive six SCRs in antiparallel and use some resistors for the load
11:41 AM aandrew: at least that is the theory...
11:42 AM aandrew: using the I2S DAC lets me create three 60Hz sine waves at 120 degree phase offset, but more importantly it lets me play games with the waveform if I want, it's overkill if I just want three sine waves
11:49 AM aandrew: actually if I wire the secondaries in series instead of parallel I'll be able to get a bit more current out the other end...
11:50 AM aandrew: if I put the TPA3110 amps in bridge mode I could get more too, just not sure if I can do it on these modules or not
11:50 AM aandrew: putting them in parallel should be easy, just need some 0.1R resistors or something to protect the amp outputs
01:26 PM Tom_L: yay passport came today
01:54 PM rue_mohr: I'z supposed to get mine so long ago it would have expired by now
02:11 PM rue_mohr: aandrew, I'm migrating the data to the 4T drives
02:12 PM rue_mohr: aandrew, what about just doing a takeover of the pwm generation on 3 ups'
02:13 PM rue_mohr: I'm sorry
02:13 PM rue_mohr: ups' are full bridge, you only need 1.5 of them to make 3 phase
02:13 PM rue_mohr: aandrew, ?
02:14 PM rue_mohr: :) I can use the sun redirector mirror today (there is sun)
02:50 PM aandrew: rue_mohr: yeah that's way bigger and more involved than what I'm planning I think
02:50 PM aandrew: ok, migrating to the 2x4T ok
03:04 PM aandrew: so why not just bring up one of the 1T and one of the 4T and rsync everything over?
03:04 PM aandrew: no need to grow the fs after
04:03 PM rue_mohr: rsync isn't as good a copy as migrating the hardware
04:04 PM rue_mohr: if I do this with the hardware its the exact data, not even a copy of it.
04:04 PM rue_mohr: speaking of, I'm going to do a reboot, bbl
04:24 PM rue_mohr: that was easier than I thought
04:24 PM polprog: evening
04:24 PM rue_mohr: the array came up as degraded, but with no failed drives
04:25 PM rue_mohr: all I had to do was tell it that there were only 2 drives now instead of 4 and it was like "yup! ok!"
04:25 PM rue_mohr: and so now its fine
04:25 PM rue_mohr: I just have to expand the filesystem on it to take up the whole 4T
04:28 PM rue_mohr: the great thing is, if I !#$%$%&&@$%^ it all up, I can fall back to the other drives
04:29 PM polprog: 4TB nice
04:35 PM rue_mohr: less taxes
04:35 PM rue_mohr: mdadm --grow /dev/md0 -z max
04:35 PM rue_mohr: resize2fs /dev/md0
04:37 PM rue_mohr: oh I could have waited ...
04:38 PM rue_mohr: /dev/md0 2.2T 487G 1.6T 24% /files
04:38 PM rue_mohr: hahah, its slowly growing
04:41 PM rue_mohr: /dev/md0 3.1T 487G 2.5T 17% /files
04:43 PM rue_mohr: so
04:43 PM rue_mohr: I'll need a new kernel to get nfs and the new video card working
04:43 PM rue_mohr: tripplehead
04:43 PM rue_mohr: I could go for broke and put the 1G network interfaces into the router
04:44 PM rue_mohr: "The filesystem on /dev/md0 is now 971633920 (4k) blocks long."
04:44 PM rue_mohr: [====>................] resync = 24.9% (969605056/3886535680) finish=324.7min speed=149718K/sec
04:44 PM rue_mohr: /dev/md0 3.6T 487G 3.0T 14% /files
04:45 PM rue_mohr: the old drives were WD black
04:46 PM rue_mohr: well that was pretty easy
04:47 PM rue_mohr: so I tried to boot up with that other drive I thought was dead, and yea, it seems there is a problem with it
04:47 PM rue_mohr: *ugh*
04:50 PM polprog: i need to set up a beefy NAS
04:50 PM polprog: i currently have 4 computers i work on
04:50 PM polprog: files are scattered around them
04:51 PM rue_mohr: having the nfs filesystem here for all the workstations data has been great
04:51 PM polprog: theres also the workbench PC but since the desk is filled with stuff i havent used it in ages
04:51 PM rue_mohr: mount /files as ~ on whatever and its the same right across the board
04:51 PM polprog: yeah nfs is kewl, i set it up when PXE booting the thin clients when i was experimenting
04:52 PM polprog: so my files are scattered around 4 (5) computers, a dozen hard disks and two servers...
04:52 PM rue_mohr: yep
04:52 PM rue_mohr: that sucks
04:53 PM polprog: tho nfs-mounting stuff like ~ is not really feasible for the laptops
04:53 PM polprog: as i carry them around
04:53 PM polprog: well, the ones that i take away with me to school
04:53 PM polprog: i could probably set it up on one...
04:54 PM rue_mohr: yea, I'd like to know
04:54 PM rue_mohr: hey maybe now
04:54 PM rue_mohr: how to mount a http:/ as a ro fs
04:54 PM polprog: but the one that actually does nnot get moved is the one where wifi drivers are not installed because i cba...
04:54 PM polprog: ... and its usually airgapped anyway
04:55 PM polprog: unless i connect the ethernet cable to the dock
04:55 PM polprog: maybe i should just run the cable permanently
04:55 PM polprog: or install the drivers .deb since i have it on a pendrive anyway from when i was recently installing debian
04:55 PM polprog: hm
04:56 PM polprog: If there was a way to mount NFS in a way that does not stop the system from booting or waiting too long when the target is not available i could mount it as ~/shared, or /net or /whatever
04:56 PM polprog: and just have it when im home and not have it when im away
04:57 PM polprog: rue_mohr: WebDAV got ya covered https://unix.stackexchange.com/questions/67568/mount-http-server-as-file-system
04:57 PM polprog: >But note that if you don't need to list directories, avfs at least can let you access web pages over the filesystem.
04:57 PM polprog: YESSSS
04:58 PM polprog: perhaps i could try mounting my VPS' ircjunk as WebDAV or SSHFS
04:59 PM rue_mohr: ? I just want to mount it ro
05:00 PM polprog: yeah it will be ro
05:00 PM rue_mohr: so it wouldn't need any extensions on the server side
05:00 PM rue_mohr: hmm
05:00 PM polprog: i think avfs just will do it the usual way if you try whats in the first answer
05:00 PM polprog: and even then setting up webdav should be easy
05:01 PM polprog: The problem with plain HTTP is that its just for retrieving content. There's no concept of folder or file list.
05:01 PM polprog: this is the problem ^
05:01 PM polprog: HTTP does not have a protocol-level way to give you a list of files - the index of page is just a hack
05:02 PM rue_mohr: httpfs2 - FUSE filesystem for mounting files from http servers
05:03 PM Tom_L: hmm
05:03 PM Tom_L: never heard of that
05:03 PM rue_mohr: well its not a normal way to do things
05:03 PM Tom_L: why is that no surprise
05:06 PM polprog: lol, httpfs2 does not suppor https x_x
05:07 PM rue_shop3: Rue, when you assembled this jigsaw puzzle, you ended up with a hexagon, and half the pieces are installed upside down, its supposed to be a rectangular, with all the peices facing up....
05:07 PM rue_shop3: polprog, I'm sure ssh can deal with that
05:08 PM Tom_L: i did a square puzzle in HS
05:08 PM Tom_L: just reminded me...
05:08 PM rue_shop3: a secure proxy of soemthing
05:08 PM rue_shop3: well
05:08 PM polprog: yeah there is one
05:09 PM polprog: but man
05:09 PM polprog: ill try sshfs
05:09 PM rue_shop3: the buddy we visited on the weekend was in the mid-stages of dementia :/
05:09 PM rue_shop3: he'd had a stroke - tia
05:10 PM rue_shop3: bus was moving and talking kinda ok
05:10 PM polprog: awesome, sshfs worked fin
05:10 PM polprog: fine*
05:10 PM polprog: https://polprog.net/rozne1/ircjunk/sshfs.txt
05:11 PM rue_shop3: a while after we left he decided to go driving, drive off the road, started walking around, got picked up by police and is in a care ward at a hospital
05:11 PM polprog: oh, im sorry to hear that
05:11 PM rue_shop3: polprog, hahah thoguht it might be instructions
05:11 PM polprog: dementia is not fun
05:11 PM rue_shop3: yea, I'm glad I got a chance to see him before he was completely gone
05:12 PM rue_shop3: but I'd better hurry up and convert to a robot
05:12 PM polprog: rue_shop3: sshfs user@machine:path/ mountpoint/
05:12 PM polprog: type in ssh pw/key password
05:12 PM polprog: done
05:12 PM rue_shop3: oh
05:13 PM rue_shop3: ooo use compression with sshfs
05:13 PM polprog: :)
05:13 PM polprog: it haz a gazillion of options, im sure you can tune it
05:13 PM rue_shop3: ouch its slow by default
05:13 PM Tom_L: sorry to hear about your friend..
05:14 PM rue_shop3: I got to spend some time with him, he kinda wanted to be alone tho
05:14 PM Tom_L: disconnecting?
05:14 PM rue_shop3: I did learn from him that when he was a kid, he had a pet raccoon
05:16 PM rue_shop3: its name was ....
05:17 PM rue_shop3: Daisy Crocket
05:17 PM rue_shop3: :]
05:18 PM rue_shop3: it was brought to him by his pet dog as an injured pup
05:18 PM rue_shop3: he raised it, and it got stolen
05:18 PM rue_shop3: and wound up in a petting zoo
05:19 PM rue_shop3: where they re-united and it was confirmed that it was infact his racoon, but didn't stay with him again
05:22 PM rue_shop3: 25 heads cut, 1 in progress 13 more to go
05:24 PM polprog: sshfs#user@host.net: /home/user/path fuse noauto,defaults,_netdev,port=xxx,IdentityFile=/home/user/.ssh/id_rsa,uid=1000,gid=1000,idmap=user 0 0
05:24 PM polprog: this is my fstab
05:24 PM polprog: so now i can just do `mount net` in my home dir and it appears there
05:24 PM polprog: (my local path is ~/net)
05:26 PM rue_mohr: ssh -C
05:30 PM rue_mohr: ok, well, I want to let it finish the resync before I do more to the computer
05:30 PM rue_mohr: then maybe I'll do a minor kernel upgrade
05:33 PM rue_mohr: right now I'm using 5.4.1
05:34 PM rue_mohr: I could probably go to 5.15.94
05:34 PM rue_mohr: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.94.tar.xz
05:35 PM polprog: youre not updating from the repository?
05:35 PM polprog: i got 5.10.0
05:38 PM rue_shop3: debian?
05:38 PM rue_shop3: I'v not used a debian kernel in like.... 20 years
05:39 PM polprog: what are you running?
05:39 PM rue_shop2: built from source
05:39 PM rue_shop2: have you seen all the junk debian puts in the kernel?
05:40 PM rue_shop2: when was the last time you connected a keyboard to your computer via the parallel port }:|
05:40 PM rue_shop2: I mean, its not even on my list of things to do one day
05:41 PM rue_shop2: how about a modem, when was the last time you dialed into a PPP server?
05:41 PM rue_shop2: I was there, I dont miss drops
05:42 PM polprog: ahh
05:42 PM polprog: lmao
05:42 PM polprog: well, i have a bunch of modems
05:43 PM rue_shop2: I do too, dont get me wrong
05:43 PM rue_shop2: but they sit on a shelf and look cool
05:43 PM rue_shop2: thats all I ask of them
05:45 PM rue_shop2: ok polprog before I was doing the thing I'm doing, what was I actually working on?
05:47 PM rue_shop2: rue_mohr, put the crazy bga soldering projects on the webserver
05:54 PM polprog: i dont know
05:54 PM polprog: tms320?
06:23 PM rue_shop3: heh before that...
06:24 PM polprog: no idea
08:12 PM rue_mohr: [===============>.....] resync = 75.6% (2938702016/3886535680) finish=114.7min speed=137689K/sec
08:12 PM Tom_L: A9 count?
08:49 PM rue_shop3: giving myself a noise break
08:50 PM rue_shop3: I'm done 26
08:51 PM rue_shop3: my Z80 serial recieve doesnt work
08:51 PM rue_shop3: but
08:51 PM rue_shop3: lowercase b before uppercase F
08:51 PM rue_shop3: so 62 is read as 46
08:52 PM rue_shop3: 01100010 -> 01000110
08:52 PM rue_shop3: hahahahaha
08:52 PM rue_shop3: yea, I think i know the problem...
08:52 PM rue_shop3: I must have shifted it in the wrong way
09:13 PM Tom_L: that's quite a few
09:13 PM rue_mohr: not if you hold a mirror up to it
09:13 PM rue_mohr: heh
09:14 PM Tom_L: a9
09:14 PM rue_mohr: 0110.0010 -> 0100.0110
09:14 PM Tom_L: big or little edian?
09:14 PM rue_mohr: I shifted the bits in the wrong way
09:15 PM Tom_L: what do you have for internet up there?
09:16 PM rue_mohr: fiber to the home
09:16 PM Tom_L: bud is on starlink and it went out on him... can't figure out why
09:16 PM rue_mohr: odd
09:16 PM Tom_L: really?
09:16 PM Tom_L: must be fast
09:16 PM rue_mohr: I know a guy here on starlink and says its great
09:16 PM rue_mohr: well, it would be if I was the only person on it
09:16 PM Tom_L: he likes it and is rural but it quit
09:16 PM rue_mohr: add up 20000 or so people and fast is a pipe dream
09:16 PM Tom_L: mmm
09:17 PM Tom_L: they keep upgrading me
09:17 PM Tom_L: not sure what i have now
09:17 PM rue_mohr: remember them trying to upgrade rifraf?
09:17 PM Tom_L: no
09:17 PM Tom_L: same cost here
09:17 PM rue_mohr: they would keep calling him with dsl upgrade offers and then find out they couldn't install it where he was
09:17 PM Tom_L: but i did have to get more data since everything is streaming now
09:18 PM Tom_L: ahh yeah i recall that
09:21 PM Tom_L: he can't seem to figure out what's wrong, he checked the cable to the dish and the modem says it's connected
09:22 PM Tom_L: last error was poor cable but it's a new system
09:22 PM Tom_L: he checked it for rodents eating it
09:22 PM rue_mohr: did he turn it off and back on again?
09:22 PM rue_mohr: hehe
09:22 PM Tom_L: thing about starlink, to factory reset you have to power cycle it like 10-11 times
09:22 PM Tom_L: shit way to have a device reset
09:24 PM Tom_L: i'm gettin ~270Mbps dn & ~10-11 up
09:24 PM rue_mohr: I got some new 1G cards for the router so I can once-again break over 100mbits
09:24 PM rue_mohr: I should get about 200mbits peak
09:24 PM Tom_L: i finally updated my switch
09:25 PM Tom_L: not sure what the cards are
09:26 PM Tom_L: 300 to the local server
10:39 PM Tom_L: i bet it turns out to be bad cable design
10:39 PM Tom_L: there are alot of complaints
10:39 PM Tom_L: https://i0.wp.com/olegkutkov.me/wp-content/uploads/2022/11/starlink_repair_nov_4_2022_bad_spx_connector.jpg
10:39 PM rue_mohr: doen know
10:39 PM Tom_L: don't hot plug it for sure
10:39 PM Tom_L: it will arc and burn the pins out
10:40 PM rue_mohr: !!
10:40 PM Tom_L: https://www.reddit.com/r/Starlink/comments/wa4kwv/poor_cable_connection_issue/
10:43 PM aandrew: Arue_mohr> rsync isn't as good a copy as migrating the hardware
10:43 PM aandrew: I guess I don't understand
10:43 PM rue_mohr: the files have never been copied
10:43 PM rue_mohr: so nothing is changed, not even the file order on disk
10:44 PM aandrew: why is that important?
10:44 PM rue_mohr: no chance of changed attributes or missing anything
10:44 PM rue_mohr: I'v had copies go wrong before due to differences that shouldn't have mattered
10:45 PM aandrew: hm
10:45 PM rue_mohr: and I have 600G there, dont want to find out there was a problem later
10:46 PM rue_mohr: it worked, I have 3.6T of space now
10:46 PM rue_mohr: Filesystem Size Used Avail Use% Mounted on
10:46 PM rue_mohr: devtmpfs 4.0G 0 4.0G 0% /dev
10:46 PM rue_mohr: tmpfs 4.0G 384K 4.0G 1% /dev/shm
10:46 PM rue_mohr: tmpfs 4.0G 9.3M 4.0G 1% /run
10:46 PM rue_mohr: tmpfs 5.0M 8.0K 5.0M 1% /run/lock
10:46 PM rue_mohr: tmpfs 4.0G 0 4.0G 0% /sys/fs/cgroup
10:46 PM rue_mohr: tmpfs 4.0G 36K 4.0G 1% /tmp
10:46 PM rue_mohr: /dev/md0 3.6T 487G 3.0T 14% /files
10:46 PM rue_mohr: next is the shop fileserver
10:47 PM rue_mohr: but, I need to get another drive
10:47 PM rue_mohr: I'm one short
10:47 PM rue_mohr: DOA
10:47 PM rue_mohr: I hope newegg is't a pain to deal with
10:57 PM rue_mohr: it takes the z80 12 clock cycles to figure out a conditional jump
10:57 PM rue_mohr: I think I like my rom state machines
11:29 PM rue_shop3: I wanted to make a servo with this z80
11:29 PM rue_shop3: and the tms320s
11:30 PM rue_shop3: my finite state machines are faster tho
11:55 PM rue_mohr: what I probably find most sad about my visit to the family friend, is that
11:56 PM rue_mohr: despite his age and condition, he'd lost no ambitions about what he wanted to get done
11:56 PM rue_mohr: raise the floor in the kitchen
11:56 PM rue_mohr: rebuild the stairwell
11:56 PM rue_mohr: fill in a the back yard
11:56 PM rue_mohr: rebuild the garden
11:57 PM rue_mohr: renovate the fence
11:57 PM rue_mohr: over the years he has been building bowler trailers (type) and he had a bunch of fixups and stuff to the last 7 he was intent on doing