Atypical SuperUser "New to Linux" Thread w/ Qs

I’ve been toying with the idea of switching to Linux on one of my old machines. Despite Wendell’s warnings, I decided to jump directly into Manjaro given its Arch Linux roots. I wanted something openly configurable with no restrictions. I have a plethora of experience with hardware & software, and I’ve had no issues learning and utilizing Manjaro KDE using resources available online.

I’m only a few days into this, and, unfortunately, I immediately discovered rather disheartening hardware issues relating to the GPU in the aforementioned older system. Apparently, R9 390-series cards haven’t been playing well with Linux, as a whole. Regardless, appending the bootloader and forcing amdgpu driver instead of radeon driver seems to be the current workaround. This also partially allows control over the GPU, but typical overclocking options are seemingly unavailable due to the 390-series Linux issues and lack of configuration file pp_od_clk_voltage. OC control is a necessity for me (rendering), so I’ll be fussing about until I can get this right within Linux. I’d like to avoid flashing the BIOS EEPROM (not a dual-BIOS card), but I might have no choice. :pensive:

I’ve read the Manjaro forums, and they more often than not seem unfriendly. In an attempt at avoiding unpleasantness, I’ve just signed up here. :slightly_smiling_face:

As the title says, I have a few questions.

  1. I’ve been using a USB 3.1 drive to boot Manjaro that has speeds comparable to SATA3 SSDs. 400 MB/s read, 200 MB/s write, and full bandwidth saturation at ~128KB file size. I am uncertain of the cause of my system hangs. I find it difficult to blame the flash drive due to the flawless performance of typical live USB Linux images, but I do have a full install on the drive (not a live USB). I’ve looked at the provided process viewer/task mgmt apps installed with Manjaro, but these do not appear to help indicate the source of system hangs. What is the best way to troubleshoot this?

  2. The purpose of this system will be to act primarily as a NAS/SAN, but with the ability to still use as a desktop. I seriously doubt I will be gaming on it … I have far better systems for that. I will, however, most certainly be web browsing, managing accounts for things such as web domains and creative suites that require confidence in security, and possibly network rendering if I want something finished more quickly. My biggest concern is the fact that I have no interest in migrating TBs of data just to change from the file system (NTFS). Using Adobe creative suite is an unfortunate necessity for me, and I will thusly continue using Win10 for my workflow. NTFS just works. This relates specifically to the NAStorage … To clarify, Manjaro is installed using ext4. With all of this in mind, does changing this system to Linux seem fruitless? Should I just continue to use Win10 with network mapped drives? Or, if using Linux is viable here, is Manjaro KDE a proper solution? I don’t want to run VMs, so no FreeNAS, etc.

Specs:
i5 4690K @ 4.7GHz, 40x uncore
16GB DDR3 2400MHz 10-11-11-31
R9 390X 8GB
512GB RAID0 SATA3 SSDs for boot/apps
56TB HDD mass storage

I guess that’s it. :slightly_smiling_face: I heartily welcome any and all suggestions. Thanks!

2 Likes
  1. iotop see whats going on with the disk. Maybe use htop too.

  2. Oh boy this is a rabbit hole. Ignorance really is bliss. First let’s start with what you are doing with the NAS but also a desktop situation.

There’s a reason people don’t typically mix these things. A NAS usually needs to be the place where your backups go or your raw data storage lives. Sometimes people virtualize on their NAS and some even do passthrough with it. If you’re going to seriously use it as a desktop then I would run a more hypervisor oriented operating system and then virtualize windows on top of it.

Using Manjaro as a desktop here is fine, Manjaro however is not a very good nas distro imo. It can be done, but there’s reasons people don’t do this. If you break manjaro doing some overclocking thing… congratulations you’ve just broken your NAS. If you break a windows VM on a linux host, well thats ok because the VM shouldnt take the host with it (shouldnt is key here, theres some caveats).

I think the question you should ask yourself is what is the end goal for you? What advantage does this provide?

You dont want to run VMs but really thats the way this should be done imo. You want a server, and a client, and you want it on the host in one machine.


On to another topic I want to talk about… NTFS vs EXT4.

Really neither of these makes for a good FS when you want redundancy and error correction. I’m guessing that you dont have backups for your 56TB of storage… and thats a scary proposition if true. I’m not sure what you’re doing for redundancy here, be it hardware raid or storage spaces… Regardless of which though NTFS is doing you no favors as a filesystem given the size of your array.

The pucker factor here is off the charts for me. Theres a lot to think about when you get to this scale.

ZFS is easy to recommend but hard to swallow in this instance because it would mean a hardware upgrade for you. Unraid and its ‘not a raid’ black magic is another option but doesnt have any means of error correction.

I cant recommend separating the appliance enough.


That brings me to the next topic… What I would do given your situation.

A cheap means of getting into the world of NAS is to just get any old low power CPU and maybe one of those rosewill rack mount cases to shove all the spinning disks into. Hotswap bays are nice to have for sure but not really required. It just means extra work to swap a failing disk out.

Separating your nas into a linux box is a fantastic way to get your feet wet with linux. Its all of the down and dirty with none of the getting in your way, since linux is already pretty damn great at being an appliance. Once you feel more comfortable with it as a NAS you could move on to the desktop side.


The final topic of discussion… The manjaro forum.

L04-EyBuQZN2YDJ7ch92HA-rmve0xgGaEvRXtNsfDaY

This is a topic that plagues linux as a whole unfortunately. I could go on for hours about how the community as a whole is the reason linux sucks. Mostly its general linux users, and the people who work with it in the enterprise are actually great. Thankfully theres a decent amount of enterprise users here that its not as big of an issue.

You can safely ignore anyone who becomes rude with you about software, they are simply zealots.

Hopefully my ramblings arent too discouraging. I think you have the right ideas, just the wrong application.

5 Likes

The best way to troubleshoot system hangs is to check your kernel log after it happens. There are a few different things that may appear as a system hang. The first possibility is a GFX lockup, if you can still switch to TTY or SSH into the computer during a lockup then this is the likely case. If this is not the case then check the kernel logs and there may be some information there. Certain USB3.x chipsets have had problems on linux historically and while they technically work, I have had hardlocks related to using them in the past.

I would pick one, Desktop or NAS. If desktop, stick with Manjaro and roll your less important NAS stuff on top of it. If NAS is the priority then I would roll something else with more of a pedigree in stability and roll a DE on top of it. And if you’re unwilling to use anything other than NTFS for the NAS’s storage you might as well drop the whole project.

3 Likes

I didn’t fully understand: are you using your boot drive on a USB 3.1 port? If so: why?

also: if you don’t intend on playing games, can’t you carry on with only iGPU?

Maybe you could reconsider the distro, arch-based systems are very good at desktop and all but I’d consider them a kinda dangerous server solution, they’re not as stable as CentOS, Debian or Fedora…

And the community is toxic, yes, but don’t let it bother you too much, just let it go, don’t get too salty when someone tells you to RTFM.

And lastly: you should consider virtualization.

1 Like

I’ve experienced this sort of issues with USB root installs in the past. The issue is that USB isn’t an ideal protocol for filesystems. It’s a very generic interface. There’s latency. While there is a lot of bandwidth, there’s also a lot of latency in comparison to SATA or PCIe.

I’ve found that as soon as you step over to a SATA disk, it disappears.

I think it has something to do with the way writes and reads are done on a USB storage device. I’m not sure that there’s anything that can be done to improve it. (after spending a couple weeks hammering on this issue myself)

What does your storage solution currently look like? Is it just a bunch of disks that you manually shuffle data between or are you using some sort of raid or volume management?

While NTFS itself isn’t a bad filesystem, if you’re going to be using Linux, there are much better options. First, NTFS doesn’t support proper file permissions, so you’ll have to fight that. Second, there is no first-class NTFS support in Linux. It’s not a Linux filesystem, so there could be corruption.


How important is data-loss prevention and high availability to you? There are a number of options for filesystems that I could recommend to you, depending on your needs.

Additionally, are your disks matching sizes and models?

Not at all, Linux is a great base for a NAS.

Manjaro KDE isn’t a bad solution. I have different preferences, but that’s just it. They’re preferences. You’ll get a different answer on what’s “best” from different people.

I find that if you don’t keep Manjaro up to date, you have issues going back to it 6 months later and updating packages. That’s why I don’t like using it for systems that’ll be left for months at a time. For that, I’d recommend something like Ubuntu, Debian or CentOS since they’ve got a slightly more mature package management solution.

2 Likes

I can see I should have further specified my intentions. :upside_down_face: @SgtAwesomesauce is asking the right questions, in that regard.

Firstly, thanks Adubs for the troubleshooting options. I very much look forward to learning the intricacies of system maintenance on Linux. I’m sure there are different approaches, but I’m new and I don’t mind trying numerous methods.

Now, SesameStreetThug mentioned logs, and these were the first place I looked before asking questions. The problem is that the system hangs are random and incredibly intermittent. I’ve tried various scenarios that I truly thought would have triggered the hangs, but I haven’t found them to be deterministic in that sense. I haven’t found anything glaringly obvious in my logs, as a result.

My hesitance for blaming the flash drive stems from the fact that every live USB image I’ve run on it (Mint, ElemOS, Ubuntu, and Manjaro) runs perfectly. Zero issues. I chose Manjaro after trying a few other distros, but running with persistence on the flash drive isn’t an option for Manjaro. After I changed to the full install on the USB, suddenly I had the system hangs.

Bleh. It’s probably the drive, tbh. Something similar to a hard fault causing problems with interrupts, idk.

As for dern0s asking why I’m using a flash drive install, it’s just something I wanted to try. It works so well for a live USB image, and I really wanted to test how effectively I could use this approach. For the time being, and until I’ve decided how I want to approach the handling of this older system, it’s simply easier for me to try various OSes on a flash drive before committing to an internal drive install.

I really wish I could get the same performance as a live USB image. :expressionless:

So, back to @SgtAwesomesauce approaching this from the right perspective … I need to clarify some things that should have been in my first post.

  • I doubt this system could effectively run a virtualized environment and still function for the purposes I have in mind. VMs are out.
  • I don’t care about redundancies. Everything critical is backed up to the cloud. Thus, I have no particular use for advanced file systems. I have experience with using a purely NAS OS, but it’s unnecessary here.
  • HDDs: 4x 10TB WD “Reds” (shucked from externals & largely believed to be Reds), 4x 4TB Seagate Barracuda Compute. RAID0 would be my only consideration, in the future. As stated previously, I’m not currently interested in data migration, so they will remain without any RAID configs for now.
  • NTFS drives will only be accessed over the network from Win10 systems. I’m aware that using NTFS within Linux is questionable, but I have no intention of accessing the NTFS drives inside the Linux environment.

Overall, I simply want to futz around learning Linux while maintaining the functionality of mapped network drives for my main Win10 workstation. Workflow involves using the workstation’s RAID0 NVMe and SATA3 SSDs for high throughput during initial work, then transferring large projects to network storage for later management. If this process can remain unimpeded while switching to Linux, I’m quite interested in using it.

Thanks for all of your replies. :slightly_smiling_face:

ugh, Discourse. I can’t tag too many people because new account.

2 Likes

I understand your use case a bit better now and can hopefully help you a bit better. As far as providing a network share for the drives while you’re using Linux, that’s not too difficult.

You’ll need the ntfs-3g package installed to have full functionality of NTFS drives on Linux.

From there, you can set up mounts in /etc/fstab so the disks are automatically mounted when you boot into Linux. An NTFS fstab entry would look something like this:

/dev/sdX1 ntfs /media/diskX default 0 0

Basically, you’re telling it to use disk X to mount, with a fs type of NTFS on the specified path, with the default options, and not fsck (Filesystem Check, kinda like windows chkdsk) the disk.

Best practice is typically to mount “additional disks” that are long-life in the /media directory. In order to mount them, you need to create a directory for each disk in there and make sure it’s empty. So, if you want the root of Disk 1 to appear at /media/disk1, you need that directory to exist and be empty. Ownership doesn’t matter because it’s being mounted by the root user.

As far as creating the shares, you can do that with Samba. I don’t really have the time to give you a customized tutorial for that, but the Archwiki has a great article (linked below) describing Samba, which is the Linux implementation of the windows SMB (network shares) protocol. I’d give it a read through and if you have questions, go ahead and ask from there.

I’ll try to reproduce the issue when I get a moment, see if I can’t get any results on my end. I’ve got a M.2 to USB 3.0 adapter and a drive laying around somewhere. :thinking:

1 Like

Yes, I’ve been researching Samba. The online resources and opinionated posts about Samba vs NFS are somewhat confusing. What I’ve gleaned from it all seems to indicate Samba as the correct choice, but there certainly appears to be some controversy. :face_with_hand_over_mouth:

Am I correct in assuming that there will be no issues using NTFS purely over network, avoiding access within Linux? What I’ve read regarding this suggests that the problems using NTFS relate to attempting R/W in Linux. :woman_shrugging:

Also, for future implementation, what file system(s) could I use once I’m ready to format the HDDs that would have zero issues while working within Win10?

Barring any objections to using Manjaro for my needs here, I’ll move forward with my current choice. I have been meaning to try PopOS, but I think I’m already getting used to Manjaro.

And thanks again for everyone’s contributions! :grin:

NFS is helpful if you’re using Linux, but stay away from it when you’re using Windows.

If you’re doing Linux ↔ Linux, NFS is a better option, but you aren’t.

I’m not entirely sure. I haven’t used this configuration in the past. I would imagine not, but I can’t guarantee it.

There are plenty of different options. I like ZFS because it handles the RAID configuration in software, has checksumming, instant snapshots and a few other nice-to-haves, but honestly, when you’re on Linux, any of the big ones (ext4, xfs, zfs) is a step up from NTFS.

If you use a “traditional” filesystem, you’ll have to do raid management separately.

PopOS is a good choice, but I’d stick with Manjaro for a while. If you change every time someone makes a suggestion for change, you’ll keep distrohopping, which can become something of a detriment to your learning.

2 Likes

Distros mostly dont matter in that while some things are easier on one distro than another but theres very few things you cant do on one distro that you cant do on another.

If manjaro gets you going then dont bother fixing what isnt broke.

I like to joke that distros are a social construct, but its kinda not really a joke.

2 Likes

Because you are using this through USB3.1 this could be a source of contention going through the chipset. You are running a RAID & other HDD’s, something to look into. I’m curious what cache size your USB3.1 dive has? That could cause problems as well. I also have an i5 4690k and have experienced I/O issues when I have all my drives connected… Just a thought.

iotop is good for seeing what is going on on particular disk, whats being written/read. Other than that it’s fairly plain. htop is a bit more thorough to see process etc.

1 Like