on 12-05-2019 10:15 AM
This guide will explain how to check where a particular directory resides within the filesystem in terms of physical disk, logical volume, volume group, etc by taking a look at where the install repository actually resides on an NCS5500.
So where does the install repository live?
Under /opt/cisco/XR/packages
RP/0/RP0/CPU0:NCS-5502-B#run
Thu Jan 31 18:44:03.342 UTC
[xr-vm_node0_RP0_CPU0:~]$ls /opt/cisco/XR/packages/
ncs5500-bgp-1.1.0.0-r6131 ncs5500-infra-4.1.0.0-r6131 ncs5500-mpls-te-rsvp-2.3.0.0-r6131
ncs5500-cai-1.1.0.0-r6131 ncs5500-iosxr-fwding-5.1.0.0-r6131 ncs5500-ncs-base-2.0.0.0-r6131
ncs5500-ce-2.0.0.0-r6131 ncs5500-isis-1.1.0.0-r6131 ncs5500-os-5.0.0.0-r6131
ncs5500-common-pd-fib-1.1.0.0-r6131 ncs5500-k9sec-2.3.0.0-r6131 ncs5500-os-support-5.0.0.0-r6131
ncs5500-dpa-4.0.0.0-r6131 ncs5500-mcast-2.1.0.0-r6131 ncs5500-ospf-1.1.0.0-r6131
ncs5500-dpa-fwding-4.1.0.0-r6131 ncs5500-mgbl-3.0.0.0-r6131 ncs5500-parser-2.0.0.0-r6131
ncs5500-fwding-3.0.0.0-r6131 ncs5500-mpls-2.1.0.0-r6131 ncs5500-routing-3.1.0.0-r6131
[xr-vm_node0_RP0_CPU0:~]$
But where is that mounted?
Under rootfs, note that it is not under mount, but is under /etc/fstab
[xr-vm_node0_RP0_CPU0:~]$mount
devpts on /dev/pts type devpts (rw,nosuid,relatime,gid=5,mode=620,ptmxmode=666)
devfs on /dev type tmpfs (rw,nosuid,relatime,size=1024k,mode=755)
/dev/dm-12 on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
proc on /proc/sys type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
libvirt on /proc/meminfo type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
libvirt on /proc/uptime type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
tmpfs on /dev/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=64k,mode=755)
cgroup on /dev/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /dev/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /dev/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /dev/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /dev/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /dev/cgroup/freezer type cgroup (rw,relatime,freezer)
devpts on /dev/ptmx type devpts (rw,nosuid,relatime,gid=5,mode=620,ptmxmode=666)
/proc on /mnt/bindmnt_netns/global-vrf type proc (rw,relatime)
/dev/mapper/app_vol_grp-app_lv0 on /misc/app_host type ext4 (rw,relatime,data=ordered)
/dev/mapper/panini_vol_grp-host_lv85 on /dev/sde type ext4 (rw,relatime,discard,data=ordered)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
tmpfs on /media/ram type tmpfs (rw,relatime)
none on /dev/shm type tmpfs (rw,relatime)
none on /dev/shm type tmpfs (rw,relatime)
/dev/dm-12 on /proc/cmdline type ext4 (rw,relatime,data=ordered)
/dev/mapper/pci_disk1-ssd_disk1_xr_1 on /misc/disk1 type ext4 (rw,relatime,discard,data=ordered)
/proc on /run/netns/global-vrf type proc (rw,relatime)
/dev/vdb on /var/log type ext4 (rw,relatime,discard,data=ordered)
/dev/vdb on /misc/config type ext4 (rw,relatime,discard,data=ordered)
/dev/vdb on /misc/scratch type ext4 (rw,relatime,discard,data=ordered)
none on /mnt type tmpfs (rw,relatime,size=512k)
none on /dev/mq type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
qsm on /qsm type fuse.qsm (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
syslog_dev on /dev/syslog type fuse.syslog_dev (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
rdsfs_svr on /mnt/fuse/rdsfs type fuse.rdsfs_svr (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
parser_server on /mnt/fuse/parser_server type fuse.parser_server (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
nvgen_server on /mnt/fuse/nvgen_server type fuse.nvgen_server (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
ether on /mnt/fuse/ether type fuse.ether (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
ftp_fs on /mnt/fuse/ftp type fuse.ftp_fs (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
clns on /mnt/fuse/clns type fuse.clns (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
l2snoop on /mnt/fuse/l2snoop type fuse.l2snoop (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
tcp on /mnt/fuse/tcp type fuse.tcp (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
udp on /mnt/fuse/udp type fuse.udp (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
tftp_fs on /mnt/fuse/tftp type fuse.tftp_fs (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
raw_ip on /mnt/fuse/raw_ip type fuse.raw_ip (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
[xr-vm_node0_RP0_CPU0:~]$cat /etc/fstab
# stock fstab - you probably want to override this with a machine specific one
rootfs / auto defaults 1 1
proc /proc proc defaults 0 0
#none /dev/pts devpts newinstance,ptmxmode=620,mode=0620,gid=5 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
tmpfs /var/volatile tmpfs defaults 0 0
tmpfs /media/ram tmpfs defaults 0 0
none /dev/shm tmpfs defaults 0 0
# uncomment this if your device has a SD/MMC/Transflash slot
#/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0
[xr-vm_node0_RP0_CPU0:~]$
Great so we found the mountpoint but where on the disk does rootfs come from?
[xr-vm_node0_RP0_CPU0:~]$df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop5 4052796 1413548 2413664 37% /
devfs 1024 40 984 4% /dev
tmpfs 64 0 64 0% /dev/cgroup
/dev/mapper/app_vol_grp-app_lv0 3869352 423020 3230064 12% /misc/app_host
/dev/mapper/panini_vol_grp-host_lv85 991512 356492 567436 39% /dev/sde
tmpfs 32617424 508 32616916 1% /var/volatile
tmpfs 32617424 36 32617388 1% /run
tmpfs 32617424 0 32617424 0% /media/ram
none 32617424 678788 31938636 3% /dev/shm
none 32617424 678788 31938636 3% /dev/shm
/dev/mapper/pci_disk1-ssd_disk1_xr_1 5831720 1763640 3748800 32% /misc/disk1
/dev/loop8 469636 113072 321448 27% /var/log
/dev/loop9 469636 37676 396844 9% /misc/config
/dev/loop10 2021324 376564 1524032 20% /misc/scratch
none 512 0 512 0% /mnt
[xr-vm_node0_RP0_CPU0:~]$losetup -a
/dev/loop0: [0005]:10264 (/dev/dm-11), offset 1048576, sizelimit 2620390912
/dev/loop1: [0028]:13056 (/dev/vdc), offset 1048576, sizelimit 513801728
/dev/loop2: [0028]:13056 (/dev/vdc), offset 514850816, sizelimit 513801728
/dev/loop3: [0028]:13056 (/dev/vdc), offset 1028653056, sizelimit 1110441472
/dev/loop4: [0028]:13055 (/dev/vdb1), offset 1048576
/dev/loop5: [0005]:10265 (/dev/dm-12), offset 1048576
/dev/loop6: [64768]:28 (/var/lib/docker/devicemapper/devicemapper/data)
/dev/loop7: [64768]:29 (/var/lib/docker/devicemapper/devicemapper/metadata)
/dev/loop8: [0043]:27573 (/dev/vdb), offset 1048576, sizelimit 513801728
/dev/loop9: [0043]:27573 (/dev/vdb), offset 514850816, sizelimit 513801728
/dev/loop10: [0043]:27573 (/dev/vdb), offset 1028653056, sizelimit 2136997376
/dev/loop11: [0005]:10266 (/dev/dm-13), offset 1048576
/dev/loop12: [0062]:69441 (/dev/vdb), offset 1048576, sizelimit 513801728
/dev/loop13: [0062]:69441 (/dev/vdb), offset 514850816, sizelimit 513801728
/dev/loop14: [0062]:69441 (/dev/vdb), offset 1028653056, sizelimit 2136997376
[xr-vm_node0_RP0_CPU0:~]$
Now we need to go to the host OS and check for /dev/dm-12
[xr-vm_node0_RP0_CPU0:~]$exit
exit
aRP/0/RP0/CPU0:NCS-5502-B#admin
Thu Jan 31 19:42:03.101 UTC
smilstea connected from 127.0.0.1 using console on xr-vm_node0_RP0_CPU0
sysadmin-vm:0_RP0# run
Thu Jan 31 19:42:05.880 UTC
[sysadmin-vm:0_RP0:~]$ssh 10.0.2.16
Last login: Thu Jan 31 18:40:48 2019 from 10.11.12.15
[host:0_RP0:~]$
[host:0_RP0:~]$ mount
/proc on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
/dev/mapper/panini_vol_grp-host_lv85 on / type ext4 (rw,relatime,discard,data=ordered)
run on /run type tmpfs (rw,relatime)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /media/ram type tmpfs (rw,relatime)
none on /dev/shm type tmpfs (rw,relatime)
none on /dev/shm type tmpfs (rw,relatime)
/dev/mapper/pci_disk1-ssd_disk1_hostos on /misc/disk1 type ext4 (rw,relatime,discard,data=ordered)
/dev/mapper/panini_vol_grp-host_data_scratch_lv0 on /misc/scratch type ext4 (rw,relatime,discard,data=ordered)
/dev/mapper/panini_vol_grp-host_data_config_lv0 on /misc/config type ext4 (rw,relatime,discard,data=ordered)
/dev/mapper/panini_vol_grp-host_data_log_lv0 on /var/log type ext4 (rw,relatime,discard,data=ordered)
none on /mnt type tmpfs (rw,relatime,size=512k)
/dev/ram7 on /mnt/ram7 type ext3 (rw,relatime,data=ordered)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
cgroup on /dev/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /dev/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /dev/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /dev/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /dev/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /dev/cgroup/freezer type cgroup (rw,relatime,freezer)
run on /run/netns type tmpfs (rw,relatime)
/proc on /run/netns/global-vrf type proc (rw,relatime)
nodev on /debugfs type debugfs (rw,relatime)
none on /mnt/pstore type pstore (rw,relatime)
/dev/dm-11 on /lxc_rootfs/panini_vol_grp-calvados_lv86 type ext4 (rw,relatime,data=ordered)
run on /run/lxc type tmpfs (rw,relatime)
/proc on /run/lxc/sysadmin/ns/net type proc (rw,relatime)
/proc on /run/netns/sysadmin.libvirt type proc (rw,relatime)
/dev/dm-12 on /lxc_rootfs/panini_vol_grp-xr_lv87 type ext4 (rw,relatime,data=ordered)
/dev/mapper/app_vol_grp-app_lv0 on /misc/app_host type ext4 (rw,relatime,data=ordered)
/dev/mapper/app_vol_grp-app_lv0 on /var/lib/docker type ext4 (rw,relatime,data=ordered)
/proc on /run/lxc/default-sdr--1/ns/net type proc (rw,relatime)
/proc on /run/netns/default-sdr--1.libvirt type proc (rw,relatime)
/dev/dm-13 on /lxc_rootfs/panini_vol_grp-xr_lcp_lv88 type ext4 (rw,relatime,data=ordered)
/proc on /run/lxc/default-sdr--2/ns/net type proc (rw,relatime)
/proc on /run/netns/default-sdr--2.libvirt type proc (rw,relatime)
[host:0_RP0:~]$
Here is a shortcut to see what the logical volume is, issue show install active and look for boot partition.
RP/0/RP0/CPU0:NCS-5502-B#show install active
Thu Jan 31 17:33:48.351 UTC
Node 0/RP0/CPU0 [RP]
Boot Partition: xr_lv87
Active Packages: 8
ncs5500-xr-6.1.31 version=6.1.31 [Boot image]
ncs5500-mcast-2.1.0.0-r6131
ncs5500-mpls-2.1.0.0-r6131
ncs5500-mgbl-3.0.0.0-r6131
ncs5500-mpls-te-rsvp-2.3.0.0-r6131
ncs5500-ospf-1.1.0.0-r6131
ncs5500-isis-1.1.0.0-r6131
ncs5500-k9sec-2.3.0.0-r6131
Below are some more outputs, take notice of pvdisplay and vgdisplay as they show the logical disk.
[host:0_RP0:~]$ lvdisplay
--- Logical volume ---
LV Path /dev/panini_vol_grp/xr_lv87
LV Name xr_lv87
VG Name panini_vol_grp
LV UUID exoOm4-wcGb-cflN-0am4-bGV7-NW2m-gGoXAx
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-05-11 22:24:00 +0000
LV Status available
# open 1
LV Size 3.99 GiB
Current LE 1022
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:12
[host:0_RP0:/]$ mount | grep "lv"87
/dev/dm-12 on /lxc_rootfs/panini_vol_grp-xr_lv87 type ext4 (rw,relatime,data=ordered)
[host:0_RP0:/]$
[host:0_RP0:/]$ cat /etc/fstab
# stock fstab - you probably want to override this with a machine specific one
rootfs / auto defaults 1 1
proc /proc proc defaults 0 0
#none /dev/pts devpts newinstance,ptmxmode=620,mode=0620,gid=5 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
tmpfs /var/volatile tmpfs defaults 0 0
tmpfs /media/ram tmpfs defaults 0 0
none /dev/shm tmpfs defaults 0 0
[host:0_RP0:~]$ losetup -a
/dev/loop0: [0005]:10264 (/dev/dm-11), offset 1048576, sizelimit 2620390912
/dev/loop1: [0028]:13056 (/dev/vdc), offset 1048576, sizelimit 513801728
/dev/loop2: [0028]:13056 (/dev/vdc), offset 514850816, sizelimit 513801728
/dev/loop3: [0028]:13056 (/dev/vdc), offset 1028653056, sizelimit 1110441472
/dev/loop4: [0028]:13055 (/dev/vdb1), offset 1048576
/dev/loop5: [0005]:10265 (/dev/dm-12), offset 1048576
/dev/loop6: [64768]:28 (/var/lib/docker/devicemapper/devicemapper/data)
/dev/loop7: [64768]:29 (/var/lib/docker/devicemapper/devicemapper/metadata)
/dev/loop8: [0043]:27573 (/dev/vdb), offset 1048576, sizelimit 513801728
/dev/loop9: [0043]:27573 (/dev/vdb), offset 514850816, sizelimit 513801728
/dev/loop10: [0043]:27573 (/dev/vdb), offset 1028653056, sizelimit 2136997376
/dev/loop11: [0005]:10266 (/dev/dm-13), offset 1048576
/dev/loop12: [0062]:69441 (/dev/vdb), offset 1048576, sizelimit 513801728
/dev/loop13: [0062]:69441 (/dev/vdb), offset 514850816, sizelimit 513801728
/dev/loop14: [0062]:69441 (/dev/vdb), offset 1028653056, sizelimit 2136997376
[host:0_RP0:~]$ vgdisplay
<snip>
--- Volume group ---
VG Name panini_vol_grp
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 49
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 12
Open LV 8
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.56 GiB
PE Size 4.00 MiB
Total PE 7568
Alloc PE / Size 6944 / 27.12 GiB
Free PE / Size 624 / 2.44 GiB
VG UUID hEQU26-H8PI-xk8n-CNZI-pJuE-nwtx-Bne3tg
[host:0_RP0:~]$ vgs
VG #PV #LV #SN Attr VSize VFree
app_vol_grp 1 1 0 wz--n- 3.81g 0
panini_vol_grp 1 12 0 wz--n- 29.56g 2.44g
pci_disk1 1 5 0 wz--n- 19.66g 364.00m
[host:0_RP0:~]$
[host:0_RP0:~]$ vgdisplay --verbose
Finding all volume groups
Finding volume group "app_vol_grp"
--- Volume group ---
VG Name app_vol_grp
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.81 GiB
PE Size 4.00 MiB
Total PE 976
Alloc PE / Size 976 / 3.81 GiB
Free PE / Size 0 / 0
VG UUID avdeUD-6WJC-YcTO-x1Jd-Hau5-DBxi-vBlfME
--- Logical volume ---
LV Path /dev/app_vol_grp/app_lv0
LV Name app_lv0
VG Name app_vol_grp
LV UUID 4Mpo1Z-O5ib-XLTV-5kAh-Qmu2-0z0b-yrg10v
LV Write Access read/write
LV Creation host, time host, 2017-04-10 16:30:25 +0000
LV Status available
# open 1
LV Size 3.81 GiB
Current LE 976
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Physical volumes ---
PV Name /dev/sda6
PV UUID XH2QnP-QRDZ-I8b4-ckTf-ke4f-cGyM-p6r4lh
PV Status allocatable
Total PE / Free PE 976 / 0
Finding volume group "pci_disk1"
--- Volume group ---
VG Name pci_disk1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 14
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 19.66 GiB
PE Size 4.00 MiB
Total PE 5034
Alloc PE / Size 4943 / 19.31 GiB
Free PE / Size 91 / 364.00 MiB
VG UUID DRXfVI-32c3-fIdC-5Vww-drHu-OvJA-PDgeVO
--- Logical volume ---
LV Path /dev/pci_disk1/ssd_disk1_hostos
LV Name ssd_disk1_hostos
VG Name pci_disk1
LV UUID 2mTPtX-Vn8f-pDC3-9PsD-CByK-WVEY-1ea6uU
LV Write Access read/write
LV Creation host, time host, 2017-04-06 21:08:12 +0000
LV Status available
# open 1
LV Size 1.86 GiB
Current LE 475
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/pci_disk1/ssd_disk1_calvados_1
LV Name ssd_disk1_calvados_1
VG Name pci_disk1
LV UUID fbTrpm-j5JX-kv1v-R73u-PwzY-pTN1-13U55b
LV Write Access read/write
LV Creation host, time host, 2017-04-06 21:08:13 +0000
LV Status available
# open 1
LV Size 5.78 GiB
Current LE 1479
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Path /dev/pci_disk1/ssd_disk1_xr_1
LV Name ssd_disk1_xr_1
VG Name pci_disk1
LV UUID k1ulPX-Vyui-jJQt-WwLJ-eoIi-RLV1-XsnUfg
LV Write Access read/write
LV Creation host, time host, 2017-04-06 21:08:15 +0000
LV Status available
# open 1
LV Size 5.78 GiB
Current LE 1479
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Logical volume ---
LV Path /dev/pci_disk1/xr_data_lv0
LV Name xr_data_lv0
VG Name pci_disk1
LV UUID fQiod9-d4IL-EnuY-IUGR-ixZm-pArq-SjUJli
LV Write Access read/write
LV Creation host, time host:0_RP0, 2017-04-10 16:37:07 +0000
LV Status available
# open 3
LV Size 2.95 GiB
Current LE 755
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
--- Logical volume ---
LV Path /dev/pci_disk1/xr_lcp_data_lv0
LV Name xr_lcp_data_lv0
VG Name pci_disk1
LV UUID JlTfYG-5NVo-9AB5-fcWN-TOtF-e8n3-ufNl3M
LV Write Access read/write
LV Creation host, time host:0_RP0, 2017-04-10 16:38:28 +0000
LV Status available
# open 3
LV Size 2.95 GiB
Current LE 755
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
--- Physical volumes ---
PV Name /dev/sda5
PV UUID mUcX9E-9LPu-F2dX-7T25-0Nne-Wq2z-XjyfLz
PV Status allocatable
Total PE / Free PE 5034 / 91
Finding volume group "panini_vol_grp"
--- Volume group ---
VG Name panini_vol_grp
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 49
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 12
Open LV 8
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.56 GiB
PE Size 4.00 MiB
Total PE 7568
Alloc PE / Size 6944 / 27.12 GiB
Free PE / Size 624 / 2.44 GiB
VG UUID hEQU26-H8PI-xk8n-CNZI-pJuE-nwtx-Bne3tg
--- Logical volume ---
LV Path /dev/panini_vol_grp/host_data_scratch_lv0
LV Name host_data_scratch_lv0
VG Name panini_vol_grp
LV UUID ffa9Rz-Y33Y-Go72-1Q50-Eivo-SUrm-OSa4V9
LV Write Access read/write
LV Creation host, time host, 2017-04-10 16:30:48 +0000
LV Status available
# open 1
LV Size 1.76 GiB
Current LE 450
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6
--- Logical volume ---
LV Path /dev/panini_vol_grp/host_data_log_lv0
LV Name host_data_log_lv0
VG Name panini_vol_grp
LV UUID FQC8Cb-xWGv-Sda3-WLYv-zKff-Tdsf-FDRv4k
LV Write Access read/write
LV Creation host, time host, 2017-04-10 16:30:49 +0000
LV Status available
# open 1
LV Size 492.00 MiB
Current LE 123
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:7
--- Logical volume ---
LV Path /dev/panini_vol_grp/host_data_config_lv0
LV Name host_data_config_lv0
VG Name panini_vol_grp
LV UUID si5G1V-DwCL-vC3B-mmIo-5dKa-Iw1o-m2ZEvc
LV Write Access read/write
LV Creation host, time host, 2017-04-10 16:30:50 +0000
LV Status available
# open 1
LV Size 92.00 MiB
Current LE 23
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:8
--- Logical volume ---
LV Path /dev/panini_vol_grp/calvados_data_lv0
LV Name calvados_data_lv0
VG Name panini_vol_grp
LV UUID XJTqV7-vR1b-iGOY-FzfQ-6Myt-TpTg-O92WWy
LV Write Access read/write
LV Creation host, time host, 2017-04-10 16:30:51 +0000
LV Status available
# open 3
LV Size 1.99 GiB
Current LE 510
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9
--- Logical volume ---
LV Path /dev/panini_vol_grp/host_lv85
LV Name host_lv85
VG Name panini_vol_grp
LV UUID xq8zqA-iWtN-Oa6o-gyYa-dAgx-K9Rt-rOU87V
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-05-11 22:21:26 +0000
LV Status available
# open 1
LV Size 1000.00 MiB
Current LE 250
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:10
--- Logical volume ---
LV Path /dev/panini_vol_grp/calvados_lv86
LV Name calvados_lv86
VG Name panini_vol_grp
LV UUID 8GxSXQ-4Ldp-e6EM-qVWu-mOj8-q1Z2-pz8Gx4
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-05-11 22:22:06 +0000
LV Status available
# open 1
LV Size 2.44 GiB
Current LE 625
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:11
--- Logical volume ---
LV Path /dev/panini_vol_grp/xr_lv87
LV Name xr_lv87
VG Name panini_vol_grp
LV UUID exoOm4-wcGb-cflN-0am4-bGV7-NW2m-gGoXAx
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-05-11 22:24:00 +0000
LV Status available
# open 1
LV Size 3.99 GiB
Current LE 1022
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:12
--- Logical volume ---
LV Path /dev/panini_vol_grp/xr_lcp_lv88
LV Name xr_lcp_lv88
VG Name panini_vol_grp
LV UUID CaN9UY-s8cE-qUtp-H5Zp-1IVR-T2vN-iFeegp
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-05-11 22:28:35 +0000
LV Status available
# open 1
LV Size 3.99 GiB
Current LE 1022
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:13
--- Logical volume ---
LV Path /dev/panini_vol_grp/host_lv89
LV Name host_lv89
VG Name panini_vol_grp
LV UUID duq0NJ-Onod-0o2r-2C24-1ePe-W9rT-zS3fb6
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-09-22 16:57:36 +0000
LV Status available
# open 0
LV Size 1000.00 MiB
Current LE 250
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:14
--- Logical volume ---
LV Path /dev/panini_vol_grp/calvados_lv90
LV Name calvados_lv90
VG Name panini_vol_grp
LV UUID jYVtYD-B9xd-l16l-D2Gu-RtI7-l6TC-dvC5co
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-09-22 16:58:17 +0000
LV Status available
# open 0
LV Size 2.44 GiB
Current LE 625
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:15
--- Logical volume ---
LV Path /dev/panini_vol_grp/xr_lv91
LV Name xr_lv91
VG Name panini_vol_grp
LV UUID y42pGe-dWmH-gPAE-z2nM-OLBh-pDzO-GFHQfi
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-09-22 17:00:15 +0000
LV Status available
# open 0
LV Size 3.99 GiB
Current LE 1022
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:16
--- Logical volume ---
LV Path /dev/panini_vol_grp/xr_lcp_lv92
LV Name xr_lcp_lv92
VG Name panini_vol_grp
LV UUID R1xzFi-msiS-lDLj-YT1c-pFpL-HrCD-p1hlTg
LV Write Access read/write
LV Creation host, time host:0_RP0, 2018-09-22 17:04:19 +0000
LV Status available
# open 0
LV Size 3.99 GiB
Current LE 1022
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:17
--- Physical volumes ---
PV Name /dev/sda3
PV UUID qeE1pS-M3zz-tk7b-By3v-FWPr-LMcU-7ssE5N
PV Status allocatable
Total PE / Free PE 7568 / 624
[host:0_RP0:~]$
[host:0_RP0:~]$ pvdisplay --verbose
Scanning for physical volume names
--- Physical volume ---
PV Name /dev/sda6
VG Name app_vol_grp
PV Size 3.81 GiB / not usable 2.48 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 976
Free PE 0
Allocated PE 976
PV UUID XH2QnP-QRDZ-I8b4-ckTf-ke4f-cGyM-p6r4lh
--- Physical volume ---
PV Name /dev/sda5
VG Name pci_disk1
PV Size 19.67 GiB / not usable 4.65 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 5034
Free PE 91
Allocated PE 4943
PV UUID mUcX9E-9LPu-F2dX-7T25-0Nne-Wq2z-XjyfLz
--- Physical volume ---
PV Name /dev/sda3
VG Name panini_vol_grp
PV Size 29.56 GiB / not usable 1.44 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 7568
Free PE 624
Allocated PE 6944
PV UUID qeE1pS-M3zz-tk7b-By3v-FWPr-LMcU-7ssE5N
[host:0_RP0:~]$
[host:0_RP0:~]$ cat /etc/mtab
rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,relatime,mode=755 0 0
/dev/mapper/panini_vol_grp-host_lv85 / ext4 rw,relatime,discard,data=ordered 0 0
run /run tmpfs rw,relatime 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /var/volatile tmpfs rw,relatime 0 0
tmpfs /media/ram tmpfs rw,relatime 0 0
none /dev/shm tmpfs rw,relatime 0 0
none /dev/shm tmpfs rw,relatime 0 0
/dev/mapper/pci_disk1-ssd_disk1_hostos /misc/disk1 ext4 rw,relatime,discard,data=ordered 0 0
/dev/mapper/panini_vol_grp-host_data_scratch_lv0 /misc/scratch ext4 rw,relatime,discard,data=ordered 0 0
/dev/mapper/panini_vol_grp-host_data_config_lv0 /misc/config ext4 rw,relatime,discard,data=ordered 0 0
/dev/mapper/panini_vol_grp-host_data_log_lv0 /var/log ext4 rw,relatime,discard,data=ordered 0 0
none /mnt tmpfs rw,relatime,size=512k 0 0
/dev/ram7 /mnt/ram7 ext3 rw,relatime,data=ordered 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
cgroup /dev/cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /dev/cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /dev/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /dev/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /dev/cgroup/cpu cgroup rw,relatime,cpu 0 0
cgroup /dev/cgroup/freezer cgroup rw,relatime,freezer 0 0
run /run/netns tmpfs rw,relatime 0 0
/proc /run/netns/global-vrf proc rw,relatime 0 0
nodev /debugfs debugfs rw,relatime 0 0
none /mnt/pstore pstore rw,relatime 0 0
/dev/loop0 /lxc_rootfs/panini_vol_grp-calvados_lv86 ext4 rw,relatime,data=ordered 0 0
run /run/lxc tmpfs rw,relatime 0 0
/proc /run/lxc/sysadmin/ns/net proc rw,relatime 0 0
/proc /run/netns/sysadmin.libvirt proc rw,relatime 0 0
/dev/loop5 /lxc_rootfs/panini_vol_grp-xr_lv87 ext4 rw,relatime,data=ordered 0 0
/dev/mapper/app_vol_grp-app_lv0 /misc/app_host ext4 rw,relatime,data=ordered 0 0
/dev/mapper/app_vol_grp-app_lv0 /var/lib/docker ext4 rw,relatime,data=ordered 0 0
/proc /run/lxc/default-sdr--1/ns/net proc rw,relatime 0 0
/proc /run/netns/default-sdr--1.libvirt proc rw,relatime 0 0
/dev/loop11 /lxc_rootfs/panini_vol_grp-xr_lcp_lv88 ext4 rw,relatime,data=ordered 0 0
/proc /run/lxc/default-sdr--2/ns/net proc rw,relatime 0 0
/proc /run/netns/default-sdr--2.libvirt proc rw,relatime 0 0
[host:0_RP0:~]$
Fdisk can be used to show us all the logical disks:
[host:0_RP0:~]$ fdisk -l
Disk /dev/sda: 59.6 GiB, 64023257088 bytes, 125045424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6BFB6C1F-A7FE-47FA-A195-F14A5A7D0B14
Device Start End Size Type
/dev/sda1 40 1757815 858.3M Microsoft basic data
/dev/sda2 1757816 13757815 5.7G Microsoft basic data
/dev/sda3 13757816 75757815 29.6G Microsoft basic data
/dev/sda4 75757816 75796871 19.1M EFI System
/dev/sda5 75796872 117044919 19.7G Microsoft basic data
/dev/sda6 117044920 125045383 3.8G Microsoft basic data
Disk /dev/mapper/app_vol_grp-app_lv0: 3.8 GiB, 4093640704 bytes, 7995392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/pci_disk1-ssd_disk1_hostos: 1.9 GiB, 1992294400 bytes, 3891200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/pci_disk1-ssd_disk1_calvados_1: 5.8 GiB, 6203375616 bytes, 12115968 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/pci_disk1-ssd_disk1_xr_1: 5.8 GiB, 6203375616 bytes, 12115968 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/pci_disk1-xr_data_lv0: 3 GiB, 3166699520 bytes, 6184960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xe76476d5
Device Boot Start End Blocks Id System
/dev/mapper/pci_disk1-xr_data_lv0p1 2048 1005567 501760 83 Linux
/dev/mapper/pci_disk1-xr_data_lv0p2 1005568 2009087 501760 83 Linux
/dev/mapper/pci_disk1-xr_data_lv0p3 2009088 6182911 2086912 83 Linux
Disk /dev/mapper/pci_disk1-xr_lcp_data_lv0: 3 GiB, 3166699520 bytes, 6184960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x3967eae3
Device Boot Start End Blocks Id System
/dev/mapper/pci_disk1-xr_lcp_data_lv0p1 2048 1005567 501760 83 Linux
/dev/mapper/pci_disk1-xr_lcp_data_lv0p2 1005568 2009087 501760 83 Linux
/dev/mapper/pci_disk1-xr_lcp_data_lv0p3 2009088 6182911 2086912 83 Linux
Disk /dev/mapper/panini_vol_grp-host_data_scratch_lv0: 1.8 GiB, 1887436800 bytes, 3686400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/panini_vol_grp-host_data_log_lv0: 492 MiB, 515899392 bytes, 1007616 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/panini_vol_grp-host_data_config_lv0: 92 MiB, 96468992 bytes, 188416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/panini_vol_grp-calvados_data_lv0: 2 GiB, 2139095040 bytes, 4177920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x9c882cdb
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-calvados_data_lv0p1 2048 1005567 501760 83 Linux
/dev/mapper/panini_vol_grp-calvados_data_lv0p2 1005568 2009087 501760 83 Linux
/dev/mapper/panini_vol_grp-calvados_data_lv0p3 2009088 4177919 1084416 83 Linux
Disk /dev/mapper/panini_vol_grp-host_lv85: 1000 MiB, 1048576000 bytes, 2048000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/panini_vol_grp-calvados_lv86: 2.5 GiB, 2621440000 bytes, 5120000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x6e1aea16
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-calvados_lv86p1 2048 5119999 2558976 83 Linux
Disk /dev/mapper/panini_vol_grp-xr_lv87: 4 GiB, 4286578688 bytes, 8372224 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x2dac546a
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-xr_lv87p1 2048 8370175 4184064 83 Linux
Disk /dev/mapper/panini_vol_grp-xr_lcp_lv88: 4 GiB, 4286578688 bytes, 8372224 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x82d479bd
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-xr_lcp_lv88p1 2048 8370175 4184064 83 Linux
Disk /dev/mapper/panini_vol_grp-host_lv89: 1000 MiB, 1048576000 bytes, 2048000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/panini_vol_grp-calvados_lv90: 2.5 GiB, 2621440000 bytes, 5120000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0a9ac55c
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-calvados_lv90p1 2048 5119999 2558976 83 Linux
Disk /dev/mapper/panini_vol_grp-xr_lv91: 4 GiB, 4286578688 bytes, 8372224 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x3de20111
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-xr_lv91p1 2048 8370175 4184064 83 Linux
Disk /dev/mapper/panini_vol_grp-xr_lcp_lv92: 4 GiB, 4286578688 bytes, 8372224 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x26cdbf13
Device Boot Start End Blocks Id System
/dev/mapper/panini_vol_grp-xr_lcp_lv92p1 2048 8370175 4184064 83 Linux
Disk /dev/mapper/docker-253:0-25-pool: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 65536 bytes
Now to view the physical devices and how they map logically to partitions and LVMs.
As we can see below there is only one physical disk called sda, partitions into 6 partitions, sda3 which we were looking at earlier contains the vl87 VLM which maps to the rootfs mount point on loop 5.
[host:0_RP0:~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 59.6G 0 disk
|-sda1 8:1 0 858.3M 0 part
|-sda2 8:2 0 5.7G 0 part
|-sda3 8:3 0 29.6G 0 part
| |-panini_vol_grp-host_data_scratch_lv0 253:6 0 1.8G 0 lvm /misc/scratch
| |-panini_vol_grp-host_data_log_lv0 253:7 0 492M 0 lvm /var/log
| |-panini_vol_grp-host_data_config_lv0 253:8 0 92M 0 lvm /misc/config
| |-panini_vol_grp-calvados_data_lv0 253:9 0 2G 0 lvm
| |-panini_vol_grp-host_lv85 253:10 0 1000M 0 lvm /
| |-panini_vol_grp-calvados_lv86 253:11 0 2.5G 0 lvm
| |-panini_vol_grp-xr_lv87 253:12 0 4G 0 lvm
| |-panini_vol_grp-xr_lcp_lv88 253:13 0 4G 0 lvm
| |-panini_vol_grp-host_lv89 253:14 0 1000M 0 lvm
| |-panini_vol_grp-calvados_lv90 253:15 0 2.5G 0 lvm
| |-panini_vol_grp-xr_lv91 253:16 0 4G 0 lvm
| `-panini_vol_grp-xr_lcp_lv92 253:17 0 4G 0 lvm
|-sda4 8:4 0 19.1M 0 part
|-sda5 8:5 0 19.7G 0 part
| |-pci_disk1-ssd_disk1_hostos 253:1 0 1.9G 0 lvm /misc/disk1
| |-pci_disk1-ssd_disk1_calvados_1 253:2 0 5.8G 0 lvm
| |-pci_disk1-ssd_disk1_xr_1 253:3 0 5.8G 0 lvm
| |-pci_disk1-xr_data_lv0 253:4 0 3G 0 lvm
| `-pci_disk1-xr_lcp_data_lv0 253:5 0 3G 0 lvm
`-sda6 8:6 0 3.8G 0 part
`-app_vol_grp-app_lv0 253:0 0 3.8G 0 lvm /misc/app_host
loop0 7:0 0 2.5G 0 loop /lxc_rootfs/panini_vol_grp-calvados_lv86
loop1 7:1 0 490M 0 loop
loop2 7:2 0 490M 0 loop
loop3 7:3 0 1G 0 loop
loop4 7:4 0 5.7G 0 loop
loop5 7:5 0 4G 0 loop /lxc_rootfs/panini_vol_grp-xr_lv87
loop6 7:6 0 100G 0 loop
`-docker-253:0-25-pool 253:18 0 100G 0 dm
loop7 7:7 0 2G 0 loop
`-docker-253:0-25-pool 253:18 0 100G 0 dm
loop8 7:8 0 490M 0 loop
loop9 7:9 0 490M 0 loop
loop10 7:10 0 2G 0 loop
loop11 7:11 0 4G 0 loop /lxc_rootfs/panini_vol_grp-xr_lcp_lv88
loop12 7:12 0 490M 0 loop
loop13 7:13 0 490M 0 loop
loop14 7:14 0 2G 0 loop
[host:0_RP0:~]$
One more command that can be useful.
[host:0_RP0:~]$ parted -l
Model: ATA Micron_M600_MTFD (scsi)
Disk /dev/sda: 64.0GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 20.5kB 900MB 900MB ext4 partition01
2 900MB 7044MB 6144MB partition02
3 7044MB 38.8GB 31.7GB partition03
4 38.8GB 38.8GB 20.0MB fat16 partition04 boot
5 38.8GB 59.9GB 21.1GB partition05
6 59.9GB 64.0GB 4096MB partitiontp
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: