[SOLVED] mdadm raid inactive, assemble fails with Device or resource busy
location: linuxquestions.com - date: August 18, 2012
Revcently my raid 5 decided to suddenly mark itself as failing and mounted as read-only. After trying to view the hard drives I didn't see any S.M.A.R.T. failures on the drives it said was failing.
So I thought I should just reboot the machine (big mistake, I know).
After googling some more, trying some more solutions, I seem to have actually made the matter worse. So now I'm trying to make amends for that.
First thing first, my raid setup:
I have a Raid 5 with 6x2TB setup.
2 of those 2TB are actually Raid 0 of 2x1TB
Here is the general setup:
/dev/md0 - Raid 0 on /dev/sda and /dev/sdb
/dev/md1 - Raid 0 on /dev/sdc and /dev/sdd
/dev/md2 - Raid 5 on /dev/md0, /dev/md1, /dev/sde, /dev/sdf, /dev/sdh, /dev/sdg
Here is what I've tried:
[SOLVED] programming in microcontroller
location: linuxquestions.com - date: October 8, 2011
I need to know the software tools for programming in PIC and 8051 microcontroller in ubuntu and which is the best suitable linux os for programming in microcontroller.
Thanks in advance!!
[SOLVED] Linux Kernel Programming
location: linuxquestions.com - date: June 27, 2012
Can you please explain me, What is system Stack and what is user stack.
Also, please tell me difference between File Descriptor and inode ?
I tried to read from Charles Crowley but still confused.
[SOLVED] Error binding server socket:  (Address already in use)
location: ubuntuforums.com - date: August 9, 2008
I am trying to install a dansguardian+tinyproxy+firehol combo.
(This is what I'm trying to get to work actually: http://ubuntuforums.org/showthread.php?p=5280340)
My problem is that whenever I try to start dansguardian (after having started tinyproxy), I get this error:
* Starting DansGuardian dansguardian
Error binding server socket:  (Address already in use)
Exiting with error
What I noticed is that when I change the port number 8080 to 8081 for example in firehol.conf and dansguardian.conf, it works.
Why? And most importantly: What is using the server socket 8080? How can I find out?
How do those 3 programs work together?
Here are my configuration files:
# DansGuardian config file for version 184.108.40.206
# **NOTE** as of version 2.7.5 most of the list files are now in dansguardianf1.conf
#CONFIGURED - Please remove this line after configuration
# Web Access Denied Reporting (does not affect logging)
# -1 = l
[SOLVED] Linux udp broadcast socket wierdness
location: linuxquestions.com - date: January 2, 2012
Hi people, not sure this is the best place to ask but I will give it a go.
I've written some code destined for an embedded system but currently running on PCs to broadcast audio around a network.
Two processes run in parallel on each PC, an encoding process called tx and a receiving process called rx.
The tx process reads audio from pulse and sends it as UDP broadcast packets about the rate of 40 packets a second.
The rx processes sets up a UDP socket, sets it to O_NONBLOCK. It then reads packets as fast as possible, each packet of audio is passed to pulse to be played. All seems to work, so far so good.
The weirdness is with the behaviour of "recvfrom". If I run the rx process first then recvfrom returns a mixture of -1 (EAGAIN) and the size of the received packet, it does not block. If I run the tx process, then start the receive process second then "recvfrom" blocks and only returns the size of packets.
For example if I print the result of
[SOLVED] bind() returns EINVAL with PFINET socket
location: linuxquestions.com - date: December 13, 2009
I am trying to write to write some functions to create and either bind or connect an internet socket. I am having a problem with the following section:
[SOLVED] problem with ethernet loopback test using loopback plug/stub: receiving socket not se
location: linuxquestions.com - date: August 18, 2010
we are writing socket application to send UDP packets out from eth1
and loop it back to
the same interface using loopback stub to verify the hardware without
devices/ports. The sending and receiving port are the same.
our target machine has eth0 configured as 15.6.xx.xx and eth1
configured as 220.127.116.11.
the listening socket is listing on all ip.
When we looked at the packet in the tx code of the driver, we have
observed that the packet passed down from the ip stack has the same
MAC address for both source and destination. Also when packet is
returning, its ip source and destination are the same as the
transmitting packet, which is to be expected.
The outgoing packet on eth1 has ip address of 18.104.22.168.
1. Is this type of loopback possible under linux?
2 If not, what if we were to use raw socket to bypass ip stack? can the destination then be 22.214.171.124, and the packet will be delivered to the driver as opposed to being loopbacked
[SOLVED] Remote Client Mac Address on socket descriptor
location: linuxquestions.com - date: December 14, 2010
I want to get the connected client MAC Address after accept() call. I can get the IP address of the client but i don't know how to get the client MAC Address in my this programme. Here I am Posting my Code. Any Guide Line or Solution will be appreciated.
int socket1, socket2;
socket1 = 0;
socket2 = 0;
struct sockaddr_in server, client;
int returnstatus = 0;
socket1 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if(socket1 == -1)
server.sin_family = AF_INET;
server.sin_addr.s_addr = INADDR_ANY;
server.sin_port = htons(8888);
returnstatus = bind(socket1, (struct sockaddr*)&server, sizeof(server));
if(returnstatus == -1)
returnstatus = listen(socket1, 5);
newbie game programming socket
location: linuxquestions.com - date: October 31, 2012
Just another newbie in Linux.
I found tutorials on google and wrote my first socket. I requested services by an adobe air client program I wrote on windows and the socket is responsive but there are 2 problems I can't find examples/tutorials for, hopefully you could guide me please.
1. I have to start my socket as:
What is the best way to auto-start this socket program I wrote, when the machine is started?
2. What is the best way to keep this socket always alive? Should it be a kind of a 'socket manager daemon'? If so, where or with which keywords I could find examples from google please?
I sometimes see that when I leave the socket open, it dies after a while, may be there is a timer somewhere I don't know, for such programs.
Please point me to the right direction. Thank you in advance.
[SOLVED] gprof strace blows up on recv
location: linuxquestions.com - date: February 20, 2013
I am reading data from a remote site, lots of data.
I peek at the data, to see how big the frame is: (16 bytes peek)
Page: 1 2 3 4 5 6 7 8 9 10