sda: ata1.00 sdb: ata2.00 ceea ce ma face sa cred ca e vorba de cdrom :)
multam, asta e ceea ce voiam, adica scriptul de la http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name On Oct 16, 2012, at 12:13 AM, Bogdan BOTEZ <bmbog...@gmail.com> wrote: > La tine cum da scriptul asta? > > On Tue, Oct 16, 2012 at 12:13 AM, Bogdan BOTEZ <bmbog...@gmail.com> wrote: > root@b2011:~# ls -l /sys/block/sd* \ > > \ > > | sed -e 's^.*-> \.\.^/sys^' \ > > -e 's^/host[0-9]\{1,2\}/target^ ^' \ > > -e 's^/[0-9]\{1,2\}\(:[0-9]\)\{3\}/block/^ ^' \ > > \ > > | while read Path HostFull ID > > do > > > > # this nifty line will tokenize HostFull into named substrings ( = > > host numbers) > > IFS=: read HostMain HostMid HostSub <<< "$HostFull" > > > > if grep -q '/usb[0-9]*/' <<< $Path; then > > echo "(Device $ID is not an ATA device, but a USB device [e. g. a > > pen drive])" > > else > > echo $ID: ata$(cat > > $Path/host$HostMain/scsi_host/host$HostMain/unique_id).$HostMid$HostSub > > fi > > > > done > sda: ata1.00 > (Device sdb is not an ATA device, but a USB device [e. g. a pen drive]) > > > bogdanb@box2009a:~$ ls -l /sys/block/sd* \ > > \ > > | sed -e 's^.*-> \.\.^/sys^' \ > > -e 's^/host[0-9]\{1,2\}/target^ ^' \ > > -e 's^/[0-9]\{1,2\}\(:[0-9]\)\{3\}/block/^ ^' \ > > \ > > | while read Path HostFull ID > > do > > > > # this nifty line will tokenize HostFull into named substrings ( = > > host numbers) > > IFS=: read HostMain HostMid HostSub <<< "$HostFull" > > > > if grep -q '/usb[0-9]*/' <<< $Path; then > > echo "(Device $ID is not an ATA device, but a USB device [e. g. a > > pen drive])" > > else > > echo $ID: ata$(cat > > $Path/host$HostMain/scsi_host/host$HostMain/unique_id).$HostMid$HostSub > > fi > > > > done > sda: ata1.00 > sdb: ata2.00 > > > 2012/10/15 Bogdan BOTEZ <bmbog...@gmail.com> > Si asta pare sa ajute: > > http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name > > > > > 2012/10/15 Mircea MITU <mir...@sigu.ro> > On Oct 15, 2012, at 11:40 PM, Bogdan BOTEZ <bmbog...@gmail.com> wrote: > > > Ok, recapitulare: ai mai multe discuri intr-un sistem remote (nu ai acces > > fizic) > > da > > > si vrei sa stii care e cum? Fizic in masina? Unde pe panglica? Cum e expus > > la > > OS? > > obtin erori despre ata3 de la kernel > > acum eu vreau sa identific exact care din hdd-uri e cel afectat de eroarea > asta pentru: > - a-l scoate din raid > - a-i lua SN-ul (cu smartctl) > - a-i zice cuiva de acolo sa inlocuiasca cablurile ce intra in hdd-ul cu > SN-ul de mai sus > > cel mai probabil este vorba de al 3lea port sata de pe placa de baza, insa > asta e greu de identificat sigur si corect, de aceea prefer varianta cu SN-ul > hdd-ului conectat la port > > > _______________________________________________ RLUG mailing list RLUG@lists.lug.ro http://lists.lug.ro/mailman/listinfo/rlug