Difference between revisions of "Lvs"
Jump to navigation
Jump to search
↑ http://man7.org/linux/man-pages/man8/lvs.8.html
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | <code>lvs</code><ref>http://man7.org/linux/man-pages/man8/lvs.8.html</ref>- Display information about [[logical volumes]] | ||
+ | <pre> | ||
+ | lvs | ||
+ | LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert | ||
+ | root vg01 -wi-ao---- 445.61g | ||
+ | swap_1 vg01 -wi-ao---- 976.00m | ||
+ | home rhvh Vwi---tz-- 1.00g pool00 | ||
+ | </pre> | ||
+ | |||
+ | |||
<pre> | <pre> | ||
Line 11: | Line 22: | ||
<pre> | <pre> | ||
lvs --segments | lvs --segments | ||
− | LV | + | LV VG Attr #Str Type SSize |
− | lvol0 | + | lvol0 vg01 -wi-a----- 1 linear 4.00m |
− | lvol1 | + | lvol1 vg01 -wi-ao---- 1 linear <250.00g |
+ | lvol2 vg01 rwi-a-r--- 2 raid1 4.00m | ||
+ | lvol_stripped vg02 -wi-ao---- 2 striped 199.99g | ||
+ | lvol3 rhvh Vwi---tz-- 0 thin 1.00g | ||
+ | pool00 rhvh twi---tz-- 1 thin-pool <7.17t | ||
+ | pool00 rhvh Vri---tz-k 0 thin 7.14t | ||
+ | swap rhvh -wi-ao---- 1 linear 4.00g | ||
</pre> | </pre> | ||
+ | |||
+ | <pre> | ||
+ | lvs --segments | ||
+ | LV VG Attr #Str Type SSize | ||
+ | home rhvh Vwi---tz-- 0 thin 1.00g | ||
+ | pool00 rhvh twi---tz-- 1 thin-pool <7.17t | ||
+ | rhvh-4.3.4.1-0.20190620.0 rhvh Vwi---tz-k 0 thin 7.14t | ||
+ | rhvh-4.3.4.1-0.20190620.0+1 rhvh Vwi---tz-- 0 thin 7.14t | ||
+ | root rhvh Vri---tz-k 0 thin 7.14t | ||
+ | swap rhvh -wi-ao---- 1 linear 4.00g | ||
+ | tmp rhvh Vwi---tz-- 0 thin 1.00g | ||
+ | var rhvh Vwi---tz-- 0 thin 15.00g | ||
+ | var_crash rhvh Vwi---tz-- 0 thin 10.00g | ||
+ | var_log rhvh Vwi---tz-- 0 thin 8.00g | ||
+ | var_log_audit rhvh Vwi---tz-- 0 thin 2.00g | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[lvdisplay]]</code> | ||
+ | * <code>[[pvs]]</code> | ||
== See also == | == See also == | ||
* {{LVM}} | * {{LVM}} | ||
− | + | *{{Linux block devices}} | |
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 09:54, 8 February 2023
lvs
[1]- Display information about logical volumes
lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root vg01 -wi-ao---- 445.61g swap_1 vg01 -wi-ao---- 976.00m home rhvh Vwi---tz-- 1.00g pool00
lvs -a -o +devices Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'. Couldn't find all physical volumes for volume group VG. Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'. Couldn't find all physical volumes for volume group VG.
lvs --segments LV VG Attr #Str Type SSize lvol0 vg01 -wi-a----- 1 linear 4.00m lvol1 vg01 -wi-ao---- 1 linear <250.00g lvol2 vg01 rwi-a-r--- 2 raid1 4.00m lvol_stripped vg02 -wi-ao---- 2 striped 199.99g lvol3 rhvh Vwi---tz-- 0 thin 1.00g pool00 rhvh twi---tz-- 1 thin-pool <7.17t pool00 rhvh Vri---tz-k 0 thin 7.14t swap rhvh -wi-ao---- 1 linear 4.00g
lvs --segments LV VG Attr #Str Type SSize home rhvh Vwi---tz-- 0 thin 1.00g pool00 rhvh twi---tz-- 1 thin-pool <7.17t rhvh-4.3.4.1-0.20190620.0 rhvh Vwi---tz-k 0 thin 7.14t rhvh-4.3.4.1-0.20190620.0+1 rhvh Vwi---tz-- 0 thin 7.14t root rhvh Vri---tz-k 0 thin 7.14t swap rhvh -wi-ao---- 1 linear 4.00g tmp rhvh Vwi---tz-- 0 thin 1.00g var rhvh Vwi---tz-- 0 thin 15.00g var_crash rhvh Vwi---tz-- 0 thin 10.00g var_log rhvh Vwi---tz-- 0 thin 8.00g var_log_audit rhvh Vwi---tz-- 0 thin 2.00g
Related commands[edit]
See also[edit]
- scan:
pvscan
vgscan
- LVM:
lvs
lvmscan
lvm fullreport
lvmreport
lvmconfig
lvmdump
lvmcheck
lvm dumpconfig
- Scan:
pvs
vgs
lvs
pvscan
vgscan
- PV:
pvcreate
pvremove
pvscan
pvremove
pvscan
pvs
pvchange
pvck
pvdisplay
pvresize
- LV:
lvdisplay
lvcreate
lvremove
,lvresize
,lvextend
,lvreduce
,lvrename
- VG:
vgdisplay
,vgcreate
,vgremove
,vgextend
,vgreduce
,vgscan
,vgchange
,vgrename
,vgcfgbackup
,vgcfgrestore
,vgimportclone
,vgck
- Check commands:
pvck
vgck
- Block devices:
blkid
(UUID),lshw -class disk
,hwinfo --disk
,udevadm
,rescan-scsi-bus.sh
,LUN
,hdparm
,findfs
, Add a new disk lsblk
,pvscan
lspci
,lsscsi
,smartctl
,fdisk
,parted
,Kpartx
,pvdiplay
,pvs
,udisksctl
,/dev/sd, nvme list
Advertising: