RHEL7-Identify file systems and devices

Source: Internet
Author: User

The logical volume relies on the device mapper (DM) kernel driver. For example, there is a logical volume group in Rhel with a logic volume root, the corresponding device is/dev/rhel/root. The symbolic link/dev/rhel/root points to the/dev/dm-<number> block device node. The assignment of number is continuous, starting from 0. Each logical volume has another symbolic link in the/dev/mapper directory, named/dev/mapper/rhel-root.

Logical volumes can often be accessed using either a reliable and consistent symbolic link name, because the/dev/dm-<number> name will vary from one startup to another.

[Email protected] ~]# cd/dev/mapper/[email protected] mapper]# lltotal0CRW-------.1Root rootTen,236Jul -  One: atcontrollrwxrwxrwx.1Root root7Jul -  One: atRhel-root. /dm-0lrwxrwxrwx.1Root root7Jul -  One: atRhel-swap. /dm-1[email protected] mapper]# LVs LV VG Attr lsize Pool Origin Data% Move Log cpy%Sync Convert Root Rhel-wi-ao---- -. 50g swap Rhel-wi-ao----2. 00g [[email protected] mapper]# CD/dev/rhel/[email protected] rhel]# lltotal0lrwxrwxrwx.1Root root7Jul -  One: atRoot. /dm-0lrwxrwxrwx.1Root root7Jul -  One: atSwap-. /dm-1

View UUID

[[Email protected] ~]# Blkid/dev/sda1:uuid="ed75d4b9-6d85-4b02-8aa7-f966e78fdf85"Type="XFS"/dev/sda2:uuid="ewuqqv-n1i5-9xca-grad-2blv-qoth-vnpod2"Type="Lvm2_member"/dev/mapper/rhel-root:uuid="0a32f670-93f4-4354-8fcb-38d88d16469d"Type="XFS"/dev/mapper/rhel-swap:uuid="CC16BB7D-A65C-4510-9F77-C28759220FBC"Type="Swap" 

RHEL7-Identify file systems and devices

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.