* [sisyphus] Сломался LVM2? @ 2006-05-25 6:09 Eugene Prokopiev 2006-05-25 7:09 ` Anton Farygin ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Eugene Prokopiev @ 2006-05-25 6:09 UTC (permalink / raw) To: Sisyphus Здравствуйте! На сегодняшнем Сизифе: # lvscan ACTIVE '/dev/system/root' [2.00 GB] inherit ACTIVE '/dev/system/home' [1.00 GB] inherit ACTIVE '/dev/system/var' [1.00 GB] inherit ACTIVE '/dev/system/data' [65.00 GB] inherit # /sbin/lvcreate -L1000 -s -nhomebackup /dev/system/home Symbolic link /dev/mapper/system-home not created: file exists Failed to create symlinks for home. Failed to suspend origin home # lvscan ACTIVE '/dev/system/root' [2.00 GB] inherit ACTIVE '/dev/system/home' [1.00 GB] inherit ACTIVE '/dev/system/var' [1.00 GB] inherit ACTIVE '/dev/system/data' [65.00 GB] inherit ACTIVE '/dev/system/homebackup' [1000.00 MB] inherit # mount /dev/system/homebackup /mnt/backup /dev/system/homebackup: Invalid argument mount: /dev/system/homebackup: can't read superblock # lvremove /dev/system/homebackup Do you really want to remove active logical volume "homebackup"? [y/n]: y Logical volume "homebackup" successfully removed Отчего lvcreate приводит к таким странным результатам? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 6:09 [sisyphus] Сломался LVM2? Eugene Prokopiev @ 2006-05-25 7:09 ` Anton Farygin 2006-05-25 8:05 ` Pavlov Konstantin 2006-05-25 11:39 ` Nick S. Grechukh 2 siblings, 0 replies; 9+ messages in thread From: Anton Farygin @ 2006-05-25 7:09 UTC (permalink / raw) To: sisyphus Eugene Prokopiev wrote: > Здравствуйте! > > На сегодняшнем Сизифе: > > # lvscan > ACTIVE '/dev/system/root' [2.00 GB] inherit > ACTIVE '/dev/system/home' [1.00 GB] inherit > ACTIVE '/dev/system/var' [1.00 GB] inherit > ACTIVE '/dev/system/data' [65.00 GB] inherit > # /sbin/lvcreate -L1000 -s -nhomebackup /dev/system/home > Symbolic link /dev/mapper/system-home not created: file exists > Failed to create symlinks for home. > Failed to suspend origin home > # lvscan > ACTIVE '/dev/system/root' [2.00 GB] inherit > ACTIVE '/dev/system/home' [1.00 GB] inherit > ACTIVE '/dev/system/var' [1.00 GB] inherit > ACTIVE '/dev/system/data' [65.00 GB] inherit > ACTIVE '/dev/system/homebackup' [1000.00 MB] inherit > # mount /dev/system/homebackup /mnt/backup > /dev/system/homebackup: Invalid argument > mount: /dev/system/homebackup: can't read superblock > # lvremove /dev/system/homebackup > Do you really want to remove active logical volume "homebackup"? [y/n]: y > Logical volume "homebackup" successfully removed > > Отчего lvcreate приводит к таким странным результатам? > lvm2 не изменялся. Были изменения для udev, но я не знаю, как они могут сказаться. Rgds, Rider ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 6:09 [sisyphus] Сломался LVM2? Eugene Prokopiev 2006-05-25 7:09 ` Anton Farygin @ 2006-05-25 8:05 ` Pavlov Konstantin 2006-05-25 9:47 ` Eugene Prokopiev 2006-05-25 11:39 ` Nick S. Grechukh 2 siblings, 1 reply; 9+ messages in thread From: Pavlov Konstantin @ 2006-05-25 8:05 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list [-- Attachment #1: Type: text/plain, Size: 553 bytes --] On Thursday 25 May 2006 10:09, Eugene Prokopiev wrote: > # mount /dev/system/homebackup /mnt/backup > /dev/system/homebackup: Invalid argument > mount: /dev/system/homebackup: can't read superblock > # lvremove /dev/system/homebackup > Do you really want to remove active logical volume "homebackup"? [y/n]: y > Logical volume "homebackup" successfully removed > > Отчего lvcreate приводит к таким странным результатам? А если сервис udev остановить, картина та же? -- Pavlov Konstantin, ALT Linux Team, jid: thresh@altlinux.org [-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 8:05 ` Pavlov Konstantin @ 2006-05-25 9:47 ` Eugene Prokopiev 2006-05-25 10:15 ` Anton Farygin 2006-05-25 10:20 ` Eugene Prokopiev 0 siblings, 2 replies; 9+ messages in thread From: Eugene Prokopiev @ 2006-05-25 9:47 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Pavlov Konstantin пишет: > On Thursday 25 May 2006 10:09, Eugene Prokopiev wrote: > > >># mount /dev/system/homebackup /mnt/backup >>/dev/system/homebackup: Invalid argument >>mount: /dev/system/homebackup: can't read superblock >># lvremove /dev/system/homebackup >>Do you really want to remove active logical volume "homebackup"? [y/n]: y >> Logical volume "homebackup" successfully removed >> >>Отчего lvcreate приводит к таким странным результатам? > > > А если сервис udev остановить, картина та же? нет, в этом случае все замечательно :) еще все довольно неплохо, если перед каждой операцией (возможно, перед некоторыми) вызывать vgmknodes, которым раньше занимался udevd следующим образом: # cat /etc/udev/rules.d/10-lvm.rules ## LVM compatibility by gns@altlinux.org KERNEL="dm-[0-9]*", PROGRAM="/etc/udev/scripts/lvm-vg.sh %M %m", NAME="%k", SYMLINK="%c" # cat /etc/udev/scripts/lvm-vg.sh #!/bin/sh ## LVM compatibility by gns@altlinux.org [ -e /sbin/vgmknodes ] && /sbin/vgmknodes >/dev/null 2>/dev/null /sbin/devmap_name $* Похоже, тут что-то и сломалось. Да, еще такой момент. До сих пор /sbin/devmap_name был частью моего пакета multipath-tools-devmap_name, однако, похоже, что-то подобное умеет делать dmsetup, который я доустановил пару дней назад (udevd ругался на его отсутствие) -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 9:47 ` Eugene Prokopiev @ 2006-05-25 10:15 ` Anton Farygin 2006-05-25 10:20 ` Eugene Prokopiev 1 sibling, 0 replies; 9+ messages in thread From: Anton Farygin @ 2006-05-25 10:15 UTC (permalink / raw) To: sisyphus Eugene Prokopiev wrote: > Pavlov Konstantin пишет: >> On Thursday 25 May 2006 10:09, Eugene Prokopiev wrote: >> >> >>> # mount /dev/system/homebackup /mnt/backup >>> /dev/system/homebackup: Invalid argument >>> mount: /dev/system/homebackup: can't read superblock >>> # lvremove /dev/system/homebackup >>> Do you really want to remove active logical volume "homebackup"? [y/n]: y >>> Logical volume "homebackup" successfully removed >>> >>> Отчего lvcreate приводит к таким странным результатам? >> >> А если сервис udev остановить, картина та же? > > нет, в этом случае все замечательно :) > > еще все довольно неплохо, если перед каждой операцией (возможно, перед > некоторыми) вызывать vgmknodes, которым раньше занимался udevd следующим > образом: > > # cat /etc/udev/rules.d/10-lvm.rules > ## LVM compatibility by gns@altlinux.org > KERNEL="dm-[0-9]*", PROGRAM="/etc/udev/scripts/lvm-vg.sh %M %m", > NAME="%k", > SYMLINK="%c" > > # cat /etc/udev/scripts/lvm-vg.sh > #!/bin/sh > ## LVM compatibility by gns@altlinux.org > [ -e /sbin/vgmknodes ] && /sbin/vgmknodes >/dev/null 2>/dev/null > /sbin/devmap_name $* > > Похоже, тут что-то и сломалось. Да, еще такой момент. До сих пор > /sbin/devmap_name был частью моего пакета multipath-tools-devmap_name, > однако, похоже, что-то подобное умеет делать dmsetup, который я > доустановил пару дней назад (udevd ругался на его отсутствие) > Пожалуйтесь здесь: https://bugzilla.altlinux.org/show_bug.cgi?id=7369 Rgds, Rider ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 9:47 ` Eugene Prokopiev 2006-05-25 10:15 ` Anton Farygin @ 2006-05-25 10:20 ` Eugene Prokopiev 2006-05-25 10:53 ` Eugene Prokopiev 1 sibling, 1 reply; 9+ messages in thread From: Eugene Prokopiev @ 2006-05-25 10:20 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Eugene Prokopiev пишет: > Pavlov Konstantin пишет: > >>On Thursday 25 May 2006 10:09, Eugene Prokopiev wrote: >> >> >> >>># mount /dev/system/homebackup /mnt/backup >>>/dev/system/homebackup: Invalid argument >>>mount: /dev/system/homebackup: can't read superblock >>># lvremove /dev/system/homebackup >>>Do you really want to remove active logical volume "homebackup"? [y/n]: y >>> Logical volume "homebackup" successfully removed >>> >>>Отчего lvcreate приводит к таким странным результатам? >> >> >>А если сервис udev остановить, картина та же? > > > нет, в этом случае все замечательно :) > > еще все довольно неплохо, если перед каждой операцией (возможно, перед > некоторыми) вызывать vgmknodes, которым раньше занимался udevd следующим > образом: > > # cat /etc/udev/rules.d/10-lvm.rules > ## LVM compatibility by gns@altlinux.org > KERNEL="dm-[0-9]*", PROGRAM="/etc/udev/scripts/lvm-vg.sh %M %m", > NAME="%k", > SYMLINK="%c" > > # cat /etc/udev/scripts/lvm-vg.sh > #!/bin/sh > ## LVM compatibility by gns@altlinux.org > [ -e /sbin/vgmknodes ] && /sbin/vgmknodes >/dev/null 2>/dev/null > /sbin/devmap_name $* > > Похоже, тут что-то и сломалось. Да, еще такой момент. До сих пор > /sbin/devmap_name был частью моего пакета multipath-tools-devmap_name, > однако, похоже, что-то подобное умеет делать dmsetup, который я > доустановил пару дней назад (udevd ругался на его отсутствие) > Еще один способ борьбы: комментируем в 60-persistent-storage.rules все строки с KERNEL=="dm-[0-9]*" и после каждого создания/удаления логических томов вызываем lvscan. Похоже, udevd стал слишком умным и создает устройства в /dev/ только тогда, когда к ним обращаются, а затем разу же и удаляет ; . Если не делать вышесказанного, то нужно время от времени удалять инвалидные ссылки вида /dev/vgname/lvname -> /dev/mapper/vgname-lvname, /dev/mapper/vgname-lvname удаляется сам. Как правильно с этим бороться? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 10:20 ` Eugene Prokopiev @ 2006-05-25 10:53 ` Eugene Prokopiev 0 siblings, 0 replies; 9+ messages in thread From: Eugene Prokopiev @ 2006-05-25 10:53 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Есть еще один совершеннейший стук в подвале: после lvcreate и mount иногда не удается сделать umount (хотя lsof и fuser говорят, что никому эта фс не нужна). Сегодня уже дважды после такой проблемы и последующей перезагрузки умирал initrd (!), который лежит, естественно, не на lvm, а отдельно на md0. Т.е. размер и дата создания вроде не менялись, однако скрипт вида: #!/bin/sh /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/md/dm-mod.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/ide/ide-core.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/ide/pci/piix.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/ide/pci/generic.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/ide/ide-generic.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/ide/ide-disk.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/md/raid0.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/drivers/md/raid1.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/fs/mbcache.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/fs/jbd/jbd.ko /bin/insmod -f /lib/modules/2.6.16-std26-up-alt5/kernel/fs/ext3/ext3.ko /bin/mount -t proc proc /proc /bin/mount -t tmpfs -o size=1m none /dev/mapper /bin/mount -t tmpfs -o size=1m none /dev/system /bin/mount -t tmpfs -o size=1m none /etc /bin/mount -t tmpfs -o size=1m none /var /bin/mknod -m 600 /dev/mapper/control c 10 63 /bin/raidautorun /dev/md255 cat /proc/mdstat /bin/lvm vgscan /bin/lvm vgchange -ay /bin/lvm lvscan read cmdline </proc/cmdline cmdline=" $cmdline " if test -z "${cmdline##*[ ]real_root=*}" ; then root="${cmdline##*[ ]real_root=}" echo "real_root param is " $root root_mapping=`ls -l $root | awk -F'->' '{print $2}'` echo "root mapping is " $root_mapping major=`ls -l $root_mapping | awk '{print $5}' | awk -F',' '{print $1}'` minor=`ls -l $root_mapping | awk '{print $6}'` echo "root mapping is " $root_mapping " " $major " " $minor echo $(( ($minor & 0xff) | ($major << 8) | (($minor & ~0xff) << 12) )) > /proc/sys/kernel/real-root-dev fi /bin/umount /var /bin/umount /etc /bin/umount /dev/system /bin/umount /dev/mapper /bin/umount /proc который лежит внутри, выводил мусор в виде огрызков дат, а затем я получал kernel panic. лечилось с помощью genromfs -f /boot/initrd-up -d initrd/ и lilo ... как это может быть связано? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 6:09 [sisyphus] Сломался LVM2? Eugene Prokopiev 2006-05-25 7:09 ` Anton Farygin 2006-05-25 8:05 ` Pavlov Konstantin @ 2006-05-25 11:39 ` Nick S. Grechukh 2006-05-25 11:55 ` Eugene Prokopiev 2 siblings, 1 reply; 9+ messages in thread From: Nick S. Grechukh @ 2006-05-25 11:39 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Eugene Prokopiev wrote: https://bugzilla.altlinux.org/show_bug.cgi?id=7369#c40 возможно, у Вас странная смесь старых и новых правил udev? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] Сломался LVM2? 2006-05-25 11:39 ` Nick S. Grechukh @ 2006-05-25 11:55 ` Eugene Prokopiev 0 siblings, 0 replies; 9+ messages in thread From: Eugene Prokopiev @ 2006-05-25 11:55 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Nick S. Grechukh пишет: > Eugene Prokopiev wrote: > > https://bugzilla.altlinux.org/show_bug.cgi?id=7369#c40 > > возможно, у Вас странная смесь старых и новых правил udev? по приведенной ссылке как раз описано, что у меня сейчас есть - см. последнее сообщение -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-05-25 11:55 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-05-25 6:09 [sisyphus] Сломался LVM2? Eugene Prokopiev 2006-05-25 7:09 ` Anton Farygin 2006-05-25 8:05 ` Pavlov Konstantin 2006-05-25 9:47 ` Eugene Prokopiev 2006-05-25 10:15 ` Anton Farygin 2006-05-25 10:20 ` Eugene Prokopiev 2006-05-25 10:53 ` Eugene Prokopiev 2006-05-25 11:39 ` Nick S. Grechukh 2006-05-25 11:55 ` Eugene Prokopiev
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git