Ubuntu Servers :: Using Identical Devices With Udev?

Jan 12, 2010

I have two identical hard drives; same make, same manufacturer, same model, and same capacity, which I'm trying to run in a RAID1 mirroring scheme. The problem: configuration files for md arrays only lets me use device names, such as /dev/sdb and /dev/sdc. To keep these the same (and in the same order) when I boot I wanted to write a udev rule for them. Unfortunately, I have no way to differentiate between these two drives, as they seem to be identical. Normal methods of differentiating by size or model name wont work. I think I can use UUIDs; but I neither know how to get the UUID of a device/partition, nor do I know how to use it (if it is possible) in a udev rule.

Solution:

run
udevadm info --query=all --path=/sys/block/sdb # or whatever block dev

Look for and use "ID_SERIAL_SHORT" which is unique even for identically manufactured disks. Write a udev rule based on this property.

View 2 Replies


ADVERTISEMENT

CentOS 5 Hardware :: Multiple Identical Devices With Symlinks

Jan 17, 2011

At work, I have a laptop configured with CentOS 5.5 that we will be using to run latency tests on two different mobile networks. To do so, we have two Novatel USB HSPA+ wireless modems connected, and configured using wvdial. The problem we are having right now is, wvdial is configured using the path to the modem to connect (/dev/ttyUSB0 for Network#1 and ttyUSB5 for Network#2), which only works if we insert the modems in the right order. I've tried alot of udev rules and what not to try and hard code the device names to something like /dev/modem_network1 and /dev/modem_network2, but that doesn't seem to work.

So at this point I'm trying to take a step back and a fresh look at the problem. Can anyone give me any information regarding where I should begin to get this done?

View 9 Replies View Related

Ubuntu Networking :: Udev Rule Is Ignored For Eth Devices?

Jun 3, 2010

I'm trying to set my network interfaces so that they don't get random every boot.(eg assign eth0 to a network interface with a given MAC addr, and eth1 to the other one)I trew in a udev rule (in fact just modified the rules that was automatically generated and set the ethX in it) but the system ignores my udev rule.What am I missing ?Here is all the info :

Code:
$cat /etc/udev/rules.d/70-persistent-net.rules
# This file maintains persistent names for network interfaces.

[code]....

View 3 Replies View Related

Networking :: Bind The Devices To Specific Rfcomm Interfaces Via Udev?

May 8, 2010

# rfcomm -a
rfcomm0: 00:1A:89:09:8C:77 channel 1 clean
rfcomm1: 00:07:E0:2E:99:43 channel 3 clean
Then I connect by the mobile, and:
# rfcomm -a
rfcomm0: 00:1A:89:09:8C:77 channel 1 clean
rfcomm1: 00:07:E0:2E:99:43 channel 3 clean
rfcomm2: 00:1BC:0F:5C:AB -> 00:07:E0:2E:99:43 channel 1 connected [reuse-dlc release-on-hup tty-attached]

What the heck is that rfcomm2, when that mobile is bound to rfcomm1? Is it udev that makes fun of me? If so, how to bind the devices to specific rfcomm interfaces via udev?

[Code]...

View 9 Replies View Related

Red Hat / Fedora :: Two Identical Servers - Bare Metal Clone

Apr 8, 2010

I have two identical servers, one has RHEL 5 and Zimbra installed and the other is currently not really doing anything. Both have hardware RAID (Adaptec) set to RAID10, identical hard drives, etc. The RHEL/Zimbra machine is set up with LVM2. Is it possible for me to hook them up on the secondary NICs and boot the second machine with Knoppix or something else, and easily tell it to duplicate the first machine onto the second, down to the last bit, or do I need to make all the partitions beforehand and dd each one separately?

View 5 Replies View Related

Ubuntu Servers :: Udev Rules To Check If File Exists?

Jun 9, 2011

Is it possible to set up a udev rule that will check if a file exists on a USB drive?

I've got a few ubuntu servers in environments with some very not-techy peoples. Im hoping to get to the point where I can give them a few USB sticks with scripts on them, and if they plus one of these sticks in it will be mounted in, say, /media/special (rather than /media/usb0..7) and then the script would be run. But if a usb drive without special.sh is inserted, it should be mounted to /media/usb0..7 as normal.

I've been googeling for udev rules, and it seems simple enough to specify a mount point based on brand/model/serialnumber/etc... but i havent been able to find anything about checking for the existance of a file.

Tho the more i think about it, the more im starting to think its not going to be that straight forward. Can udev check for a file on a drive before that drive is mounted? Is it going to be a case of mounting every drive to /media/usb0..7 then having a script run that will check for the file, and if its there change the mount point before running special.sh?

View 1 Replies View Related

Ubuntu Servers :: Udevadm Trigger Is Not Permitted While Udev Is Unconfigured

Aug 27, 2011

I'm having a bit of a nightmare with my ubuntu hardy server (using hardware raid 1+0). Following a power cut I get the message "udevadm trigger is not permitted while udev is unconfigured" on boot. Before the power cut the server had been up for ~450 days.

I managed to get access to /boot (which was empty) by using the repair option on the alternate cd and mounting /dev/myserver/root. I've installed the packages linux-headers-server, linux-image-server and linux-server. The various 2.6.24-29 files were installed and update-initramfs was automatically run (I noticed others have used update-initramfs to solve this error when upgrading from 8.04 to 10.04 in some posts I've read). No luck with this though - just the same error booting. I've also tried reinstalling udev, but again with no success.

I rebooted and pressed the Esc key to get the boot menu up. Only options were for kernel 2.6.24-26 (rather than the 2.6.24-29 just installed). I ran the recovery option anyway and got "/dev/mapper/myserver-root does not exist".

View 1 Replies View Related

Ubuntu Servers :: GParted Has Renamed MD Devices?

Jun 28, 2011

I am running a test installation of Ubuntu 10.04 Server on a Virtual Machine (VBox specifically) in order practice recovering RAID problems. When I initialy created the RAID arrays I created a MD Device named "md0" with an ext4 file system and "/" mount point. My other RAID array was called "md1" and was used for swap.When loading GParted off of a bootable disk I noticed that the devices were changed from md0 and md1 to md127 and md126. I shut down the VM and on reboot grub rescue shows up saying that disk can not be found and using "ls" lists the MD devices as they appeared in GParted (md127 and md126).

I rebuilt the OS via importing an backup Appliance and repeated the same thing. Boot into Ubuntu, success, then sudo shutdown, boot into GParted, note md device name change,shutdown, boot into Ubuntu, grub rescue.Is there anyway to stop this from happening(in the event that GParted must be used on a Physical Machine). Or a way to revert the problem after GParted messes the system up?Edit: I talked with one individual who suggested changing the md device names to md 127 and md126, but I am looking for a more robust solution than taking a shot in the dark that GParted will set the same names on other systems.

View 4 Replies View Related

Ubuntu Servers :: OpenVPN Local Devices Not Accessible

Nov 26, 2010

I've setup openVPN using bridging following these guides

[URL]

I'm running Ubuntu Server 10.10 My clients can connect and get their own IP within my ip range (192.168.1.x) They can ping each other and I've tested I can use the connection a lan game and a windows RDP connection. The problem is I cannot access any of the actual local network devices except the vpnServer. Is their something else that needs to be done to allow full network access?

View 5 Replies View Related

Ubuntu Servers :: Share The Internet Connection To Wireless Devices?

Mar 27, 2010

if i set up an older computer as a local DNS server for my home network, can i plug my wireless router into one of the ethernet ports to share the internet connection to my wireless devices?

View 2 Replies View Related

Ubuntu Servers :: Machine Name Not Showing In Router Attached Devices List?

Nov 17, 2010

As the title says the machine name is not showing up in the attached devices list on my router. Is there a file where I need to add the name? Or is this an issue with the router? The router finds all the other machine names on the network except my 3 servers.

Ubuntu Server 10.04 Lts
Ubuntu Server 10.10 Lts

View 3 Replies View Related

Ubuntu :: Identical UUID's On Two Different Hdd's

Sep 29, 2010

I have discovered that I have two partitions, on separate hdd's with identical UUID's, and the system switches back and forth erratically on restarts between the two different partitions, giving me the current /home or the /home of two months ago when I did the upgrade.

View 7 Replies View Related

Ubuntu :: 10.04 RC - Is It Identical To The Final Product

Apr 29, 2010

I have RC now, downloaded a week ago. Thinking of re-installing the final one when it's out (very soon!) will there be any difference?

View 9 Replies View Related

Ubuntu Servers :: Mainboard And Storage System - How Both Storage Devices Will Be Supported By Debian

Mar 11, 2011

I'm interested in buying a new hardware for my company. The old server (now 10 years old) should be replaced with a new one. Till now, I was looking on different hardware suppliers, boards and different other places. I found a Tyan board [URL]. The hardware spec is quite interesting and the board would fullfill our claims.

how both storage devices will be supported by Ubuntu or Debian??

- SATA-Controller: AMD SP5100
- SAS-Controller: LSI 1068E

View 4 Replies View Related

Ubuntu :: Printing - Identical Scenarios, Different Results?

Jun 3, 2011

I'm running Edubuntu 10.10 64 bit on an LTSP box here at work. Two of them, in fact. In each instance, we have a Ricoh MP2500 network printer.

Scenario 1 - I print, it works. Scenario 2 - I print, the printer heats up, the wheels spin, yet it never actually prints a page. Each box is from the same Edubuntu install CD. Each box is set up as identically as possible with very minimal differences (aside from software set, as one is for Middle School and the other for High School) Each scenario has an identical printer. Each scenario has the same printer driver.

View 3 Replies View Related

Hardware :: Boot With Two Identical Drives?

Sep 3, 2010

How do I boot with two identical drives? I have two identical Western Digital WD6400AAKS SATA-II 7200 rpm 640 GB hard drives. One of the drives is an internal drive on one machine. The second is available with a mobile drive bay. I can't boot the system with both drives installed. The kernel boots fine but then halts when handing off to init. The error message is:

Warning: unable to open an initial console
...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

I can place the mobile drive in a different system that does not have the same drive installed and that system will boot fine from either drive. I'm reasonably certain the problem is caused by the two drives being so identical. I suspect the problem is the kernel cannot distinguish the difference. The model numbers are identical. No, I don't have other SATA drives to use. I am not using raid. The BIOS is not configured to use raid. How do I boot with two identical drives?

View 4 Replies View Related

Programming :: Cannot Match Strings That Appear To Be Identical

Feb 25, 2011

i have an sql table with 2 columns i run a script that randomly selects a word from the table in column 1.
the word is displayed on the screen and I guess what it means i concatenate the randomly selected word and the answer the script looks for a match in mysql if it finds a match it says "Good job!" if there is no match it will say "not correct". However when i get it right it says not correct even though when i echo the variables they look exactly the same. the script below:

#!/bin/bash
var=$(mysql translator -u root --password=*-N<<EOF
SELECT word FROM tagalog ORDER BY RAND() LIMIT 1
EOF
)

[Code]....

View 4 Replies View Related

Ubuntu :: Desktop Suddenly Identical To Places - Home Folder

Jun 7, 2010

Suddenly, my "Places --> Desktop" folder is identical to my "Places --> Home Folder". This happened by accident somehow, and the folders and files in my Home Folder "/home/rj" are displayed on my desktop, and I don't want them to be.

When I click on "Places --> Desktop" it's as if I've clicked on "Places --> Home Folder" (the "File Browser" directory opens, the location is set at "/home/rj", and the title at the top is "File Browser").

Elementary stuff for a lot of you, I'm sure, but I'm blanking on how the Desktop folder can be restored to what I'd like it to be (basically empty, except for a "Downloads" folder), and my folders and files kept off the actual desktop (except for the "Downloads" folder).

View 9 Replies View Related

Ubuntu Installation :: Network Settings When Cloning To Identical Hardware?

Aug 9, 2010

The company I work for use Ubuntu on the PC's that control the system they manufacture. To simplify and speed up the OS install we use a standard PC (all the same hardware) and install a disk image on each system. The disk image was produced from one of the systems and the network settings were set to use a Static IP

However every time we clone a system the network settings change from the static IP settings to Roaming Mode.

why this happens or if it is possible to have the static IP settings remain after the clone?

View 5 Replies View Related

Fedora :: Clone The Identical Hard Drives?

Jan 12, 2010

I have two identical 73 GB Scsi ulta320 scsi drives, Fedora web server is install on one drive with all web files and etc. I wish to make an exact clone of the drive that will boot and run everything as the current drive does now. Is there a download of a program I could download or purchase that would boot and make an exact clone to do the above.

View 6 Replies View Related

Hardware :: Can't Move Drive To Identical Laptop

Oct 7, 2010

I have two identical laptops. One has an installed Ubuntu and parts that I want to use. The box itself is all beat up. The other box is newer but has a stale edition of linux. (Stale software means "seldom used.") I thought to be clever I would pull drive-A from box-A and install it into box-B. Likewise, I would install drive-B into box-A. This will leave my clunky software on my battered box and my newer software on the newer box.

Mechanically it works (doh!). However, neither box will see the network. When I look at the logs, I find a "rename wlan0 to wlan1" entry among others. If I put the drives back into their original box, all works correctly.

What could be going on that I cannot move the drives and have things just boot and run?

I thought that system start would detect the installed hardware, load the required drivers and all is right with the world. The "rename" log entry suggests that the old hardware details are somehow in the way of the new hardware discovery and configuration.

Is there some command I need to use or utility that I ought to run that says, "rediscover my hardware" or similar?

I already know how to use clonezilla and other ways to duplicate a drive contents to a second drive. (Note to reader: laptop drive to usb drive clonezilla takes quite some amount of time.)

Another reason that this is important lies in the ability to move a drive from in-use but failed hardware to stand-by working hardware in a fail soft recovery situation. I know that win-doze knows about the installed hardware and demands a re-install or "repair" to the alternate box... but this is linux not win-doze.

View 11 Replies View Related

CentOS 5 :: Automated Install Of 20 Identical Boxes

Feb 12, 2010

What's the consensus on the least hassle-prone method to do a bare metal install on multiple machines? I've just been handed a network with 20 identical servers (they're ~4 year old HP quad-Opteron machines with identical hardware configs). They're currently running a mishmash of stuff and I've been told I can re-purpose them. I'd like to create a generic kickstart and pave over them all with CentOS 5.4 with the only difference being the IP address for each machine. I have physical access to the machines and already know the MAC address for each one. Sadly, they are racked up and have no floppy or optical drive, but they DO have an exposed USB port on the front panel.

View 5 Replies View Related

Fedora Servers :: Gnbd_import ERROR "could Not Find Gnbd Registered In /proc/devices"

Jun 9, 2009

I am trying to import a gfs2 filesystem using gnbd_import, but I get the error: gnbd_import: ERROR could not find gnbd registered in /proc/devices. This probably means that you have not loaded the gnbd module. yum provides gnbd.ko does not list any packages. Where can I find the gnbd module?

View 2 Replies View Related

Debian :: Swapping Hard-drives With Identical Motherboards

Jul 7, 2011

I have two servers (A and B) which are identical. My idea was to have a software RAID 1 with both of them running and if server A craps out I wanted to swap the hard drives from server B into server A. When I tried to test this idea the network driver doesn't seem to want to cooperate. ifconfig gives nothing and I can't figure out why. From googling I've read that a network card has a unique ID on it (I'm assuming their talking about the MAC address) and is used in some config files which is why swapping hard drives gives two different MAC addresses and confuses the system. If that is so would anyone know exactly what config files the mac address is stored/used in? That way I can make a backup of those files and swap those out if I ever need to swap out the hard drives.

View 2 Replies View Related

Fedora :: Two Entries - Identical Ones - Of The Same App Under Applications On My Gnome Panel

Jan 24, 2011

I have two entries (identical ones) of the same app under Applications on my gnome panel. How can I remove one of them?

View 5 Replies View Related

General :: Script To Remove Identical Items From Folders?

Jun 15, 2011

I am trying to do a comparison of two folders, let's call them dir1 and dir2 and remove any items that have the same file name in both folders from dir2.

View 4 Replies View Related

Networking :: Using Iptables To Route/forward To Identical LANs?

Jul 18, 2011

The goal is to make connection calls (ssh, ping, ...) possible from one LAN (LAN-1) to a number of (at the moment two) separate smaller LANs.These smaller LANs (LAN-2a, LAN-2b, ...) have exact same specifications (same IP range, same number of nodes, ...)!The idea is to use a Fedora box (release 14 with 2.6.35.6-45.fc14.i686) and implement an appropriate iptables routing/forwarding.The Fedora box has three network interfaces:

- eth0 (aaa.bbb.ccc.m) on LAN-1 (aaa.bbb.ccc.0/24)
- eth1 (ddd.eee.fff.n) on LAN-2a (ddd.eee.fff.0/27)
- eth2 (ddd.eee.fff.p) on LAN-2b (ddd.eee.fff.0/27)

[code]....

View 10 Replies View Related

General :: Finding And Remove Block Of Identical Strings?

May 16, 2011

i have a problem in finding block of identical strings...i solved the problem in finding consecutive identical words and now i want to expand the code in order to find and remove consecutive identical block of strings... for example the awk code removing consecutive identical word is:

Code:
#!/usr/bin/awk -f
BEGIN{
RS="[[:space:]]+";
ORS=""

[Code].....

View 2 Replies View Related

Software :: Logwatch Has Identical Entries For Disk Space?

Apr 14, 2010

I have logwatch 5.2.2 setup for 51 RHEL servers (mostly RHEL 4.8) and they all forward to a central server for a single email to be sent each day. This part works great. However, the "Disk Space" section is identical for every one of the entries. Obviously, this cannot be true for every server. What do I need to adjust such that real disk space data is being reported (or at least reported for the servers that are running low)?

The other entries like sendmail, pam_unix, and sshd data are working great and unique for each server.

View 3 Replies View Related

Debian Multimedia :: Dual Monitor Setup - Two Identical Outputs

Sep 2, 2015

Just installed Debian 8, coming from Ubuntu12, it seems I cannot get my dual monitors to work as it should.

I want two monitors side by side, currently I have two identical outputs. I looked around a bit and register two possible problems.

root@bigcem101-debian:/home/bigcem101# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 400, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm

1024x768 0.00*
800x600 0.00
640x480 0.00
720x400 0.00

Hence, problem 1: it is as if there is only one monitor detected. Then I tried to look for Xorg.conf ..... and: problem 2 xorg.conf is not there. This seems to be normal but when I installed my Ubuntu years ago it was still there and one could manually set things. There must be something new I am missing.

Card:
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV670 [Radeon HD 3690/3850]

It seems I have both ati and radeon installed.

root@bigcem101-debian:/home/bigcem101# X -configure
(EE)
Fatal server error:
(EE) Server is already active for display 0

I am clueless.

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved