From: Stephen Hughes (stephenh_at_Medscheme.co.za)
Date: Tue May 23 2006 - 14:57:52 CEST
Date: Tue, 23 May 2006 14:57:52 +0200 Message-ID: <CA1361E9F77A4243A99E04D98F5CC724023E8E9C@ZARDPEXCH001.medscheme.com> From: "Stephen Hughes" <stephenh@Medscheme.co.za> Subject: RE: [suse-sles-e] Adding Disk on the fly
Hi Group,
Thanks for all your help with this matter. I managed to use the
rescan-scsi-bus.sh command on one of my servers to add a SAN attached
disk, but now I've assigned more disk to another server I have running
SLES9. I run the rescan-scsi-bus.sh command with the various switches
but it still does not pick up my new disk. Below id the output from my
lsscsi command as well as the command I ran to try and pick up the disk.
The new disk according to my Navisphere client should come in after
/dev/sdbp.
I also looked at some of the other replies but I don't have the rescan
file to echo a "1" to as suggested in one of the replies:
"# echo 1 > /sys/bus/scsi/devices/0:0:0:0/rescan"
mamba:/usr/local/bin # lsscsi
[0:0:6:0] process DELL 1x4 U2W SCSI BP 1.27 -
[0:2:0:0] disk MegaRAID LD0 RAID0 69356R 161J /dev/sda
[1:0:0:0] disk EMC SYMMETRIX 5671 /dev/sdb
[1:0:0:1] disk EMC SYMMETRIX 5671 /dev/sdc
[1:0:0:2] disk EMC SYMMETRIX 5671 /dev/sdd
[1:0:0:3] disk EMC SYMMETRIX 5671 /dev/sde
[1:0:0:4] disk EMC SYMMETRIX 5671 /dev/sdf
[1:0:0:5] disk EMC SYMMETRIX 5671 /dev/sdg
[1:0:0:6] disk EMC SYMMETRIX 5671 /dev/sdh
[1:0:0:7] disk EMC SYMMETRIX 5671 /dev/sdi
[1:0:0:8] disk EMC SYMMETRIX 5671 /dev/sdj
[1:0:0:9] disk EMC SYMMETRIX 5671 /dev/sdk
[1:0:0:10] disk EMC SYMMETRIX 5671 /dev/sdl
[1:0:0:11] disk EMC SYMMETRIX 5671 /dev/sdm
[1:0:0:12] disk EMC SYMMETRIX 5671 /dev/sdn
[1:0:0:13] disk EMC SYMMETRIX 5671 /dev/sdo
[1:0:0:14] disk EMC SYMMETRIX 5671 /dev/sdp
[1:0:0:15] disk EMC SYMMETRIX 5671 /dev/sdq
[1:0:0:16] disk EMC SYMMETRIX 5671 /dev/sdr
[1:0:0:17] disk EMC SYMMETRIX 5671 /dev/sds
[1:0:0:18] disk EMC SYMMETRIX 5671 /dev/sdt
[1:0:0:19] disk EMC SYMMETRIX 5671 /dev/sdu
[2:0:0:0] disk EMC SYMMETRIX 5671 /dev/sdv
[2:0:0:1] disk EMC SYMMETRIX 5671 /dev/sdw
[2:0:0:2] disk EMC SYMMETRIX 5671 /dev/sdx
[2:0:0:3] disk EMC SYMMETRIX 5671 /dev/sdy
[2:0:0:4] disk EMC SYMMETRIX 5671 /dev/sdz
[2:0:0:5] disk EMC SYMMETRIX 5671 /dev/sdaa
[2:0:0:6] disk EMC SYMMETRIX 5671 /dev/sdab
[2:0:0:7] disk EMC SYMMETRIX 5671 /dev/sdac
[2:0:0:8] disk EMC SYMMETRIX 5671 /dev/sdad
[2:0:0:9] disk EMC SYMMETRIX 5671 /dev/sdae
[2:0:0:10] disk EMC SYMMETRIX 5671 /dev/sdaf
[2:0:0:11] disk EMC SYMMETRIX 5671 /dev/sdag
[2:0:0:12] disk EMC SYMMETRIX 5671 /dev/sdah
[2:0:0:13] disk EMC SYMMETRIX 5671 /dev/sdai
[2:0:0:14] disk EMC SYMMETRIX 5671 /dev/sdaj
[2:0:0:15] disk EMC SYMMETRIX 5671 /dev/sdak
[2:0:0:16] disk EMC SYMMETRIX 5671 /dev/sdal
[2:0:0:17] disk EMC SYMMETRIX 5671 /dev/sdam
[2:0:0:18] disk EMC SYMMETRIX 5671 /dev/sdan
[3:0:0:0] disk DGC LUNZ 0219 /dev/sdao
[3:0:0:28] disk DGC RAID 5 0219 /dev/sdap
[3:0:1:0] tape STK T9940B 1.34 /dev/st0
[3:0:2:0] tape STK T9940B 1.34 /dev/st1
[3:0:3:0] tape SEAGATE ULTRIUM06242-XXX 1613 /dev/st2
[3:0:3:1] tape SEAGATE ULTRIUM06242-XXX 1613 /dev/st3
[3:0:4:0] tape SEAGATE ULTRIUM06242-XXX 1613 /dev/st4
[3:0:4:1] tape SEAGATE ULTRIUM06242-XXX 1536 /dev/st5
[3:0:5:0] disk DGC RAID 5 0219 /dev/sdaq
[3:0:5:1] disk DGC RAID 5 0219 /dev/sdar
[3:0:5:2] disk DGC RAID 5 0219 /dev/sdas
[3:0:5:3] disk DGC RAID 5 0219 /dev/sdat
[3:0:5:4] disk DGC RAID 5 0219 /dev/sdau
[3:0:5:5] disk DGC RAID 5 0219 /dev/sdav
[3:0:5:6] disk DGC RAID 5 0219 /dev/sdaw
[3:0:5:7] disk DGC RAID 5 0219 /dev/sdax
[3:0:5:8] disk DGC RAID 5 0219 /dev/sday
[3:0:5:9] disk DGC RAID 5 0219 /dev/sdaz
[3:0:5:10] disk DGC RAID 5 0219 /dev/sdba
[3:0:5:11] disk DGC RAID 5 0219 /dev/sdbb
[3:0:5:12] disk DGC RAID 5 0219 /dev/sdbc
[3:0:5:13] disk DGC RAID 5 0219 /dev/sdbd
[3:0:5:14] disk DGC RAID 5 0219 /dev/sdbe
[3:0:5:15] disk DGC RAID 5 0219 /dev/sdbf
[3:0:5:16] disk DGC RAID 5 0219 /dev/sdbg
[3:0:5:17] disk DGC RAID 5 0219 /dev/sdbh
[3:0:5:18] disk DGC RAID 5 0219 /dev/sdbi
[3:0:5:19] disk DGC RAID 5 0219 /dev/sdbj
[3:0:5:20] disk DGC RAID 5 0219 /dev/sdbk
[3:0:5:21] disk DGC RAID 5 0219 /dev/sdbl
[3:0:5:22] disk DGC RAID 5 0219 /dev/sdbm
[3:0:5:23] disk DGC RAID 5 0219 /dev/sdbn
[3:0:5:24] disk DGC RAID 5 0219 /dev/sdbo
[3:0:5:25] disk DGC RAID 5 0219 /dev/sdbp
Command I executed: (26,27,28,29 because I'm adding 4 LUNS)
mamba:/usr/local/bin # rescan-scsi-bus.sh --hosts=3 --ids=5
--luns=26,27,28,29
Thanks
Stephen
-----Original Message-----
From: Matt Gillard [mailto:Matt.Gillard@colesmyer.com.au]
Sent: 04 May 2006 08:06 AM
To: Stephen Hughes; Denis Brown; suse-sles-e@suse.com
Subject: RE: [suse-sles-e] Adding Disk on the fly
/bin/rescan-scsi-bus.sh is what you are after.
> -----Original Message-----
> From: Stephen Hughes [mailto:stephenh@Medscheme.co.za]
> Sent: Thursday, 4 May 2006 4:00 PM
> To: Denis Brown; suse-sles-e@suse.com
> Subject: RE: [suse-sles-e] Adding Disk on the fly
>
>
> Thanks Denis,
>
> I'll see about trying this, but one thing that I have noticed
> though is
> when I do and "fdisk -l" to list my disk attached to the
> system, I can't
> see the newly assigned disk in order to format them.
>
> -----Original Message-----
> From: Denis Brown [mailto:dsbrown@cyllene.uwa.edu.au]
> Sent: 04 May 2006 07:43 AM
> To: suse-sles-e@suse.com
> Subject: Re: [suse-sles-e] Adding Disk on the fly
>
> At 01:09 PM 4/05/2006, Stephen Hughes wrote:
> >Hi Group,
> >In my environment here I have directly attached and SAN attached disk
> to
> >many servers. From time to time when the need arises I need
> to add more
> >disk to a server and find the only way to get my server to see the
> newly
> >assigned disk is to reboot.
> >
> >Is there a command/s that I can run that will pick up the newly
> assigned
> >disk with out having to reboot each time?
>
> Hello Stephen.
>
> One thought <insert usual disclaimers here> is to add the new disk
> specification to /etc/fstab, create a suitable mount point,
> then use the
>
> "mount" command.
>
> I see this as directly analogous to having (say) a floppy drive listed
> in
> fstab, and having a mount point assigned for it, then actually
> "attaching
> it" on demand using the mount command.
>
> It is probably a Good Idea (tm) to try this on a
> non-production machine
> first <big smile>
>
> Reading between the lines of your post though, perhaps you have tried
> this
> already. I must admit that normally disk specs in fstab and mount
> points
> are known quantities when a machine boots, so maybe the idea above is
> invalid?
>
> HTH,
> Denis
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
> For additional commands, e-mail: suse-sles-e-help@suse.com
>
> Disclaimer
>
> "Everything in this e-mail and attachments relating to the
> official business
> of Medscheme Holdings ( Pty ) Ltd ( Reg Number 1970/015014/07 ) is
> proprietary to the company. It is confidential, legally privileged and
> protected by law. Medscheme Holdings does not own and endorse
> any other
> content. Views and opinions are those of the sender unless
> clearly stated as
> being that of Medscheme Holdings. The person addressed in the
> e-mail is the
> sole authorised recipient. Please notify the sender
> immediately if it has
> unintentionally reached you and do not read, disclose or use
> the content in
> any way. Whilst all reasonable steps are taken to ensure the
> accuracy and
> integrity of information and data transmitted electronically
> and to preserve
> the confidentiality thereof, no liability or responsibility
> whatsoever is
> accepted if information or data is,for whatever reason,
> corrupted or does
> not reach its intended destination."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
> For additional commands, e-mail: suse-sles-e-help@suse.com
>
>
This email and any attachments may contain privileged and confidential
information and are intended for the named addressee only. If you have
received this e-mail in error, please notify the sender and delete this
e-mail immediately. Any confidentiality, privilege or copyright is not
waived or lost because this e-mail has been sent to you in error. It is
your responsibility to check this e-mail and any attachments for
viruses. No warranty is made that this material is free from computer
virus or any other defect or error. Any loss/damage incurred by using
this material is not the sender's responsibility. The sender's entire
liability will be limited to resupplying the material.
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com
This archive was generated by hypermail 2.1.7 : Tue May 23 2006 - 15:20:56 CEST