- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- fdisk -l doubt
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
тАО06-26-2010 05:45 AM
тАО06-26-2010 05:45 AM
fdisk -l doubt
my storage box is openfiler running as another vm.
on my suse linux vm i have a single 20GB HDD added. further i have added a 3gb HDD thru iscsi.
fdisk -l shows this output
lin1:~ # fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813+ 83 Linux
/dev/sda2 27 288 2104515 82 Linux swap / Solaris
/dev/sda3 289 2610 18651465 f W95 Ext'd (LBA)
/dev/sda5 289 2610 18651433+ 8e Linux LVM
Disk /dev/dm-0: 19.0 GB, 19008585728 bytes
255 heads, 63 sectors/track, 2310 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/sdb: 3154 MB, 3154116608 bytes
98 heads, 62 sectors/track, 1013 cylinders
Units = cylinders of 6076 * 512 = 3110912 bytes
Device Boot Start End Blocks Id System
lin1:~ #
there are 3 disks shown here ... whereas i v only two.3gb one is the iscsi mapped one. my 20gb drive is being shown as 21gb and another 19gb
can someone plz throw more light on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 05:58 AM
тАО06-26-2010 05:58 AM
Re: fdisk -l doubt
>> Disk /dev/dm-0 doesn't contain a valid partition table
Looks like some problem with the partition.
Are you able to mount it ?
Able to access data in it ?
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 06:04 AM
тАО06-26-2010 06:04 AM
Re: fdisk -l doubt
Similar Discussions -
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1171325
http://www.linuxquestions.org/questions/fedora-35/dev-dm-0-a-506904/
Hope this helps.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 06:05 AM
тАО06-26-2010 06:05 AM
Re: fdisk -l doubt
i have installed sles 10 on a vmware workstation
the drive sda shows correctly my local HDD while sdb is a ISCSI target on openfiler, which is also correctly shown
..
now i dont understand what /dev/dm-0: 19.0 GB is... :(
lin1:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-root 18G 3.1G 14G 19% /
udev 503M 136K 503M 1% /dev
/dev/sda1 198M 14M 174M 8% /boot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 07:44 AM
тАО06-26-2010 07:44 AM
Re: fdisk -l doubt
>> now i dont understand what /dev/dm-0: 19.0 GB is... :(
You have /dev/sda and /dev/sdb corresponding to the 20GB and 3GB HDD.
The /dev/dm-X are device mapper devices.
They are associated with LVM and correspond to logical volumes.
When the programs fdisk and sfdisk are run with the option -l and no
argument, e.g.
# /sbin/fdisk -l
they look for all devices that can have cylinders, heads, sectors, etc.
If they find such a device, they output that information to standard
output and they output the partition table to standard output. If there is
no partition table, they have an error message (also standard output).
The following link talks more about this -
http://www.linuxquestions.org/questions/fedora-35/dev-dm-0-a-506904/
http://www.softpanorama.org/Commercial_linuxes/disk_management.shtml
Hope this helps.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 08:37 AM
тАО06-26-2010 08:37 AM
Re: fdisk -l doubt
its confusing ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 10:15 AM
тАО06-26-2010 10:15 AM
Re: fdisk -l doubt
* Physical Volume
This corresponds to a physical media like a disk or a Raid LUN that is
presented to the operating system.
* Logical Volume
This corresponds to a LVM logical volume which comes out of a volume group.
You can have a set of disks together in a volume group. A logical volumes
can then be created which would span across these physical disks
i.e. volume group. The operating system sees the multiple physical disk as
one big logical volume.
Check the following link -
* VxVM and LVM-Conceptual Comparison
http://docs.hp.com/en/5187-1372/ch01s02.html
Hope this helps.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 10:27 AM
тАО06-26-2010 10:27 AM
Re: fdisk -l doubt
but in the current case
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813+ 83 Linux
/dev/sda2 27 288 2104515 82 Linux swap / Solaris
/dev/sda3 289 2610 18651465 f W95 Ext'd (LBA)
/dev/sda5 289 2610 18651433+ 8e Linux LVM
Disk /dev/dm-0: 19.0 GB, 19008585728 bytes
255 heads, 63 sectors/track, 2310 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
if this is all the info we have off a system, how do we know that /dev/dm-0 and /dev/sda are the same disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 03:08 PM
тАО06-26-2010 03:08 PM
Re: fdisk -l doubt
You might be able to make some informed guesses, but you need more information to be sure.
In your case, /dev/dm-0 would most likely be a LVM logical volume.
Please run these commands:
ls -l /dev/dm-* /dev/sd*
dmsetup ls --tree
Compare the device numbers in the ls -l listing to the numbers listed in parentheses in the dmsetup output, and you'll see what's what.
The /dev/dm-* names are mostly for the device-mapper subsystem's internal use only: they are rather inconvenient for humans, and they aren't guaranteed to be persistent. If you've made changes to your disk configuration, what's /dev/dm-3 now might become /dev/dm-0 after a reboot.
Those Linux features that are built on top of the device-mapper subsystem (disk encryption, dm-multipath, LVM, software RAID) all maintain more human-readable, persistent device names that should usually be used instead of /dev/dm-* names.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2010 10:09 AM
тАО07-04-2010 10:09 AM