Re: [linux-lvm] Maximum address used by a virtual disk on a thin pool.

2019-06-13 Thread Gionatan Danti

Il 13-06-2019 18:05 Ilia Zykov ha scritto:

Hello.
Tell me please, how can I get the maximum address used by a virtual 
disk

(disk created with -V VirtualSize). I have several large virtual disks,
but they use only a small part at the beginning of the disk. For 
example:


# lvs
  LV VG  Attr   LSize   Pool Origin Data%
  mylvm  CVG Vwi-aot--- 100,00g fastheap7,13


Please advise me how to determine from which address the virtual disk
did not allocate real disk space? And all the data read from addresses
greater than this address will be exactly zeros. Or maybe, how can I 
get

map of the used chunks of disk?

Thanks.


Maybe thin_dump[1] can help you?
Regards.

[1] https://linux.die.net/man/8/thin_dump

--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.da...@assyoma.it - i...@assyoma.it
GPG public key ID: FF5F32A8

___
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[linux-lvm] Maximum address used by a virtual disk on a thin pool.

2019-06-13 Thread Ilia Zykov
Hello.
Tell me please, how can I get the maximum address used by a virtual disk
(disk created with -V VirtualSize). I have several large virtual disks,
but they use only a small part at the beginning of the disk. For example:

# lvs
  LV VG  Attr   LSize   Pool Origin Data%
  mylvm  CVG Vwi-aot--- 100,00g fastheap7,13


Please advise me how to determine from which address the virtual disk
did not allocate real disk space? And all the data read from addresses
greater than this address will be exactly zeros. Or maybe, how can I get
map of the used chunks of disk?

Thanks.



___
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[linux-lvm] Question about filter behavior on pvcreate /dev/md0

2019-06-13 Thread Heming Zhao
Hello List,

I created a md device, and used pvcreate to format it.
But the pvcreate was failed with filter rules.
the filter in /etc/lvm/lvm.conf:
```
filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", 
"r|/dev/fd.*|", "r|/dev/cdrom|" ]
```
if I remove the filter, pvcreate will be successful. why?

steps:
```
# rpm -qa | grep lvm2
lvm2-2.02.180-10.el7_6.7.x86_64
lvm2-libs-2.02.180-10.el7_6.7.x86_64
# dd if=/dev/zero of=/dev/sda bs=1M
   ... ...
# dd if=/dev/zero of=/dev/sdb bs=1M
   ... ...
# mdadm -C /dev/md0 -l 0 -n 2 -a yes /dev/sda /dev/sdb
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started
# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda  8:00  256M  0 disk
└─md09:00  508M  0 raid0
sdb  8:16   0  256M  0 disk
└─md09:00  508M  0 raid0
vda253:00   40G  0 disk
├─vda1 253:101G  0 part  /boot
├─vda2 253:20   38G  0 part  /
└─vda3 253:301G  0 part  [SWAP]
# pvcreate /dev/md0
   Device /dev/md0 excluded by a filter.
```

Thanks
zhm

___
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/