17.09.2011 14:18, Vadym Chepkov wrote:
> Hi,
> 
> How does one filter iSCSI disks in lvm.conf? In our configurations
> all iSCSI disks belong to virtual machines, so I don't want host
> server to see LVM on those disks. Just relying on the device names is
> not reliable, especially if the server has hot-swappable disks.

You should find some permanent device names for your physical devices
(actually regexps) in /dev/disk/by-*, whitelist them and blacklist
everything else.

[...]

> 
> I thought to scan only /dev/disk/by-path/ and exclude devices started with 
> "ip-", 
> but this path doesn't exist during system boot, so I afraid I won't be able 
> to load OS from a logical volume.

You should remember that you need to blacklist *all* names for given
device if you do not want it to appear as PV. The best way I found,
again, is to disable everything except what I actually need.

Do you use dracut initramfs to boot? It does some lvm-related things by
itself from initrd. This is usually enough to mount root volume.

Best,
Vladislav
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to