- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to know which disk drive was added?
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
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
тАО02-11-2010 01:06 PM
тАО02-11-2010 01:06 PM
How to know which disk drive was added?
I am adding SCSI hard disk to a linux server.
How can I know and be sure which disk is added before I run the fdisk and Mkfs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 01:09 PM
тАО02-11-2010 01:09 PM
Re: How to know which disk drive was added?
fdisk -l
You might want to try providing your distribution of Linux and situation details to get more help.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 02:03 PM
тАО02-11-2010 02:03 PM
Re: How to know which disk drive was added?
dumpe2fs -h /dev/sdX
To identify if the disk already has a File System.
cat /etc/fstab
To identify the disks and their mount points
mount
To identify the disks and their mount point
swap -s
To identify disks used as swap
pvs/pvdisplay
To identify disks used by LVM
The only missing part here is to identify disks used without filesystem for example by Oracle. You must consult your DBA.
Normally from the output of:
fdisk -l
You would recognize your new disk as it would not have partition table, and the matching size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 10:47 PM
тАО02-11-2010 10:47 PM
Re: How to know which disk drive was added?
-fdisk -f before adding the scsi disk
-Note down the disk drive that exist
-Connect the disk
-fdisk -l to see what was added.
I am right? I guess this is the best way to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2010 05:26 AM
тАО02-12-2010 05:26 AM
Re: How to know which disk drive was added?
If you have the "lsscsi" utility (available as an optional package in RHEL 5, probably other newer distributions too) and you know the SCSI device number of your new disk, you can find the device name easily in the lsscsi output.
http://sg.danny.cz/scsi/lsscsi.html
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2010 07:18 AM
тАО02-12-2010 07:18 AM
Re: How to know which disk drive was added?
> [...]
Or, if it's too late, then remove the actual
disk, and look for the apparent disk (device
special file) which you appear to have, but
which no program can talk to.