硬盘操作常用命令

网友投稿 640 2022-05-28

lsblk

[root@ceph1 openssl-OpenSSL_1_1_1a]# lsblk

NAME         MAJ:MIN RM    SIZE RO TYPE MOUNTPOINT

sdb            8:16   0    3.7T  0 disk

|-sdb4         8:20   0     30G  0 part

|-sdb2         8:18   0     10G  0 part

|-sdb7         8:23   0  130.4G  0 part

|-sdb5         8:21   0     30G  0 part

|-sdb3         8:19   0     30G  0 part

|-sdb1         8:17   0     10G  0 part

`-sdb6         8:22   0  558.8G  0 part /sdb6

loop0          7:0    0    6.9G  0 loop /mnt

sda            8:0    0    3.7T  0 disk

|-sda4         8:4    0 1007.5K  0 part

|-sda2         8:2    0      1G  0 part /boot

|-sda3         8:3    0    3.7T  0 part

| |-cla-swap 253:1    0      4G  0 lvm  [SWAP]

| |-cla-home 253:2    0    3.6T  0 lvm  /home

| `-cla-root 253:0    0     50G  0 lvm  /

`-sda1         8:1    0    200M  0 part /boot/efi

dmsetup

[root@ceph1 openssl-OpenSSL_1_1_1a]# dmsetup ls

cla-home        (253:2)

cla-swap        (253:1)

cla-root        (253:0)

lvm

[root@ceph1 openssl-OpenSSL_1_1_1a]# pvs

PV         VG  Fmt  Attr PSize  PFree

/dev/sda3  cla lvm2 a--  <3.64t    0

[root@ceph1 openssl-OpenSSL_1_1_1a]# vgs

VG  #PV #LV #SN Attr   VSize  VFree

cla   1   3   0 wz--n- <3.64t    0

[root@ceph1 openssl-OpenSSL_1_1_1a]# lvs

LV   VG  Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert

home cla -wi-ao----  3.58t

root cla -wi-ao---- 50.00g

swap cla -wi-ao----  4.00g

uuidgen

[root@ceph1 openssl-OpenSSL_1_1_1a]# uuidgen

e72e3bbf-d00f-4d00-97fd-1ea642f19601

blkid

[root@ceph1 openssl-OpenSSL_1_1_1a]# blkid -o list

device                                              fs_type         label            mount point                                             UUID

硬盘操作常用命令

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

/dev/mapper/cla-root                                 xfs                              /                                                        a2a52403-13cf-4d72-9aaf-0f40904e1e93

/dev/sda3                                            LVM2_member                      (in use)                                                 G2VCKX-p2AV-4qhm-iTQx-CkMb-VlQw-qjEBDR

/dev/sda1                                            vfat                             /boot/efi                                                DF98-EE86

/dev/sda2                                            xfs                              /boot                                                    7ad1997d-2ba9-464b-8586-b3430a010396

/dev/sdb1                                            xfs                              (not mounted)                                            1d1e3dab-e2fe-433d-a7f5-7fc1bd756f22

/dev/sdb2                                            xfs                              (not mounted)                                            eb0de806-8662-466c-9653-ea3be5bd22fb

/dev/sdb3                                            xfs                              (not mounted)                                            7d9c1d46-c213-467c-8429-5e2c4a8ba63e

/dev/sdb4                                            xfs                              (not mounted)                                            62131617-5d1a-4b66-a7b4-738391d236bd

/dev/sdb5                                            xfs                              (not mounted)                                            711e3c21-059b-4468-b87c-18c98cbab551

/dev/sdb6                                            xfs                              /sdb6                                                    52185ac6-8934-458d-8950-462c2b5bd858

/dev/mapper/cla-swap                                 swap                                                                                960c2154-ef85-4b93-85e4-a5f55451cd89

/dev/mapper/cla-home                                 xfs                              /home                                                    316d173f-05f3-4440-aca2-cf95f70f2845

/dev/loop0                                           iso9660         CentOS 7 aarch64 /mnt                                                     2017-09-10-13-10-43-00

/dev/sda4                                                                             (not mounted)

/dev/sdb7                                                                             (not mounted)

其他

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:JSON 初识 #yyds干货盘点#
下一篇:新旧磁盘数量不一致,能否删除带votedisk的磁盘?
相关文章