PDA

View Full Version : SLES-Other LVM inactive on startup and reboot



mikenash
26-Jun-2017, 15:18
The system is SLES 11 SP1. The LVM volumes are inactive after an IPL. I am able to make them active and successfully mount them. On reboot these volumes are once again inactive. I turned verbose on and reboot. Issued "lvscan" then activated the LVM volumes and issued "lvscan".
LVM inactive lvscan.

linux215:~ # lvscan
Setting log/indent to 1
Setting log/prefix to
Setting log/command_names to 0
Setting global/test to 0
Setting log/overwrite to 0
Setting log/file to /var/log/lvm2.log
log/activation not found in config: defaulting to 0
Logging initialised at Mon Jun 26 09:49:40 2017
Setting global/umask to 63
Set umask to 0077
Setting devices/dir to /dev
Setting global/proc to /proc
Setting global/activation to 1
global/suffix not found in config: defaulting to 1
global/units not found in config: defaulting to h
activation/readahead not found in config: defaulting to auto
Setting activation/missing_stripe_filler to error
devices/preferred_names not found in config file: using built-in preferences
Matcher built with 125 dfa states
devices/ignore_suspended_devices not found in config: defaulting to 1
Setting devices/cache to /etc/lvm/.cache
Setting devices/write_cache_state to 1
Opened /etc/lvm/.cache RO
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7.00000000000027200000000 000000000-part1: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1 in device cache
/dev/mapper/pool1-lvvartmp: stat failed: No such file or directory
/dev/XOR: Not a block device
/dev/autofs: Not a block device
/dev/blog: Not a block device
/dev/console: Not a block device
/dev/core: Not a block device
/dev/cpu_dma_latency: Not a block device
/dev/dasd_eer: Not a block device
/dev/dasda: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000 in device cache (preferred name)
/dev/dasda1: Added to device cache
/dev/dasdb: Added to device cache
/dev/dasdb1: Added to device cache
/dev/dasdc: Added to device cache
/dev/dasdc1: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1 in device cache (preferred name)
/dev/dasdd: Added to device cache
/dev/dasdd1: Added to device cache
/dev/dasde: Added to device cache
/dev/dasde1: Added to device cache
/dev/device-mapper: Not a block device
/dev/disk/by-id/ccw-0X0601: Aliased to /dev/dasdc in device cache
/dev/disk/by-id/ccw-0X0601-part1: Aliased to /dev/dasdc1 in device cache
/dev/disk/by-id/ccw-0X0602: Aliased to /dev/dasdd in device cache
/dev/disk/by-id/ccw-0X0602-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-id/ccw-0X0603: Aliased to /dev/dasde in device cache
/dev/disk/by-id/ccw-0X0603-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac: Aliased to /dev/dasda in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac-part1: Aliased to /dev/dasda1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000: Already in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000-part1: Aliased to /dev/dasda1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7: Aliased to /dev/dasdc in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1: Already in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7.00000000000027200000000 000000000: Aliased to /dev/dasdc in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7.00000000000027200000000 000000000-part1: Already in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e: Aliased to /dev/dasdd in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e.00000000000027200000000 000000000: Aliased to /dev/dasdd in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e.00000000000027200000000 000000000-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59: Aliased to /dev/dasdb in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59.0000000000000d0a0000000 000000000: Aliased to /dev/dasdb in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59.0000000000000d0a0000000 000000000-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90: Aliased to /dev/dasde in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90.00000000000027200000000 000000000: Aliased to /dev/dasde in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90.00000000000027200000000 000000000-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-id/ccw-L215SW: Aliased to /dev/dasdb in device cache
/dev/disk/by-id/ccw-L215SW-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-id/ccw-SLESB0: Aliased to /dev/dasda in device cache
/dev/disk/by-id/ccw-SLESB0-part1: Aliased to /dev/dasda1 in device cache
/dev/disk/by-path/ccw-0.0.0600: Aliased to /dev/dasdb in device cache
/dev/disk/by-path/ccw-0.0.0600-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-path/ccw-0.0.0601: Aliased to /dev/dasdc in device cache
/dev/disk/by-path/ccw-0.0.0601-part1: Aliased to /dev/dasdc1 in device cache
/dev/disk/by-path/ccw-0.0.0602: Aliased to /dev/dasdd in device cache
/dev/disk/by-path/ccw-0.0.0602-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-path/ccw-0.0.0603: Aliased to /dev/dasde in device cache
/dev/disk/by-path/ccw-0.0.0603-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-path/ccw-0.0.15b0: Aliased to /dev/dasda in device cache
/dev/disk/by-path/ccw-0.0.15b0-part1: Aliased to /dev/dasda1 in device cache
/dev/disk/by-uuid/639282c8-ce53-4f9a-88fa-49505085d809: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-uuid/ff012db8-7729-4568-a5f2-e1bf458b6b45: Aliased to /dev/dasda1 in device cache
/dev/fd: Symbolic link to directory
/dev/full: Not a block device
/dev/fuse: Not a block device
/dev/fwmonitor: Not a block device
/dev/hvc0: Not a block device
/dev/hvc1: Not a block device
/dev/hvc2: Not a block device
/dev/hvc3: Not a block device
/dev/hvc4: Not a block device
/dev/hvc5: Not a block device
/dev/hvc6: Not a block device
/dev/hvc7: Not a block device
/dev/initctl: Not a block device
/dev/kmem: Not a block device
/dev/kmsg: Not a block device
/dev/log: Not a block device
/dev/loop0: Added to device cache
/dev/loop1: Added to device cache
/dev/loop2: Added to device cache
/dev/loop3: Added to device cache
/dev/loop4: Added to device cache
/dev/loop5: Added to device cache
/dev/loop6: Added to device cache
/dev/loop7: Added to device cache
/dev/lp0: Not a block device
/dev/mapper/control: Not a block device
/dev/md0: Added to device cache
/dev/md1: Added to device cache
/dev/md10: Added to device cache
/dev/md11: Added to device cache
/dev/md12: Added to device cache
/dev/md13: Added to device cache
/dev/md14: Added to device cache
/dev/md15: Added to device cache
/dev/md16: Added to device cache
/dev/md17: Added to device cache
/dev/md18: Added to device cache
/dev/md19: Added to device cache
/dev/md2: Added to device cache
/dev/md20: Added to device cache
/dev/md21: Added to device cache
/dev/md22: Added to device cache
/dev/md23: Added to device cache
/dev/md24: Added to device cache
/dev/md25: Added to device cache
/dev/md26: Added to device cache
/dev/md27: Added to device cache
/dev/md28: Added to device cache
/dev/md29: Added to device cache
/dev/md3: Added to device cache
/dev/md30: Added to device cache
/dev/md31: Added to device cache
/dev/md4: Added to device cache
/dev/md5: Added to device cache
/dev/md6: Added to device cache
/dev/md7: Added to device cache
/dev/md8: Added to device cache
/dev/md9: Added to device cache
/dev/mem: Not a block device
/dev/net/tun: Not a block device
/dev/network_latency: Not a block device
/dev/network_throughput: Not a block device
/dev/null: Not a block device
/dev/ppp: Not a block device
/dev/ptmx: Not a block device
/dev/pts/0: Not a block device
/dev/pts/ptmx: Not a block device
/dev/random: Not a block device
/dev/root: Aliased to /dev/dasda1 in device cache (preferred name)
/dev/route: Not a block device
/dev/skip: Not a block device
/dev/snapshot: Not a block device
/dev/stderr: Not a block device
/dev/stdin: Not a block device
/dev/stdout: Not a block device
/dev/tty: Not a block device
/dev/tty1: Not a block device
/dev/ttyS0: Not a block device
/dev/ttyS1: Not a block device
/dev/ttyS2: Not a block device
/dev/ttyS3: Not a block device
/dev/ttyS4: Not a block device
/dev/ttyS5: Not a block device
/dev/ttyS6: Not a block device
/dev/ttyS7: Not a block device
/dev/ttysclp0: Not a block device
/dev/urandom: Not a block device
/dev/watchdog: Not a block device
/dev/xconsole: Not a block device
/dev/zero: Not a block device
/dev/disk/by-id/dm-name-pool1-lvopt: stat failed: No such file or directory
/dev/disk/by-id/dm-uuid-LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd34efDDSgPINh0iIcZJ CFFKy7pHaTW4lU: stat failed: No such file or directory
/dev/mapper/pool1-lvopt: stat failed: No such file or directory
/dev/disk/by-id/dm-uuid-LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLdJHB5AqtUGfmsuG3oRn MzdAALDaZgRIKg: stat failed: No such file or directory
/dev/pool1/lvvartmp: stat failed: No such file or directory
/dev/pool1/lvopt: stat failed: No such file or directory
/dev/dm-1: stat failed: No such file or directory
/dev/dm-0: stat failed: No such file or directory
/dev/disk/by-uuid/f8ddfecb-a909-405a-8812-37fdb3348d35: stat failed: No such file or directory
/dev/disk/by-uuid/113485bc-17a0-4eeb-9f0e-e0621653aa96: stat failed: No such file or directory
/dev/disk/by-id/dm-name-pool1-lvvartmp: stat failed: No such file or directory
Loaded persistent filter cache from /etc/lvm/.cache
Closed /etc/lvm/.cache
Setting activation/reserved_stack to 256
Setting activation/reserved_memory to 8192
Setting activation/process_priority to -18
Initialised format: lvm1
Initialised format: pool
Initialised format: lvm2
global/format not found in config: defaulting to lvm2
lvmcache: initialised VG #orphans_lvm1
lvmcache: initialised VG #orphans_pool
lvmcache: initialised VG #orphans_lvm2
Initialised segtype: striped
Initialised segtype: zero
Initialised segtype: error
Initialised segtype: free
Setting dmeventd/snapshot_library to libdevmapper-event-lvm2snapshot.so.2.02
Initialised segtype: snapshot
Initialised segtype: mirror
Setting backup/retain_days to 30
Setting backup/retain_min to 10
Setting backup/archive_dir to /etc/lvm/archive
Setting backup/backup_dir to /etc/lvm/backup
global/fallback_to_lvm1 not found in config: defaulting to 0
Parsing: lvscan
Processing: lvscan
O_DIRECT will be used
Setting global/locking_type to 3
Cluster locking selected.
connect() failed on local socket: Connection refused
locking/fallback_to_local_locking not found in config: defaulting to 1
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.
Setting global/locking_dir to /var/lock/lvm
Finding all logical volumes
Opened /dev/loop0 RO
/dev/loop0: size is 0 sectors
/dev/loop0: Skipping: Too small to hold a PV
Closed /dev/loop0
/dev/md0: Skipping (sysfs)
Opened /dev/dasda RO O_DIRECT
/dev/dasda: block size is 4096 bytes
/dev/dasda: No label detected
Closed /dev/dasda
Opened /dev/loop1 RO
/dev/loop1: size is 0 sectors
/dev/loop1: Skipping: Too small to hold a PV
Closed /dev/loop1
/dev/md1: Skipping (sysfs)
Opened /dev/root RO O_DIRECT
/dev/root: block size is 4096 bytes
/dev/root: No label detected
Closed /dev/root
Opened /dev/loop2 RO
/dev/loop2: size is 0 sectors
/dev/loop2: Skipping: Too small to hold a PV
Closed /dev/loop2
/dev/md2: Skipping (sysfs)
Opened /dev/loop3 RO
/dev/loop3: size is 0 sectors
/dev/loop3: Skipping: Too small to hold a PV
Closed /dev/loop3
/dev/md3: Skipping (sysfs)
Opened /dev/loop4 RO
/dev/loop4: size is 0 sectors
/dev/loop4: Skipping: Too small to hold a PV
Closed /dev/loop4
/dev/md4: Skipping (sysfs)
Opened /dev/dasdb RO O_DIRECT
/dev/dasdb: block size is 4096 bytes
/dev/dasdb: No label detected
Closed /dev/dasdb
Opened /dev/loop5 RO
/dev/loop5: size is 0 sectors
/dev/loop5: Skipping: Too small to hold a PV
Closed /dev/loop5
/dev/md5: Skipping (sysfs)
Opened /dev/dasdb1 RO O_DIRECT
/dev/dasdb1: block size is 4096 bytes
/dev/dasdb1: No label detected
Closed /dev/dasdb1
Opened /dev/loop6 RO
/dev/loop6: size is 0 sectors
/dev/loop6: Skipping: Too small to hold a PV
Closed /dev/loop6
/dev/md6: Skipping (sysfs)
Opened /dev/loop7 RO
/dev/loop7: size is 0 sectors
/dev/loop7: Skipping: Too small to hold a PV
Closed /dev/loop7
/dev/md7: Skipping (sysfs)
/dev/md8: Skipping (sysfs)
Opened /dev/dasdc RO O_DIRECT
/dev/dasdc: block size is 4096 bytes
/dev/dasdc: No label detected
Closed /dev/dasdc
/dev/md9: Skipping (sysfs)
Opened /dev/dasdc1 RO O_DIRECT
/dev/dasdc1: block size is 4096 bytes
/dev/dasdc1: lvm2 label detected
lvmcache: /dev/dasdc1: now in VG #orphans_lvm2 (#orphans_lvm2)
/dev/dasdc1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdc1: now in VG pool1 with 1 mdas
lvmcache: /dev/dasdc1: setting pool1 VGID to z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd
lvmcache: /dev/dasdc1: VG pool1: Set creation host to linux215.
Closed /dev/dasdc1
/dev/md10: Skipping (sysfs)
/dev/md11: Skipping (sysfs)
/dev/md12: Skipping (sysfs)
Opened /dev/dasdd RO O_DIRECT
/dev/dasdd: block size is 4096 bytes
/dev/dasdd: No label detected
Closed /dev/dasdd
/dev/md13: Skipping (sysfs)
Opened /dev/dasdd1 RO O_DIRECT
/dev/dasdd1: block size is 4096 bytes
/dev/dasdd1: lvm2 label detected
lvmcache: /dev/dasdd1: now in VG #orphans_lvm2 (#orphans_lvm2)
/dev/dasdd1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdd1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Closed /dev/dasdd1
/dev/md14: Skipping (sysfs)
/dev/md15: Skipping (sysfs)
/dev/md16: Skipping (sysfs)
Opened /dev/dasde RO O_DIRECT
/dev/dasde: block size is 4096 bytes
/dev/dasde: No label detected
Closed /dev/dasde
/dev/md17: Skipping (sysfs)
Opened /dev/dasde1 RO O_DIRECT
/dev/dasde1: block size is 4096 bytes
/dev/dasde1: lvm2 label detected
lvmcache: /dev/dasde1: now in VG #orphans_lvm2 (#orphans_lvm2)
/dev/dasde1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasde1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Closed /dev/dasde1
/dev/md18: Skipping (sysfs)
/dev/md19: Skipping (sysfs)
/dev/md20: Skipping (sysfs)
/dev/md21: Skipping (sysfs)
/dev/md22: Skipping (sysfs)
/dev/md23: Skipping (sysfs)
/dev/md24: Skipping (sysfs)
/dev/md25: Skipping (sysfs)
/dev/md26: Skipping (sysfs)
/dev/md27: Skipping (sysfs)
/dev/md28: Skipping (sysfs)
/dev/md29: Skipping (sysfs)
/dev/md30: Skipping (sysfs)
/dev/md31: Skipping (sysfs)
Locking /var/lock/lvm/V_pool1 RB
Opened /dev/dasdc1 RO O_DIRECT
/dev/dasdc1: block size is 4096 bytes
/dev/dasdc1: lvm2 label detected
lvmcache: /dev/dasdc1: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
/dev/dasdc1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdc1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Opened /dev/dasdd1 RO O_DIRECT
/dev/dasdd1: block size is 4096 bytes
/dev/dasdd1: lvm2 label detected
lvmcache: /dev/dasdd1: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
/dev/dasdd1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdd1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Opened /dev/dasde1 RO O_DIRECT
/dev/dasde1: block size is 4096 bytes
/dev/dasde1: lvm2 label detected
lvmcache: /dev/dasde1: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
/dev/dasde1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasde1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Using cached label for /dev/dasdc1
Using cached label for /dev/dasdd1
Using cached label for /dev/dasde1
Read pool1 metadata (3) from /dev/dasdc1 at 7168 size 1671
Using cached label for /dev/dasdc1
Using cached label for /dev/dasdd1
Using cached label for /dev/dasde1
Read pool1 metadata (3) from /dev/dasdd1 at 7168 size 1671
Using cached label for /dev/dasdc1
Using cached label for /dev/dasdd1
Using cached label for /dev/dasde1
Read pool1 metadata (3) from /dev/dasde1 at 7168 size 1671
/dev/dasdc1 0: 0 1760: lvvartmp(0:0)
/dev/dasdd1 0: 0 800: lvvartmp(1760:0)
/dev/dasdd1 1: 800 800: lvopt(1760:0)
/dev/dasdd1 2: 1600 160: NULL(0:0)
/dev/dasde1 0: 0 1760: lvopt(0:0)
Getting device info for pool1-lvvartmp
dm version OF [16384]
dm info LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd34efDDSgPINh0iIcZJ CFFKy7pHaTW4lU OF [16384]
dm info z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd34efDDSgPINh0iIcZJ CFFKy7pHaTW4lU OF [16384]
dm info pool1-lvvartmp OF [16384]
inactive '/dev/pool1/lvvartmp' [10.00 GB] inherit
Getting device info for pool1-lvopt
dm info LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLdJHB5AqtUGfmsuG3oRn MzdAALDaZgRIKg OF [16384]
dm info z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLdJHB5AqtUGfmsuG3oRn MzdAALDaZgRIKg OF [16384]
dm info pool1-lvopt OF [16384]
inactive '/dev/pool1/lvopt' [10.00 GB] inherit
Unlocking /var/lock/lvm/V_pool1
Closed /dev/dasdc1
Closed /dev/dasdd1
Closed /dev/dasde1
Completed: lvscan
Dumping persistent device cache to /etc/lvm/.cache
Locking /etc/lvm/.cache (F_WRLCK, 1)
Unlocking fd 4
Wiping internal VG cache

Active LVM lvscan.

linux215:~ # lvscan
Setting log/indent to 1
Setting log/prefix to
Setting log/command_names to 0
Setting global/test to 0
Setting log/overwrite to 0
Setting log/file to /var/log/lvm2.log
log/activation not found in config: defaulting to 0
Logging initialised at Mon Jun 26 10:04:13 2017
Setting global/umask to 63
Set umask to 0077
Setting devices/dir to /dev
Setting global/proc to /proc
Setting global/activation to 1
global/suffix not found in config: defaulting to 1
global/units not found in config: defaulting to h
activation/readahead not found in config: defaulting to auto
Setting activation/missing_stripe_filler to error
devices/preferred_names not found in config file: using built-in preferences
Matcher built with 125 dfa states
devices/ignore_suspended_devices not found in config: defaulting to 1
Setting devices/cache to /etc/lvm/.cache
Setting devices/write_cache_state to 1
Opened /etc/lvm/.cache RO
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7.00000000000027200000000 000000000-part1: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1 in device cache
/dev/mapper/pool1-lvvartmp: Added to device cache
/dev/disk/by-id/ccw-SLESB0-part1: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90.00000000000027200000000 000000000: Added to device cache
/dev/disk/by-id/dm-name-pool1-lvopt: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90-part1: Added to device cache
/dev/dasdc: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7.00000000000027200000000 000000000: Aliased to /dev/dasdc in device cache
/dev/dasdb1: Added to device cache
/dev/dasdc1: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7-part1 in device cache (preferred name)
/dev/dasda1: Aliased to /dev/disk/by-id/ccw-SLESB0-part1 in device cache (preferred name)
/dev/dasdd1: Added to device cache
/dev/dasde1: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90-part1 in device cache (preferred name)
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90.00000000000027200000000 000000000 in device cache (preferred name)
/dev/disk/by-id/dm-uuid-LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd34efDDSgPINh0iIcZJ CFFKy7pHaTW4lU: Aliased to /dev/mapper/pool1-lvvartmp in device cache
/dev/mapper/pool1-lvopt: Aliased to /dev/disk/by-id/dm-name-pool1-lvopt in device cache (preferred name)
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac-part1: Aliased to /dev/dasda1 in device cache
/dev/disk/by-id/dm-uuid-LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLdJHB5AqtUGfmsuG3oRn MzdAALDaZgRIKg: Aliased to /dev/mapper/pool1-lvopt in device cache
/dev/disk/by-id/ccw-L215SW-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-uuid/ff012db8-7729-4568-a5f2-e1bf458b6b45: Aliased to /dev/dasda1 in device cache
/dev/disk/by-id/ccw-L215SW: Added to device cache
/dev/dasda: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000 in device cache (preferred name)
/dev/disk/by-path/ccw-0.0.15b0: Aliased to /dev/dasda in device cache
/dev/dasdd: Added to device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e: Aliased to /dev/dasdd in device cache
/dev/dasde: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90 in device cache (preferred name)
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e.00000000000027200000000 000000000: Aliased to /dev/dasdd in device cache
/dev/disk/by-id/ccw-0X0603-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-path/ccw-0.0.0601-part1: Aliased to /dev/dasdc1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59: Aliased to /dev/disk/by-id/ccw-L215SW in device cache (preferred name)
/dev/disk/by-id/ccw-0X0602-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c4.e7: Aliased to /dev/dasdc in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac.00000000000027200000000 000000000-part1: Aliased to /dev/dasda1 in device cache
/dev/disk/by-id/ccw-0X0603: Aliased to /dev/dasde in device cache
/dev/disk/by-path/ccw-0.0.0600: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-path/ccw-0.0.0600-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-id/ccw-0X0602: Aliased to /dev/dasdd in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c9.90.00000000000027200000000 000000000-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-path/ccw-0.0.0601: Aliased to /dev/dasdc in device cache
/dev/pool1/lvvartmp: Aliased to /dev/mapper/pool1-lvvartmp in device cache (preferred name)
/dev/pool1/lvopt: Aliased to /dev/mapper/pool1-lvopt in device cache (preferred name)
/dev/disk/by-id/ccw-IBM.750000000W2201.00c5.8e.00000000000027200000000 000000000-part1: Aliased to /dev/dasdd1 in device cache
/dev/root: Aliased to /dev/dasda1 in device cache (preferred name)
/dev/dm-1: Aliased to /dev/pool1/lvvartmp in device cache (preferred name)
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59.0000000000000d0a0000000 000000000: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59 in device cache
/dev/disk/by-uuid/639282c8-ce53-4f9a-88fa-49505085d809: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59.0000000000000d0a0000000 000000000-part1: Aliased to /dev/dasdb1 in device cache
/dev/disk/by-path/ccw-0.0.0603: Aliased to /dev/dasde in device cache
/dev/disk/by-path/ccw-0.0.0602-part1: Aliased to /dev/dasdd1 in device cache
/dev/disk/by-path/ccw-0.0.15b0-part1: Aliased to /dev/root in device cache
/dev/disk/by-id/ccw-IBM.750000000W2201.00c3.ac: Aliased to /dev/dasda in device cache
/dev/disk/by-id/ccw-0X0601: Aliased to /dev/dasdc in device cache
/dev/disk/by-id/ccw-SLESB0: Aliased to /dev/dasda in device cache
/dev/dm-0: Aliased to /dev/pool1/lvopt in device cache (preferred name)
/dev/disk/by-path/ccw-0.0.0603-part1: Aliased to /dev/dasde1 in device cache
/dev/disk/by-id/ccw-0X0601-part1: Aliased to /dev/dasdc1 in device cache
/dev/disk/by-uuid/f8ddfecb-a909-405a-8812-37fdb3348d35: Aliased to /dev/dm-1 in device cache
/dev/disk/by-uuid/113485bc-17a0-4eeb-9f0e-e0621653aa96: Aliased to /dev/dm-0 in device cache
/dev/disk/by-path/ccw-0.0.0602: Aliased to /dev/dasdd in device cache
/dev/dasdb: Aliased to /dev/disk/by-id/ccw-IBM.750000000W2201.00c8.59 in device cache (preferred name)
/dev/disk/by-id/dm-name-pool1-lvvartmp: Aliased to /dev/dm-1 in device cache
Loaded persistent filter cache from /etc/lvm/.cache
Closed /etc/lvm/.cache
Setting activation/reserved_stack to 256
Setting activation/reserved_memory to 8192
Setting activation/process_priority to -18
Initialised format: lvm1
Initialised format: pool
Initialised format: lvm2
global/format not found in config: defaulting to lvm2
lvmcache: initialised VG #orphans_lvm1
lvmcache: initialised VG #orphans_pool
lvmcache: initialised VG #orphans_lvm2
Initialised segtype: striped
Initialised segtype: zero
Initialised segtype: error
Initialised segtype: free
Setting dmeventd/snapshot_library to libdevmapper-event-lvm2snapshot.so.2.02
Initialised segtype: snapshot
Initialised segtype: mirror
Setting backup/retain_days to 30
Setting backup/retain_min to 10
Setting backup/archive_dir to /etc/lvm/archive
Setting backup/backup_dir to /etc/lvm/backup
global/fallback_to_lvm1 not found in config: defaulting to 0
Parsing: lvscan
Processing: lvscan
O_DIRECT will be used
Setting global/locking_type to 3
Cluster locking selected.
connect() failed on local socket: Connection refused
locking/fallback_to_local_locking not found in config: defaulting to 1
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.
Setting global/locking_dir to /var/lock/lvm
Finding all logical volumes
Opened /dev/dasda RO O_DIRECT
/dev/dasda: block size is 4096 bytes
/dev/dasda: No label detected
Closed /dev/dasda
Opened /dev/dm-0 RO O_DIRECT
/dev/dm-0: block size is 4096 bytes
/dev/dm-0: No label detected
Closed /dev/dm-0
Opened /dev/root RO O_DIRECT
/dev/root: block size is 4096 bytes
/dev/root: No label detected
Closed /dev/root
Opened /dev/dm-1 RO O_DIRECT
/dev/dm-1: block size is 4096 bytes
/dev/dm-1: No label detected
Closed /dev/dm-1
Opened /dev/dasdb RO O_DIRECT
/dev/dasdb: block size is 4096 bytes
/dev/dasdb: No label detected
Closed /dev/dasdb
Opened /dev/dasdb1 RO O_DIRECT
/dev/dasdb1: block size is 4096 bytes
/dev/dasdb1: No label detected
Closed /dev/dasdb1
Opened /dev/dasdc RO O_DIRECT
/dev/dasdc: block size is 4096 bytes
/dev/dasdc: No label detected
Closed /dev/dasdc
Opened /dev/dasdc1 RO O_DIRECT
/dev/dasdc1: block size is 4096 bytes
/dev/dasdc1: lvm2 label detected
lvmcache: /dev/dasdc1: now in VG #orphans_lvm2 (#orphans_lvm2)
/dev/dasdc1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdc1: now in VG pool1 with 1 mdas
lvmcache: /dev/dasdc1: setting pool1 VGID to z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd
lvmcache: /dev/dasdc1: VG pool1: Set creation host to linux215.
Closed /dev/dasdc1
Opened /dev/dasdd RO O_DIRECT
/dev/dasdd: block size is 4096 bytes
/dev/dasdd: No label detected
Closed /dev/dasdd
Opened /dev/dasdd1 RO O_DIRECT
/dev/dasdd1: block size is 4096 bytes
/dev/dasdd1: lvm2 label detected
lvmcache: /dev/dasdd1: now in VG #orphans_lvm2 (#orphans_lvm2)
/dev/dasdd1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdd1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Closed /dev/dasdd1
Opened /dev/dasde RO O_DIRECT
/dev/dasde: block size is 4096 bytes
/dev/dasde: No label detected
Closed /dev/dasde
Opened /dev/dasde1 RO O_DIRECT
/dev/dasde1: block size is 4096 bytes
/dev/dasde1: lvm2 label detected
lvmcache: /dev/dasde1: now in VG #orphans_lvm2 (#orphans_lvm2)
/dev/dasde1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasde1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Closed /dev/dasde1
Locking /var/lock/lvm/V_pool1 RB
Opened /dev/dasdc1 RO O_DIRECT
/dev/dasdc1: block size is 4096 bytes
/dev/dasdc1: lvm2 label detected
lvmcache: /dev/dasdc1: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
/dev/dasdc1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdc1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Opened /dev/dasdd1 RO O_DIRECT
/dev/dasdd1: block size is 4096 bytes
/dev/dasdd1: lvm2 label detected
lvmcache: /dev/dasdd1: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
/dev/dasdd1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasdd1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Opened /dev/dasde1 RO O_DIRECT
/dev/dasde1: block size is 4096 bytes
/dev/dasde1: lvm2 label detected
lvmcache: /dev/dasde1: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
/dev/dasde1: Found metadata at 7168 size 1671 (in area at 4096 size 192512) for pool1 (z8mfzL-3fh1-X50n-0gnl-Zi1r-hkDa-xRzJLd)
lvmcache: /dev/dasde1: now in VG pool1 (z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd) with 1 mdas
Using cached label for /dev/dasdc1
Using cached label for /dev/dasdd1
Using cached label for /dev/dasde1
Read pool1 metadata (3) from /dev/dasdc1 at 7168 size 1671
Using cached label for /dev/dasdc1
Using cached label for /dev/dasdd1
Using cached label for /dev/dasde1
Read pool1 metadata (3) from /dev/dasdd1 at 7168 size 1671
Using cached label for /dev/dasdc1
Using cached label for /dev/dasdd1
Using cached label for /dev/dasde1
Read pool1 metadata (3) from /dev/dasde1 at 7168 size 1671
/dev/dasdc1 0: 0 1760: lvvartmp(0:0)
/dev/dasdd1 0: 0 800: lvvartmp(1760:0)
/dev/dasdd1 1: 800 800: lvopt(1760:0)
/dev/dasdd1 2: 1600 160: NULL(0:0)
/dev/dasde1 0: 0 1760: lvopt(0:0)
Getting device info for pool1-lvvartmp
dm version OF [16384]
dm info LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLd34efDDSgPINh0iIcZJ CFFKy7pHaTW4lU OF [16384]
ACTIVE '/dev/pool1/lvvartmp' [10.00 GB] inherit
Getting device info for pool1-lvopt
dm info LVM-z8mfzL3fh1X50n0gnlZi1rhkDaxRzJLdJHB5AqtUGfmsuG3oRn MzdAALDaZgRIKg OF [16384]
ACTIVE '/dev/pool1/lvopt' [10.00 GB] inherit
Unlocking /var/lock/lvm/V_pool1
Closed /dev/dasdc1
Closed /dev/dasdd1
Closed /dev/dasde1
Completed: lvscan
Dumping persistent device cache to /etc/lvm/.cache
Locking /etc/lvm/.cache (F_WRLCK, 1)
Unlocking fd 4
Wiping internal VG cache

x0500hl
26-Jun-2017, 15:41
Did you issue command
lvchange -ay LogicalVolumePath?


Harley

mikenash
26-Jun-2017, 15:59
Greetings Harley, thank you for the response. I did do a successful vgchange and then I was able to mount the LVM volumes. After a reboot they become inactive.

linux215:/etc/lvm # fsck -yfv /dev/pool1/lvopt
fsck from util-linux-ng 2.16
e2fsck 1.41.9 (22-Aug-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

16667 inodes used (2.54%)
200 non-contiguous files (1.2%)
9 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 1490/38/0
572586 blocks used (21.84%)
0 bad blocks
1 large file

14194 regular files
2013 directories
0 character device files
0 block device files
0 fifos
0 links
451 symbolic links (446 fast symbolic links)
0 sockets
--------
16658 files
linux215:/etc/lvm # fsck -yfv /dev/pool1/lvvartmp
fsck from util-linux-ng 2.16
e2fsck 1.41.9 (22-Aug-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

15 inodes used (0.00%)
0 non-contiguous files (0.0%)
0 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 1/1/0
223484 blocks used (8.53%)
0 bad blocks
1 large file

3 regular files
3 directories
0 character device files
0 block device files
0 fifos
0 links
0 symbolic links (0 fast symbolic links)
0 sockets
--------
6 files
During the boot process I fine these messages.

Waiting for /dev/pool1/lvopt
/dev/pool1/lvvartmp . no more events
Checking file systems...
fsck from util-linux-ng 2.16
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /opt] fsck.ext3 -a /dev/pool1/lvopt
fsck.ext3: No such file or directory while trying to open /dev/pool1/lvopt
/dev/pool1/lvopt:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

[/sbin/fsck.ext3 (1) -- /var/tmp] fsck.ext3 -a /dev/pool1/lvvartmp
fsck.ext3: No such file or directory while trying to open /dev/pool1/lvvartmp
/dev/pool1/lvvartmp:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

..failed
fsck failed for at least one filesystem (not /).
Please repair manually and reboot.
The root file system is is already mounted read-write.


linux215:/etc/lvm # blkid
/dev/dasda1: UUID="ff012db8-7729-4568-a5f2-e1bf458b6b45" TYPE="ext3"
/dev/dasdb1: UUID="639282c8-ce53-4f9a-88fa-49505085d809" TYPE="swap"
/dev/dasdc1: UUID="ZlkMiH-j58w-b3Jn-nZP0-wvCZ-71H0-Ilow6j" TYPE="LVM2_member"
/dev/dasdd1: UUID="QOfNGv-E7xo-xBHk-gelw-DquY-AIyC-GTdM67" TYPE="LVM2_member"
/dev/dasde1: UUID="YbWUNW-maE5-jX01-Mt7X-GieI-H67R-Fz4Cj1" TYPE="LVM2_member"
/dev/mapper/pool1-lvopt: UUID="113485bc-17a0-4eeb-9f0e-e0621653aa96" SEC_TYPE="ext2" TYPE="ext3"
/dev/mapper/pool1-lvvartmp: UUID="f8ddfecb-a909-405a-8812-37fdb3348d35" SEC_TYPE="ext2" TYPE="ext3"

x0500hl
27-Jun-2017, 15:38
Hi Mike,

You may need to issue the lvchange command as well as vgchange.


Harley

mikenash
27-Jun-2017, 16:56
Greetings Harley, thank you for the reply. I do not understand why I may need to do a vgchange. After IPL I do a lvchange to make the lvm volumes active. This works and I am able to mount these lvm volumes. A reboot is done and the devices become inactive again. I try fsck with a backup superblock to fix the lvm volumes. Error are found and I am asked to fix them. I reply "yes" but if I rerun the fsck utility the same problems are found!

jmozdzen
27-Jun-2017, 17:06
Hi Mike,

Greetings Harley, thank you for the response. I did do a successful vgchange and then I was able to mount the LVM volumes. After a reboot they become inactive.

have you tried setting the kernel parameter "rd.lvm.vg=pool1"?

Regards,
J

mikenash
27-Jun-2017, 18:28
Greetings J, thank you for your suggestion. I add the specified parameter on a menu item. I check the boot messages and it did get specified. However, the lvm devices still came up inactive.

jmozdzen
29-Jun-2017, 13:33
Hi Mike,

sorry about that - I'm not familiar with the System Z environment, maybe there needs to be a different parameter specified? (I looked this up on a SELS12SP1 Intel, where Dracut is used as the boot environment. In it's sources, I see that "rd_LVM_LV" is specified as deprecated predecessor of "rd.lvm.vg")

The idea behind my suggestion is that typically, the boot environment only auto-activates those VGs needed for the boot (so most importantly the VG where your root LV resides). If you need extra VGs activated, you typically have means to specify those. In SLES11, there was a file /etc/sysconfig/lvm with the variable LVM_VGS_ACTIVATED_ON_BOOT, but the mechanism has changed with Dracut.

Regards,
J

maikcat
26-Mar-2018, 13:25
is boot.lvm service enabled?

Michael