General :: Identify Two Scsi Devices - Which Disk Corresponds To Which File In /dev/ Directory
Mar 24, 2011
Suppose during a script execution I am attaching one or two new disk having different vendor id to host machine, how do I know which disk corresponds to which file in /dev/ directory? i just want to perform some operation on those device from some script, how will i know which file in /dev directory correspond to which disk(having same size but different vendor id).
View 1 Replies
ADVERTISEMENT
May 4, 2010
When I enter "cat /proc/scsi/scsi" I'm returned with "cat: /proc/scsi/scsi: No such file or directory". I've tried this on two different installs on two different machines.
View 6 Replies
View Related
Dec 22, 2010
I have a virtual machine with Solaris 10. On this virtual machine I have to configure an iSCSI initiator.
The problem is that i have no physical SCSI devices to connect to my LAN
Therefore I have to create a Virtual SCSI device on my host laptop and configure it as an iSCSI server (iSCSI target) and share this virtual disk on the LAN.
View 4 Replies
View Related
Apr 11, 2011
In my understanding, the way /proc/scsi/scsi gets populated, /proc/paritions also gets populated in the same fashion. i.e. the description for first entry of /proc/scsi/scsi can be seen in the first entry of /proc/partitions and same for rest.
So, With this assumption, in my project, I used to relate first entry of /proc/scsi/scsi with first entry of /proc/partitions to get its total size and same for all entries.
But, I observed some differences in following scenario, where
1) The first 4 entries in /proc/scsi/scsi are SAN luns attached to my system and for which the actual device names in /dev/ are sda,sdb,sdc and sdd.
2) The last 4 entries are the internal HDDs on same system. In /dev/, their respective device names are sde,sdf,sdg & sdh.
(Output attached at end of the thread)
But in /proc/partitions, the device order is different.
You can see their respective sizes in /proc/partition output as well.
So, my question is, in this particular scenario, I can't relate the first entry of /proc/scsi/scsi with first entry of /proc/partition. i.e. scsi0:00:00:00 is not /dev/sde, because it is actually /dev/sda.
It seems that my assumption is wrong in this scenario.
Is there any way or mechanism to figure out actual device name for an entry in /proc/scsi/scsi in /dev/ directory?
How can my application should relate /proc/scsi/scsi entries with their respective device names and sizes?
View 2 Replies
View Related
Jan 1, 2011
I am testing PCLinux 2009.1 prior to installing. My desktop currently runs on ME and has been out of use for some time. It still works however and I can still get online. I'm currently using a laptop running XP. I would like to make use of my old desktop and tried to test PCLinux 2009.1 today. I followed the instructions obtained online and booted from the Linux cd. The pc booted up ok and displayed the first screen allowing me to select the "Live CD" option. After enter my system hung up at "Probing SCSI Devices:Segmentation fault".
View 2 Replies
View Related
Mar 9, 2010
As we know in Linux both SATA and eSATA disks are enumerated on /dev/sd[x] path. Is there a way using which i can identify if the device is an internal SATA or eSATA?
View 1 Replies
View Related
Sep 30, 2010
currently my disk-space is growing very-very fast and in the same time I have a very limited amount of it.Last time I had this kind of problem, I had MySql persistence replication is on and disabling the feature fix the problem. I don't know what happened between now and then, the space is shrinking rapidly (600Meg in couple of days) and I only downloaded files for less than 10Meg in the same period.
Could anybody give me a pointer to a tool that can oversee growing directories or files or maybe a script that able to do this (possibly involving Cron). I try using "Find" but I cannot find any files that are suspiciously growing. I suspect it's a directory that is growing, but I don't know.
View 5 Replies
View Related
May 12, 2010
Need help on how the scsi and multipathing works in Linux. From the docs i have read, i understand that by the use of multipathing we can assign multiple paths to a SAN partition. If there is a problem then one path will failover to other path.However, i am not clear on how linux recognizes the SAN partitions using the multipath drivers. For e.g. I have a HP Proliant server on which we have the following mounts:
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p3 59G 11G 46G 20% /
/dev/cciss/c0d0p1 494M 27M 443M 6% /boot
[code]...
View 3 Replies
View Related
Jan 23, 2010
What is the purpose of SCSI emulation for IDE devices?
View 2 Replies
View Related
Jul 22, 2011
i was fooling around with ATI graphics settings and after i went to reboot my Desktop it kept comming up with odd symbols instead of a log in screen, then i started to try and do things with a LiveCD and screwed things up even more so now any time i attempt to boot, even into recovery, it stops at the line
[2.573600] sd 6:0:0:3: [sde] Attached SCSI removable disk
i have tried to do multiple fixes with no avail and i am not very savvy with linux as i have only been using it under a year, so it would be awesome if anyone could help this is 10.10 Maverick and the 32bit version,
View 2 Replies
View Related
Jan 14, 2010
I am booting RH 5.4 over network (PXE) with custom initrd.img. I managed to get NFS working and switch root and do normal RH /sbin/init, but as RH boots it complains about /proc/devices missing:/proc/devices: fopen failed: No such file or directoryThe file is indeed missing, even though I'm doing "modprobe dm_mod" before. But still /proc/devices is not created. What am I doing wrong?init script for that initrd.img:
Code:
#!/bin/bash
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/kerberos/lib
[code]....
View 2 Replies
View Related
Jul 6, 2010
So I have a system that is about 6 years old running Redhat 7.2 that is supporting a very old app that cannot be replaced at the moment. The jbod has 7 Raid1 arrays in it, 6 of which are for database storage and another for the OS storage. We've recently run into some bad slowdowns and drive failures causing nearly a week in downtime. Apparently none of the people involved, including the so-called hardware experts could really shed any light on the matter. Out of curiosity I ran iostat one day for a while and saw numbers similar to below:
[Code]...
Some of these kinda weird me out, especially the disk utilization and the corresponding low data transfer. I'm not a disk IO expert so if there are any gurus out there willing to help explain what it is I'm seeing here. As a side note, the system is back up and running it just runs sluggish and neither the database folks nor the hardware guys can make heads or tails of it. Ive sent them the same graphs from iostat but so far no response.
View 1 Replies
View Related
Jun 23, 2011
Some of our workstations have LTO's attached and they seem to drop off every now and again, the only thing which picks them up again (besides a reboot) is the famous rescan-scsi-bus script from here
The thing is that I'd like non-root users to be able to run this script, which in turn needs root to /proc/scsi/scsi
View 2 Replies
View Related
Nov 16, 2010
The output of my fdisk command is as follows :-zodiac@gml-admin:~$ sudo fdisk -l[sudo] password for zodiac: Disk /dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63sectors/track, 19457 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe30ce30c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS
/dev/sda2 1959 4752 22437838 f W95 Ext'd (LBA)
[code]...
View 2 Replies
View Related
Feb 23, 2010
I have a 4 disk software RAID array made up of Seagate drives. Let's name them sda, sdb, sdc, sdd. And let's say SDC is failing. Big question. How do i find out which of the 4 physical drives it is? They all look the same to me when i open up the PC case. Maybe some utility which will load up heavy usage on just one drive and i will try to put my finger on them and figure out which one is vibrating? Or maybe there is a smarter way?
View 1 Replies
View Related
May 6, 2009
I see to be having a problem with the SCSI disk that I'm trying to install. The computer that it is attached to was Win XP and SCSI worked fine. When we changed the computer over to Fedora 10, SCSI was being read by the computer but is not accessible.
View 5 Replies
View Related
Apr 29, 2010
is there any way to find out whether a disk is attached to the server locally or from the SAN Box .
View 4 Replies
View Related
Feb 20, 2010
Write a script that will take a list of filenames as arguments and output a count of how many of them are regular files, and how many of them are scripts (if the file is executable, it will be assumed to be a script file)
Counts always come back as 0
View 5 Replies
View Related
Apr 16, 2010
The system is fc12 with a scsi pci card. There are 4 disks on the scsi chain, properly terminated. At boot time the system does not recognize the 4th drive. It creates a /dev/sdh entry, but the individual partition entries are not created. fdisk /w creates the /dev/sdh* partition entries. After that the drive is recognized by the system.
Is there record of the device scan activity? What could cause the boot process to identify the drive but stop short of identifying the partitions.
dmesg output seem normal
scsi3 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
<Adaptec (Compaq OEM) 29160 Ultra160 SCSI adapter>
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsi: waiting for bus probes to complete ...
[Code].....
View 4 Replies
View Related
Nov 20, 2010
I am trying to mount a a Magneto Optical WORM drive, mechanically it is a 2.6 Gb, 1024 Bytes/Sector, 5.25", Verbatim Media, The disk was created under OS-2.
I am using CentOS 5, and have tried mounting the disk as msdos and as vfat and get superblock errors among others.
what filesystem type did OS-2 use? is there an add on to CentOS that will support the filesystem?
View 6 Replies
View Related
Aug 28, 2011
I want to install Linux on my laptop. I started with Arch but 4 hours later, I'll take anything so now I'm trying Ubuntu.It appears that the keyboard function button that corresponds to my wireless does not work, and perhaps is windows dependent?Every time I try to interact with wlan0, I get the error "Operation not possible due to RF-kill". And as I've looked around online, it has been suggested in other forums that the only way to resolve this is to reinstall windows and dual boot, so the FN key will work.
I think this is ridiculous. There must be a way to persuade the RF-kill to be turned off again, shouldn't there?I don't have a recover disk for this laptop and I don't want to go through the trouble of requested one from acer. I reformatted the whole disk while attempted to install arch.
View 1 Replies
View Related
Nov 3, 2009
I'm trying to use dd to build a driver disk. I've done this before without a problem (link). Here is the command I'm using:
dd if=hpahcisr-1.2.1-6.rhel5.x86_64.dd of=/dev/sdb
This is the error I'm getting:
pr: is: No such file or directory
pr: compulsory: No such file or directory
pr: variable: No such file or directory
pr: is: No such file or directory
pr: G_prt: No such file or directory
pr: with: No such file or directory
pr: default: No such file or directory
pr: G_prt: No such file or directory
pr: subform: No such file or directory
pr: SLM0A01.scr: No such file or directory
pr: adpr_prnt: No such file or directory
pr: overlay: No such file or directory
pr: at: No such file or directory
pr: 22,8: No such file or directory
/usr/local/bin/dd: line 2: PR: command not found
/usr/local/bin/dd: line 3: ]: command not found
Now, just to check, I just typed "dd" on its own, and I get the same error. I'm not very experienced with Linux, so I'm lost!
View 5 Replies
View Related
Mar 26, 2010
I am developing for a Linux based device for which the HOT PLUG option is deactivated. As part of optimizing the code, we also don't want to create device files for unused devices. We understand that both USB attached and fixec SCSI hard disks would create device files like /dev/sda,/dev/sda1 /dev/sdb, /dev/sdb1 etc. Is this understanding correct?
In the case of USB attached SCSI devices, would driver create this device file entry? How is it created? Can somebody please tell me how it is being created automatically. In case I attach a fixed SCSI hard disk before boot up(and create device file /dev/sda1), would USB SCSI device driver create device files starting from /dev/sdb, automatically.
View 4 Replies
View Related
Jul 5, 2010
I have three disk in my system. One SATA (250GB) and two SCSI (73GB) disks. The Two SCSI disks were installed originally and RHEL3 is installed on it. The SATA disk is installed a few years later with RHEL5. As you can see below, the boot sector is still on one of the SCSI disks (sdb1).
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 236545184 15259760 209075624 7% /
/dev/sdc2 68539636 4578792 60479160 8% /users
/dev/sdb1 101089 26847 69023 29% /boot
/dev/sdb3 68437272 36963704 27997104 57% /RHEL3U7
tmpfs 2025916 652 2025264 1% /dev/shm
How I can move the boot sector from the SCSI disk (sdb) to the SATA disk (sda) without losing data and without re-installation?
View 6 Replies
View Related
May 16, 2011
I have to create a script to identify those users who have un-sanctioned (forbidden) files in their home directory. I tried something like this (this is a try and I need some opinions):
Code: #!/bin/bash
user_belongs() {
if `groups $var1 | grep $var2`
then
return 0 else
return 1
fi
} .....
View 1 Replies
View Related
Feb 15, 2010
i m facing same error in most of the HCL servers. the problem is that it throws error while booting and sometimes not throws error. the error is :-
Feb 13 13:17:25 fe13s kernel: Adapter 0: Bus A: The SCSI controller was reset due to SCSI BUS noise or an invalid signal. Check cables, termination, termpower, LVDS operation, etc.
Feb 13 13:17:30 fe13s kernel: Adapter 0: Bus B: The SCSI controller successfully recovered from a SCSI BUS issue. The issue may still be present on the BUS. Check cables, termination, termpower, LVDS operation, etc
Feb 13 13:29:15 fe13s kernel: Adapter 0: Bus B: The SCSI controller successfully recovered from a SCSI BUS issue. The issue may still be present on the BUS. Check cables, termination, termpower, LVDS operation, etc
code....
View 2 Replies
View Related
May 29, 2010
Trying to boot Ubuntu live CD 10.04 and getting some problems. I will get to the section where I have to pick a language and then choose the option to run from the CD. It will start to load and then it will hang up at "[sdb] attached scsi removable disk". I unplugged all of my external HD's. I burned the 32 bit version because it was recommended on the site.
Asus
Pentium Dual core CPU E5400 @ 2.70 GHz
5 Gigs of RAM
Current clock speed 2700MHz
Running Windows 7
View 5 Replies
View Related
Mar 25, 2010
I am trying to get the total file size for certain files per directory.
I am using
find `pwd` /DirectoryPath -name '*.dta' -exec ls -l {} ; | awk '{ print $NF ": " $5 }' > /users/cergun/My Documents/dtafiles.txt
but this lists all the files in the directories.
I need the total per directory for all dta files.
View 2 Replies
View Related
Jul 9, 2010
I ahve configured MRTG to generate bandwidth utilization graphs of Network devices.
I ahve configured 30 Network device ( Cisco Switches and Routers), For most of the devices MRTG is working fine but for some devices it is not able to generate log file and giving the following error:
View 4 Replies
View Related
Sep 28, 2010
I have several USB mic, and would like to which one correspodn to which /dev/ from command line. Is it possible under ubuntu?
View 3 Replies
View Related