Re: lvm2 on sparc64 = bus error

2016-02-09 Thread John Paul Adrian Glaubitz
Hi Anatoly!

On 02/09/2016 08:15 PM, Anatoly Pugachev wrote:
> continue from https://bugs.debian.org/809685

You don't have to mention the previous bug report here, your
message is automatically appended to the existing bug report
the moment you CC the bug report's address :).

> if I get lvm2 source from git , compile and try to run , there's no "bus 
> error":
> (...)
> root@deb4g:/mnt/1/lvm2# tools/lvm version
>   LVM version: 2.02.142(2)-git (2016-01-25)
>   Library version: 1.02.116-git (2016-01-25)
>   Driver version:  4.34.0

Interesting. Can you post the version numbers for lvm2 taken from
the Debian package? I have had a look at the lvm2 git repository
and there don't seem be any big changes after 2.02.142 which
could cause this issue. If we can pinpoint the change that fixed
the bug, we could just cherry-pick the necessary patch.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



lvm2 on sparc64 = bus error

2016-02-09 Thread Anatoly Pugachev

continue from https://bugs.debian.org/809685

updated to 2.02.141-2 , still "bus error":

mator@deb4g:/mnt/1$ dpkg -l lvm2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ NameVersion  Architecture 
Description
+++-===---=
ii  lvm22.02.141-2   sparc64  
Linux Logical Volume Manager
mator@deb4g:/mnt/1$ /sbin/lvm lvs
  WARNING: Running as a non-root user. Functionality may be unavailable.
Bus error

if I get lvm2 source from git , compile and try to run , there's no "bus error":

mator@deb4g:/mnt/1$ git clone https://git.fedorahosted.org/git/lvm2.git 
mator@deb4g:/mnt/1$ cd lvm2
mator@deb4g:/mnt/1/lvm2$ ./configure && make -j
mator@deb4g:/mnt/1/lvm2$ find . -name lvm
./tools/lvm
mator@deb4g:/mnt/1/lvm2$ sudo -s
root@deb4g:/mnt/1/lvm2# export LD_LIBRARY_PATH=./libdm
root@deb4g:/mnt/1/lvm2# tools/lvm lvs
root@deb4g:/mnt/1/lvm2# tools/lvm pvs
root@deb4g:/mnt/1/lvm2# tools/lvm pvcreate /dev/vdiske1 
  Physical volume "/dev/vdiske1" successfully created
root@deb4g:/mnt/1/lvm2# tools/lvm pvcreate /dev/vdiske2
  Physical volume "/dev/vdiske2" successfully created
root@deb4g:/mnt/1/lvm2# tools/lvm pvs
  PV   VG   Fmt  Attr PSize   PFree  
  /dev/vdiske1  lvm2 ---  953.00m 953.00m
  /dev/vdiske2  lvm2 ---  953.00m 953.00m
root@deb4g:/mnt/1/lvm2# tools/lvm vgs
root@deb4g:/mnt/1/lvm2# tools/lvm vgcreate vg1 /dev/vdiske1 /dev/vdiske2
  Volume group "vg1" successfully created
root@deb4g:/mnt/1/lvm2# tools/lvm lvcreate -n vg1/lv1 -L100M
  Logical volume "lv1" created.
root@deb4g:/mnt/1/lvm2# mkfs.ext4 /dev/vg1/lv1
mke2fs 1.43-WIP (18-May-2015)
Creating filesystem with 102400 1k blocks and 25688 inodes
Filesystem UUID: ae62d8e9-37fb-4282-a536-3a529739817c
Superblock backups stored on blocks: 
8193, 24577, 40961, 57345, 73729

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done 

root@deb4g:/mnt/1/lvm2# mkdir /lvtest
root@deb4g:/mnt/1/lvm2# mount /dev/vg1/lv1 /lvtest
root@deb4g:/mnt/1/lvm2# 
root@deb4g:/mnt/1/lvm2# tools/lvm version
  LVM version: 2.02.142(2)-git (2016-01-25)
  Library version: 1.02.116-git (2016-01-25)
  Driver version:  4.34.0