Storage information from Suse linux VM

Mentors, In a SLES linux VM, How to identify if the attached file system (example: /dev/mapper/vg_xxx) is coming from VMFS based or NFS based DataStore ?

Having lot of confusions on the configuration collection mainly for Storage.

If anything is NFS-based I would expect it to show up as a mountpoint with
type NFS:

mount | grep -i nfs

If it is coming from a VM environment as a native disk, then I would guess
it will just show up as a native disk (/dev/something) instead, but from
there you probably need some other way of which I am unaware to know if it
is something directly from VMware, or from a SAN of some sort, or from
iSCSI, or whatever. I am no VMware expert, though, so maybe they have a
utility, or virtual file (/dev or /sys something) that identifies things
from within the OS.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

Thanks for your reply.

Here SLES Virtual machine is getting provisioned from VMWare infrastructure and it has both VMFS and NFS datastore.

/dev/sda1 1011M 65M 895M 7% /boot

/dev/mapper/vg0-lv_root 11G 4.5G 5.9G 44% /

Added many /dev/mapper/vg0-1xx and /dev/mapper/vg0-2xx volumes.

I would like to find if a volume /dev/mapper/vg0-2xx coming from NFS datastore or VMFS ?

What’s the command we can use in suse linux?

Thanks

I presume the same as for any other Linux distribution.

Does this article from VMware help?

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014953


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

When you create a VM in VMware and assign a disk to that VM, data that is written to that disk usually resides in a .vmdk file in a VMware datastore accessible to the ESXi host on which the VM is running. From the ESXi host, there are a number of ways to determine in which datastore a particular .vmdk file resides and you can also find out what devices a particular datastore uses.

From within a VM you can see what disks have been assigned to the VM and what filesystems might reside on those disks. Because the storage is presented to the VM as a “disk” (hard drive), you have no way to know what that disk may map to. It could be a physical disk, a partition, a logical volume, a LUN, an NFS share, etc.

If you mount an NFS volume from within a SLES VM, fstab will show the filesystem but within the SLES VM you cannot use SLES commands to determine if an NFS share is used as storage for the VMware datastore in which resides the .vmdk file associated with one of the disks attached to your SLES VM. That information is not available to the VM.