Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
5

RAID 0 vs. LVM

5

RAID 0 vs. LVM

Is there any difference between using RAID 0 (with mdadm), LVM RAID, and regular LVM with several physical volumes combined into one logical volume? LVM RAID 0 seems like it doesn't do anything more than LVM normally does when combining physical volumes into a logical volume, so I'm not sure what purpose it serves in particular.

5 comments
100% Upvoted
What are your thoughts? Log in or Sign uplog insign up
level 1

An LVM logical volume of type raid0 use striping. A simple logical volume that spans multiple devices does not. The former is potentially faster, while the latter is more amenable to being resized, moved, converted, etc.

level 2
Original Poster1 point · 5 months ago

Ah, so it's basically a trade-off between performance and malleability? Is there a difference in ability to recover from drive failure, or do they both provide basically no protection from that?

level 1

In recent versions of LVM the mdadm "driver" for RAID is used for all RAID levels.

It's actually not that recent but I'm old.

This was a huge plus as LVMs "mirror" driver was shit and not having two different RAID implementations is a good idea

More posts from the linuxquestions community
137

The idea being that if I am logging in under duress, deliberately entering an alternate password logs a different account in. Anything except the two passwords, and it won't let you in, as usual.

Edit: Thanks for the gold, kind Redditor!

137
75 comments
71

Soooo yeah... Title. If it matters, the drive in question is a Western Digital 10EADS. My windows 7 install kept locking up. I suspect both my graphics card AND mobo of crapping out, so from an old ubuntu live cd I created a live usb of Manjaro to install on my spare potato. Or so I thought. I had to reboot a couple of times. If I booted the live cd with my usb stick in it would detect as /dev/sdb, and booting without it in would make the 1TB drive /dev/sdb. I think. Anyway, you can see how this happened.


I've read [this](https://ubuntuforums.org/showthread.php?t=1654981) and [this](https://ubuntuforums.org/showthread.php?t=387922) a couple times and I think I get the general idea of what I'll have to do.  



Can anyone give me some pointers as to how to tweak these guides to work for me?  Or am I borked?
71
53 comments
69

Hi everyone, do you know of such a command that I can use? Maybe a Debian package? Thanks.

69
38 comments
59

I'm primarily a UX designer and a front-end developer but I love Linux and wanted to take a stab a creating a couple of Linux apps to improve the usability of some parts of the system that are locked to terminal commands and because I generally want to get into Linux development.

What's the best way for me to go about doing this?

Do frameworks such as Ionic and Electron allow to interact with the system itself such as launching terminal commands from a visual interface?

I realise this is kind of vague, but I'm still lost after Googling so I thought asking the source would probably be smarter. I'd love to be able to use React and other web frameworks to build desktop interfaces as I'm just more used to them than anything else.

59
90 comments
54

So i am considering switching over to Linux Cinnamon Mint, and on my current Windows system i have an animated wallpaper using the steam Application Wallpaper engine. I quite like having an animated wallpaper, so i just wanted to know if anything like this was possible.

Thanks in advance.

54
39 comments
51

i was wondering if it could be possible if i was in a ssh app like juicessh if i could copy files from my phone to my computer using scp?

edit: i shoulve clarified that im trying to do this while on my pivpn and on my phone while trying to copy from phone to computer

edit 2: i figured out how termux works and was able to do it that way. thanks!

51
34 comments
47

I've been using text files for years in notepad++ on windows and Geany/gedit/leafpad on whatever Linux. I have to use Windows for some of my work because of the specific corporate VPN limitations.

Text files are my preference, but it's gotten really difficult to manage. I also find myself asking for more screenshots these days because people can't reliably read and repeat a message on the screen with more than one word in it. I used Notepad++ because I am constantly looking at files with non-printable characters and that's one of the best ways I found short of using a VM.

NP++ has gotten buggy and I want something crossplatform, if at all possible. I started playing with cherrytree in the last couple days and it's pretty awesome. I made a couple of my own note taking applications years ago. They were mostly to keep track of code snippets when I had to play with software written in several different languages. I still pull those up occasionally so I can grab a conditional statement structure in whatever language without digging through the internet for caveats or optional syntax. So I ended up with three half baked poly lingual IDEs that I never took the time to polish. They still serve a purpose.

As I'm trying to figure out why I can't do a deep copy of a node in cherrytree I'm wondering if someone has gone on to use Joplin or whatever and ended up much happier. I essentially want to make templates for clients, products, network information, etc that include nodes and subnodes. I can make a schema for an object in cherrytree, but it looks like I need to duplicate each node and subnode one by one. Then I need to piece them together. I am wondering what someone else that's gone down this path will suggest.

I like it enough that I would consider making a sendkey macro in windows and something with xdotool in bash to do a deep copy. I know it's a sqlite file so I would be okay with some way to deep copy a node from a terminal. I was able to just open the sqlite file from sqlite3 in cygwin and look at the tables. I just don't know the table associations or if I would just trash a file playing.

I can't find anything on an API or some terminal/scriptable way to manipulate anything in cherrytree. If that exists I would be happy to get to reading.

Any help would be greatly appreciated.

47
77 comments
40

I'm running Lubuntu 18.04.

I'm looking for software that can automatically adjust volume for any kind of media based on a user specified volume level, without intervention from the user.

For example, if I visit a website where an audio or video is too low in volume, the software can automatically increase the volume to my preferred level, now, if the audio or video is too loud, it can automatically decrease the volume to my preferred level.

Is there software like this available in the repos or as a flatpak? Thanks.

40
12 comments
39

Hi, I have an MSI x470 motherboard, and I have two SSD drives, one with Debian, and the other Win10 (for necessary work stuff). I want debian to be booted into by default, but when I go into my motherboard, the Debian SSD doesnt even show up on the boot list. I have no trouble booting into it manually upon startup within the motherboard firmware, but I don't want to have to do that every time.

39
19 comments
34

Just installed Pop_OS! on my desktop and have found that, while both my Intel and Qualcomm Killer ports show up... neither works.

My TP-Link Archer T9E wireless adapter card does not show up at all.

I'm struggling to get network connection, somehow. Might be able to solve the rest of the problems if I could get ANY connection to work first.

More info on the three potential interfaces: https://imgur.com/a/MvZrMoF

Edit: For awareness, this isn't yet solved. Input still very much appreciated!

34
18 comments
33

I have a home server and I have it set up with a bash script to encode any videos in ~/2encode folder, output to ~/2move folder, then delete the original video. What I want to do is have it email me, through adding to the script, when it's done encoding so I know to move the finished files in the right categorical folders.

I've tried mutt with sendmail but I'm not getting the emails even though it's saying it sent with no errors. Are there any options or do I actually have to set up an MX server.

33
36 comments
31

I have a question regarding my laptop's soundcard and ALSA.

My laptop's soundcard is a Realtek ALC3254 and it should be able to handle 24bit and up to 192kHz audio. However, whenever I play a 24bit 44.1kHz flac file using a pipe from flac to aplay, it says that only 48kHz audio is supported. My .asound.conf file is as follows:

pcm.PCH {
	type hw
	card "PCH"
}
ctl.!default {
	type hw
	card "PCH"
}
pcm.!default {
	type plug
	slave {
		pcm "PCH"
		rate "unchanged"
	}
}

Running cat /proc/asound/card0/codec#0 confirms that I should be able to play 24bit 44.1kHz audio without resampling as it has the following within the output:

Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Whenever I play a file using cmus (an ncurses-based audio player) with the alsa plugin enabled (and pulseaudio disabled), the output of cat /proc/asound/card0/pcm0p/sub0/hw_params is:

access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 8192

Clearly, some form of resampling is going on since it is changing a 24_3LE 44.1kHz audio file into 32_LE 48kHz. The same happens if I change "pcm.PCH" to "pcm.!default" and remove the plug slave completely. Any help to figure this out would be really appreciated!

31
25 comments
31

KVM is just linux process. so I assume they can access other process or memory if user failed to setup properly.
So KVM is less secure than other products when guests contain malwares?

31
42 comments
31

Hi,

I just started using Linux recently and I'm currently trying to organize everything that was on my original PC. I've done some googling, but (if I understand it correctly) they kind of assume that all of the files have the same kind of name (i.e. abc001.png, abc002.png, etc.). The issue is that a lot of these pictures have remained untouched since I was probably 14 (I'm 23 now and this PC has hardly been used since I got my Mac) and younger me had horrible organizing skills. I have files with all kinds of strange names and duplicates scattered across multiple folders. What I would like to do, after getting everything in their respective folders, is to give them a nice, clean name (i.e. 2007FloridaVacation001.png). Is there a way to do this easily and quickly -- like a terminal command or an application?

Thanks

31
35 comments
29

Is there a way to watch Netflix on 1080p on Linux? I tried using Netflix 1080p extension but its not working and the quality it gives me looks like 360p. I have a good internet connection and I get good quality on Windows.

29
38 comments
29

I'm on a travel and want to downsize to a small tablet PC. Basicly a tablet with keybord. I dont like android or some sort on it, because different modification and the limited coustimisation. My question would be what are your recommondations for this situation? (Office stuff small games, picture and small video edition) Thx in advance.

Cheers

Edit: A laptop is in the most cases too big for.my purposes atm.

29
24 comments
24

I'm getting desperate here... I've got Ubuntu 18.04 running on a Gigabyte Brix box with 8G RAM and 2G of swap.

Something has happened (I guess to my hard drive?) and now every time I plug the network cable in all the filesystems go read-only.

On boot, I've run fsck -y /dev/sda2 several times. It repairs some errors, and then I reboot, and as soon as I plug the network cable back in, it happens again:

root@mybox:/stuff# touch /tmp/test.txt
touch: cannot touch '/tmp/test.txt': Read-only file system

And here's an excerpt from /var/log/syslog that seems relevant:

Oct 22 20:50:19 mybox kernel: [  831.365997] ata1.00: exception Emask 0x0 SAct 0x20000000 SErr 0x0 action 0x0
Oct 22 20:50:19 mybox kernel: [  831.366009] ata1.00: irq_stat 0x40000008
Oct 22 20:50:19 mybox kernel: [  831.366018] ata1.00: failed command: READ FPDMA QUEUED
Oct 22 20:50:19 mybox kernel: [  831.366031] ata1.00: cmd 60/08:e8:60:57:14/00:00:21:00:00/40 tag 29 ncq dma 4096 in
Oct 22 20:50:19 mybox kernel: [  831.366031]          res 41/40:00:62:57:14/00:00:21:00:00/40 Emask 0x409 (media error) <F>
Oct 22 20:50:19 mybox kernel: [  831.366037] ata1.00: status: { DRDY ERR }
Oct 22 20:50:19 mybox kernel: [  831.366041] ata1.00: error: { UNC }
Oct 22 20:50:19 mybox kernel: [  831.369455] ata1.00: configured for UDMA/133
Oct 22 20:50:19 mybox kernel: [  831.369533] sd 0:0:0:0: [sda] tag#29 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Oct 22 20:50:19 mybox kernel: [  831.369539] sd 0:0:0:0: [sda] tag#29 Sense Key : Medium Error [current] 
Oct 22 20:50:19 mybox kernel: [  831.369545] sd 0:0:0:0: [sda] tag#29 Add. Sense: Unrecovered read error - auto reallocate failed
Oct 22 20:50:19 mybox kernel: [  831.369555] sd 0:0:0:0: [sda] tag#29 CDB: Read(10) 28 00 21 14 57 60 00 00 08 00
Oct 22 20:50:19 mybox kernel: [  831.369563] print_req_error: I/O error, dev sda, sector 554981218
Oct 22 20:50:19 mybox kernel: [  831.369623] ata1: EH complete

Any recommendations on how I can get my filesystems writable again?

Thanks in advance!

24
15 comments
23

I have a configuration file where I would like to change a specific line between two possible settings, and I'd like to be able to script it.

For example I want to check if:

<line 3> settingtext = True

Then I want to change it to:

<line 3> settingtext = True

and vice versa (*True to False or False to True).

Alternately if it is possible to change any line containing "settingtext" I'd be good with that too.

Thanks!

23
14 comments
19

Hello, I've had this problem for a while now. I'm trying to change from windows to Linux but the problem I have is whenever I start the os (both live cd and after install) my HDMI monitor works fine however my displayport monitor have a weird problem. I will attach a link to the photo of the problem at the bottom, I have tried many distribution, I tried installing amdgpu driver (Ubuntu 18.04) and using nonfree option on manjaro however nothing works. When I use nomodeset the 'window' have full size of my monitor however I still can't change my resolution. Only cent os 8 is working out of box for some unknown to me reason. Also adding resolution with xrandr doesn't work. I will appreciate if you could help me!

Photo: https://ibb.co/sP3QG04

My gpu is rx 580

19
15 comments
16

Hi. Is there a command to run that verifies if the root account is enabled? Thanks.

16
2 comments
14

i am using ubuntu server with no gui. with shift + pgup i can only view 9 pages or 333 lines of the terminal. is there any way to see more or all previous lines?

14
11 comments
13

Hi, I have read recent article on the Forbes website regarding deepin linux which was headlined...

Meet The Linux Desktop That Will Embarrass Windows 10 And macOS in 2020

...and wondered about the security issues related to using this distribution.

I read there were privacy issues over past couple of years, but not sure if these alegations were ever sustantiated.

any advice regarding the safety of using deepin linux would be appreciated

13
22 comments
13

Running kubuntu 19.04. Have different settings for low battery, but it never actually goes into low battery mode. I dont even get a warning when it gets real low.

Im on a T480s btw.

13
3 comments
13

Hi all, I encountered an issue with both my Ubuntu 19.04 and Fedora 30 systems running kernel 5.3: upon resuming from suspend (on laptop lid open), the logon wallpaper is slow to respond until password prompt appears, after a mouse or keyboard input is sent. It takes about 10 seconds to prompt for the password. My guess is that’s something kernel related, since it happens on both systems, so it’s not apparent distro related, and i had no such issues on older kernel (4.19). I didn’t go into different kernel testing to confirm it, since this version solves another issue i had with my TP-Link wireless adapter (on older kernels, resuming from suspend left the system in black screen and non-responding, a hard reset being needed to return it to working state - i understand this had something to do with USB 3.0 module freeze...). Does anybody else experience the same issue? Is it a known bug, or rather maybe somehing with my installations? Thanks!

13
3 comments
13

I'm currently enjoying a nice experience with pop_os 19.04 over a used thinkpad 440s: everything runs smooth!

In the future i may decide to change hardware, because i have reached the peak expandability (battery, 12gb ram, 256 SSD): so when it finally happens, how can i migrate all the configuration/settings/apps i currently have to minimize my downtime?

thanks!

13
10 comments
Continue browsing in r/linuxquestions

109k

Members

332

Online

Nov 3, 2009

Cake Day

Welcome to r/linuxquestions