- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to find the local disks and SAN disks in l...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 06:58 AM
тАО04-13-2009 06:58 AM
we are using Redhat and Suse linux.
I want to find the local disks and remote disks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 07:29 AM
тАО04-13-2009 07:29 AM
Re: How to find the local disks and SAN disks in linux
You can check by "fdisk -l" and you will see new disk appearing in the output which will be represented as "/dev/sdb" or "/dev/sdc"
#fdisk -l
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 08:21 AM
тАО04-13-2009 08:21 AM
Re: How to find the local disks and SAN disks in linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 10:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 01:46 AM - last edited on тАО11-13-2020 04:28 AM by Parvez_Admin
тАО04-14-2009 01:46 AM - last edited on тАО11-13-2020 04:28 AM by Parvez_Admin
Re: How to find the local disks and SAN disks in linux
1.Check in /proc/partitions
2.(man fdisk)
fdisk -l [-u] [device ...]
The device is usually one of the following:
/dev/hda
/dev/hdb
/dev/sda
/dev/sdb
(/dev/hd[a-h] for IDE disks, /dev/sd[a-p] for SCSI disks, /dev/ed[a-d] for ESDI disks, /dev/xd[ab] for XT disks). A device name refers to the entire disk.
The partition is a device name followed by a partition number. For example, /dev/hda1 is the first partition on the first IDE hard disk in the system. Disks can have up to 15 partitions.
3.Read the Forum Postings
https://support.hpe.com/hpesc/public/docDisplay?docId=c01731722
4.Read the article ... http://searchsystemschannel.techtarget.com/generic/0,295582,sid99_gci1241976,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 02:12 AM
тАО04-14-2009 02:12 AM
Re: How to find the local disks and SAN disks in linux
# parted -l
but best have a look at man parted it is full of possibility/options you may also have a GUI version like Gparted under GNOME
enjoy life.
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 02:45 AM
тАО04-14-2009 02:45 AM
Re: How to find the local disks and SAN disks in linux
Another way is to examine the /sys filesystem. To know how e.g. /dev/sda is connected to the system, run "ls -l /sys/block/sda". There is a symlink "device" and the long directory listing tells you where the symlink points to. The target of the symlink is typically something like "../../devices/pci0000:00/0000:00:1f.1/host..." where "0000:00:1f.1" is a PCI device ID. Use "lspci" to identify it.
(There are probably a lot of fancy GUI tools that can automatically use this information to identify the disks, but often the GUI tools are not installed on our servers. Less software on servers => less things to patch.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 05:11 AM
тАО04-15-2009 05:11 AM
Re: How to find the local disks and SAN disks in linux
I am not able to see some disks in lsscsi
Ex:
# cd /sys/block
# ll
drwxr-xr-x 5 root root 0 Feb 27 21:25 cciss!c0d0
drwxr-xr-x 5 root root 0 Feb 27 21:25 sda
drwxr-xr-x 3 root root 0 Feb 27 21:25 sdb
drwxr-xr-x 2 root root 0 Feb 27 21:26 sddlmab
drwxr-xr-x 4 root root 0 Feb 27 21:26 sddlmac
drwxr-xr-x 2 root root 0 Feb 27 21:26 sddlmfdrv0
So it is showing five disks c0d0, sda, sdb, sddlmab, sddlmac.
But my lsscsi show in just two disks only.
Ex:
emdlagas71:/sys/block # lsscsi
[0:0:0:0] tape HP Ultrium 3-SCSI G65W /dev/st0
[0:0:0:1] tape HP Ultrium 3-SCSI G65W /dev/st1
[0:0:0:2] storage HP NS E1200-160 5928 -
[0:0:1:0] disk HITACHI OPEN-V*3 6004 /dev/sda
[0:0:1:1] disk HITACHI OPEN-V*5 6004 /dev/sdb
[1:0:0:0] mediumx HP MSL6000 Series 0520 -
[1:0:0:1] tape HP Ultrium 3-SCSI G65W /dev/st2
[1:0:0:2] tape HP Ultrium 3-SCSI G65W /dev/st3
[1:0:0:3] storage HP NS E1200-160 5928 -
Pls explain me the difference
what is the problem.
pls explain me both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 08:43 AM
тАО04-15-2009 08:43 AM
Re: How to find the local disks and SAN disks in linux
Looks like a MSL5000/6000 library with 2 tape drives, (E1200 is the FC/SCSI bridge)
[0:0:0:0] tape HP Ultrium 3-SCSI G65W /dev/st0
[0:0:0:1] tape HP Ultrium 3-SCSI G65W /dev/st1
[0:0:0:2] storage HP NS E1200-160 5928 -
Fibre Channel attached storage array (HDS or HP XP?)
[0:0:1:0] disk HITACHI OPEN-V*3 6004 /dev/sda
[0:0:1:1] disk HITACHI OPEN-V*5 6004 /dev/sdb
A second library, but on a different FC adapter port.
[1:0:0:0] mediumx HP MSL6000 Series 0520 -
[1:0:0:1] tape HP Ultrium 3-SCSI G65W /dev/st2
[1:0:0:2] tape HP Ultrium 3-SCSI G65W /dev/st3
[1:0:0:3] storage HP NS E1200-160 5928 -
This one looks like a local SmartArray RAID controller.
> drwxr-xr-x 5 root root 0 Feb 27 21:25 cciss!c0d0
Can you say something more about the server hardware involved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 10:18 PM
тАО04-15-2009 10:18 PM
Re: How to find the local disks and SAN disks in linux
Uwe Zessin has given you the details
Let us know exactly what you are missing.