Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PR #1162 - self-test
- 1. Run live tests from the bastion
- $ set -o pipefail
- $ juju ssh ceph-osd/3 "sudo -n python3 -u /tmp/hotsos-review-1122-live.py" 2>&1 | tee ~/hotsos-review-1122-20261021-live.log
- The following sections show commands executed inside that script as root.
- Every snapshot ran this command with PYTHONPATH=/tmp/hotsos-review-1122-20261021:
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- Each snapshot checked storage.disks, StorageWarnings count and nonempty
- local Ceph OSD discovery. Repeated baseline findings and warning text are
- omitted from some excerpts below.
- 2. Baseline
- $ vgs --noheadings -o vg_name
- ceph-563d82c3-59f7-48bb-aaf0-1a8e0b2c90d9
- ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt:
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- Script output: PASS 00-baseline
- 3. Entirely unused disk
- $ modprobe scsi_debug dev_size_mb=512
- $ udevadm settle
- $ blockdev --getsize64 /dev/sdd
- 536870912
- $ lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,MODEL /dev/sdd
- NAME SIZE TYPE FSTYPE MOUNTPOINT MODEL
- sdd 512M disk scsi_debug
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt:
- "unused-disks": ["/dev/sdd (512M)"]
- Script output: PASS 01-bare-disk
- 4. GPT with no partitions
- $ parted -s /dev/sdd mklabel gpt
- $ udevadm settle
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt:
- "unallocated-disks": ["/dev/sdd (512M)"]
- No unused-disks finding.
- Script output: PASS 02-empty-gpt
- 5. Empty partition and remaining unallocated disk space
- $ parted -s /dev/sdd mkpart primary 1MiB 200MiB
- $ udevadm settle
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt:
- "empty-partitions": ["/dev/sdd1 (199M)"]
- "unallocated-disks": ["/dev/sdd (313M)"]
- Script output: PASS 03-empty-partition
- 6. Format the partition
- $ mkfs.ext4 -F /dev/sdd1
- Creating filesystem with 50944 4k blocks and 50944 inodes
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt:
- "unallocated-disks": ["/dev/sdd (313M)"]
- No empty-partitions finding.
- Script output: PASS 04-formatted-partial
- 7. Allocate the remaining disk space
- $ parted -s /dev/sdd mkpart primary 200MiB 100%
- $ udevadm settle
- $ mkfs.ext4 -F /dev/sdd2
- Creating filesystem with 79616 4k blocks and 79632 inodes
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt (baseline only):
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- Script output: PASS 05-fully-partitioned
- 8. LVM volume group with free space
- $ wipefs -a /dev/sdd1 /dev/sdd2
- /dev/sdd1: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
- /dev/sdd2: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
- $ parted -s /dev/sdd rm 2 rm 1
- $ wipefs -a /dev/sdd
- /dev/sdd: calling ioctl to re-read partition table: Success
- $ udevadm settle
- $ pvcreate /dev/sdd
- Physical volume "/dev/sdd" successfully created.
- $ vgcreate hotsos-review1122 /dev/sdd
- Volume group "hotsos-review1122" successfully created
- $ lvcreate -L 200M -n test-lv hotsos-review1122
- Logical volume "test-lv" created.
- $ vgs -v --config=global{metadata_read_only=1} --nolocking --foreign
- Selected columns from output:
- VG VSize VFree
- ceph-563d82c3-59f7-48bb-aaf0-1a8e0b2c90d9 9.98g 0
- ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 1004.00m 104.00m
- hotsos-review1122 508.00m 308.00m
- WARNING: File locking is disabled.
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt:
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)",
- "hotsos-review1122 (308M)"
- ]
- Script output: PASS 06-lvm-free
- 9. Allocate all remaining VG space
- $ lvextend -l +100%FREE /dev/hotsos-review1122/test-lv
- Size of logical volume hotsos-review1122/test-lv changed from 200.00 MiB (50 extents) to 508.00 MiB (127 extents).
- Logical volume hotsos-review1122/test-lv successfully resized.
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt (baseline only):
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- Script output: PASS 07-lvm-allocated
- 10. Cleanup and final snapshot
- $ vgremove -f hotsos-review1122
- Logical volume "test-lv" successfully removed
- Volume group "hotsos-review1122" successfully removed
- $ pvremove /dev/sdd
- Labels on physical volume "/dev/sdd" successfully wiped.
- $ udevadm settle
- $ rmmod scsi_debug
- $ /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json
- storage.disks excerpt (baseline only):
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- Script output: PASS 08-cleaned-baseline
- ALL LIVE CHECKS PASSED: 00-baseline, 01-bare-disk, 02-empty-gpt, 03-empty-partition, 04-formatted-partial, 05-fully-partitioned, 06-lvm-free, 07-lvm-allocated, 08-cleaned-baseline
- 11. Post-test cluster checks (from the bastion)
- $ juju status ceph-osd
- Result summary: all three OSD units active/idle.
- $ juju ssh ceph-mon/0 "sudo -n ceph -s"
- Result summary: 3 OSDs up/in; 69 PGs active+clean.
- Pre-existing HEALTH_WARN: 3 OSD(s) experiencing BlueFS spillover.
- Not covered: full project test suite, live multipath topology, or Ceph
- command-failure injection. These results do not establish coverage of
- those cases.
- 12, the file /tmp/hotsos-review-1122-live.py
- import json
- import os
- from pathlib import Path
- import subprocess
- import sys
- ROOT = Path('/tmp/hotsos-review-1122-20261021')
- VG = 'hotsos-review1122'
- BASE_VG = 'ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)'
- disk = None
- module_created = False
- vg_created = False
- pv_created = False
- results = []
- def require(condition, detail):
- if not condition:
- raise RuntimeError(str(detail))
- def run(*args):
- print('+ ' + ' '.join(args), flush=True)
- completed = subprocess.run(args, text=True, capture_output=True, check=False)
- if completed.stdout:
- print(completed.stdout, end='', flush=True)
- if completed.stderr:
- print(completed.stderr, end='', file=sys.stderr, flush=True)
- completed.check_returncode()
- return completed.stdout
- def guard():
- require(disk is not None, 'No test disk selected')
- model = Path('/sys/class/block', disk.name, 'device/model').read_text().strip()
- require(model == 'scsi_debug', (disk, model))
- require(int(run('blockdev', '--getsize64', str(disk))) == 512 * 1024**2,
- 'Unexpected test disk size')
- def snapshot(stage, expected):
- environment = dict(os.environ, PYTHONPATH=str(ROOT))
- command = [sys.executable, str(ROOT / 'hotsos/cli.py'), '--storage', '--format', 'json']
- print('+ ' + ' '.join(command) + ' [' + stage + ']', flush=True)
- completed = subprocess.run(command, env=environment, text=True, capture_output=True, check=False)
- (ROOT / (stage + '.stdout')).write_text(completed.stdout)
- (ROOT / (stage + '.stderr')).write_text(completed.stderr)
- completed.check_returncode()
- header, separator, payload = completed.stdout.partition('\n')
- require(header == 'INFO: analysing localhost' and separator,
- ('Unexpected CLI output prefix', header))
- report = json.loads(payload)
- (ROOT / (stage + '.json')).write_text(json.dumps(report, indent=2))
- storage = report['storage']
- actual = storage.get('disks', {})
- print(json.dumps({'stage': stage, 'disks': actual,
- 'StorageWarnings': storage.get('potential-issues', {}).get('StorageWarnings', [])}, indent=2), flush=True)
- require(actual == expected, (stage, actual, expected))
- require(storage['ceph']['local-osds'], 'No local Ceph OSDs discovered')
- warning_count = len(storage.get('potential-issues', {}).get('StorageWarnings', []))
- require(warning_count == len(expected), (stage, warning_count, expected))
- results.append(stage)
- print('PASS ' + stage, flush=True)
- def state(**extra):
- return dict({'unallocated-volume-groups': [BASE_VG]}, **extra)
- require(os.geteuid() == 0, 'Root required')
- require(ROOT.is_dir(), 'Missing deployment')
- require(not Path('/sys/module/scsi_debug').exists(), 'Existing scsi_debug module must not be reused')
- require(VG not in run('vgs', '--noheadings', '-o', 'vg_name').split(), 'Test VG already exists')
- before = {device.name for device in Path('/sys/class/block').iterdir()}
- try:
- snapshot('00-baseline', state())
- run('modprobe', 'scsi_debug', 'dev_size_mb=512')
- module_created = True
- run('udevadm', 'settle')
- added = {device.name for device in Path('/sys/class/block').iterdir()} - before
- require(len(added) == 1, added)
- disk = Path('/dev', added.pop())
- guard()
- run('lsblk', '-o', 'NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,MODEL', str(disk))
- snapshot('01-bare-disk', state(**{'unused-disks': [f'{disk} (512M)']}))
- guard()
- run('parted', '-s', str(disk), 'mklabel', 'gpt')
- run('udevadm', 'settle')
- snapshot('02-empty-gpt', state(**{'unallocated-disks': [f'{disk} (512M)']}))
- guard()
- run('parted', '-s', str(disk), 'mkpart', 'primary', '1MiB', '200MiB')
- run('udevadm', 'settle')
- snapshot('03-empty-partition', state(**{'empty-partitions': [f'{disk}1 (199M)'],
- 'unallocated-disks': [f'{disk} (313M)']}))
- guard()
- run('mkfs.ext4', '-F', str(disk) + '1')
- snapshot('04-formatted-partial', state(**{'unallocated-disks': [f'{disk} (313M)']}))
- guard()
- run('parted', '-s', str(disk), 'mkpart', 'primary', '200MiB', '100%')
- run('udevadm', 'settle')
- run('mkfs.ext4', '-F', str(disk) + '2')
- snapshot('05-fully-partitioned', state())
- guard()
- run('wipefs', '-a', str(disk) + '1', str(disk) + '2')
- run('parted', '-s', str(disk), 'rm', '2', 'rm', '1')
- run('wipefs', '-a', str(disk))
- run('udevadm', 'settle')
- guard()
- run('pvcreate', str(disk))
- pv_created = True
- run('vgcreate', VG, str(disk))
- vg_created = True
- run('lvcreate', '-L', '200M', '-n', 'test-lv', VG)
- run('vgs', '-v', '--config=global{metadata_read_only=1}', '--nolocking', '--foreign')
- snapshot('06-lvm-free', {'unallocated-volume-groups': [BASE_VG, f'{VG} (308M)']})
- guard()
- run('lvextend', '-l', '+100%FREE', f'/dev/{VG}/test-lv')
- snapshot('07-lvm-allocated', state())
- finally:
- if vg_created:
- guard()
- run('vgremove', '-f', VG)
- if pv_created:
- guard()
- run('pvremove', str(disk))
- if module_created:
- run('udevadm', 'settle')
- run('rmmod', 'scsi_debug')
- require({device.name for device in Path('/sys/class/block').iterdir()} == before,
- 'Block devices differ from baseline after cleanup')
- require(not Path('/sys/module/scsi_debug').exists(), 'Test module remains loaded')
- snapshot('08-cleaned-baseline', state())
- print('ALL LIVE CHECKS PASSED: ' + ', '.join(results), flush=True)
- 13, ~/hotsos-review-1122-20261021-live.log
- + vgs --noheadings -o vg_name
- ceph-563d82c3-59f7-48bb-aaf0-1a8e0b2c90d9
- ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [00-baseline]
- {
- "stage": "00-baseline",
- "disks": {
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved."
- ]
- }
- PASS 00-baseline
- + modprobe scsi_debug dev_size_mb=512
- + udevadm settle
- + blockdev --getsize64 /dev/sdd
- 536870912
- + lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,MODEL /dev/sdd
- NAME SIZE TYPE FSTYPE MOUNTPOINT MODEL
- sdd 512M disk scsi_debug
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [01-bare-disk]
- {
- "stage": "01-bare-disk",
- "disks": {
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ],
- "unused-disks": [
- "/dev/sdd (512M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved.",
- "The following disk(s) appear entirely unused with no partition table, filesystem, or LVM configuration: /dev/sdd (512M). Please inspect these devices and partition, format, or configure them for use if intended, or ignore this warning if they are intentionally unconfigured."
- ]
- }
- PASS 01-bare-disk
- + blockdev --getsize64 /dev/sdd
- 536870912
- + parted -s /dev/sdd mklabel gpt
- + udevadm settle
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [02-empty-gpt]
- {
- "stage": "02-empty-gpt",
- "disks": {
- "unallocated-disks": [
- "/dev/sdd (512M)"
- ],
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved.",
- "The following partitioned disk(s) have significant unallocated free space not assigned to any partition: /dev/sdd (512M). Please inspect the partition layout and extend existing partitions or create new partitions to utilize the remaining space if intended, or ignore this warning if the space is intentionally left unallocated."
- ]
- }
- PASS 02-empty-gpt
- + blockdev --getsize64 /dev/sdd
- 536870912
- + parted -s /dev/sdd mkpart primary 1MiB 200MiB
- + udevadm settle
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [03-empty-partition]
- {
- "stage": "03-empty-partition",
- "disks": {
- "empty-partitions": [
- "/dev/sdd1 (199M)"
- ],
- "unallocated-disks": [
- "/dev/sdd (313M)"
- ],
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved.",
- "The following partition(s) are created but have not been used with any filesystem or volume configuration: /dev/sdd1 (199M). Please format and mount them, configure them for use, or remove the unused partition(s).",
- "The following partitioned disk(s) have significant unallocated free space not assigned to any partition: /dev/sdd (313M). Please inspect the partition layout and extend existing partitions or create new partitions to utilize the remaining space if intended, or ignore this warning if the space is intentionally left unallocated."
- ]
- }
- PASS 03-empty-partition
- + blockdev --getsize64 /dev/sdd
- 536870912
- + mkfs.ext4 -F /dev/sdd1
- Creating filesystem with 50944 4k blocks and 50944 inodes
- Filesystem UUID: 122e39dd-5e3b-4c24-8473-ccd86f64c67b
- Superblock backups stored on blocks:
- 32768
- Allocating group tables: 0/2 done
- Writing inode tables: 0/2 done
- Creating journal (4096 blocks): done
- Writing superblocks and filesystem accounting information: 0/2 done
- mke2fs 1.46.5 (30-Dec-2021)
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [04-formatted-partial]
- {
- "stage": "04-formatted-partial",
- "disks": {
- "unallocated-disks": [
- "/dev/sdd (313M)"
- ],
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved.",
- "The following partitioned disk(s) have significant unallocated free space not assigned to any partition: /dev/sdd (313M). Please inspect the partition layout and extend existing partitions or create new partitions to utilize the remaining space if intended, or ignore this warning if the space is intentionally left unallocated."
- ]
- }
- PASS 04-formatted-partial
- + blockdev --getsize64 /dev/sdd
- 536870912
- + parted -s /dev/sdd mkpart primary 200MiB 100%
- + udevadm settle
- + mkfs.ext4 -F /dev/sdd2
- Creating filesystem with 79616 4k blocks and 79632 inodes
- Filesystem UUID: bb80aaaf-036b-4ce0-87de-27bc6b20f96f
- Superblock backups stored on blocks:
- 32768
- Allocating group tables: 0/3 done
- Writing inode tables: 0/3 done
- Creating journal (4096 blocks): done
- Writing superblocks and filesystem accounting information: 0/3 done
- mke2fs 1.46.5 (30-Dec-2021)
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [05-fully-partitioned]
- {
- "stage": "05-fully-partitioned",
- "disks": {
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved."
- ]
- }
- PASS 05-fully-partitioned
- + blockdev --getsize64 /dev/sdd
- 536870912
- + wipefs -a /dev/sdd1 /dev/sdd2
- /dev/sdd1: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
- /dev/sdd2: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
- + parted -s /dev/sdd rm 2 rm 1
- + wipefs -a /dev/sdd
- /dev/sdd: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
- /dev/sdd: 8 bytes were erased at offset 0x1ffffe00 (gpt): 45 46 49 20 50 41 52 54
- /dev/sdd: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
- /dev/sdd: calling ioctl to re-read partition table: Success
- + udevadm settle
- + blockdev --getsize64 /dev/sdd
- 536870912
- + pvcreate /dev/sdd
- Physical volume "/dev/sdd" successfully created.
- + vgcreate hotsos-review1122 /dev/sdd
- Volume group "hotsos-review1122" successfully created
- + lvcreate -L 200M -n test-lv hotsos-review1122
- Logical volume "test-lv" created.
- + vgs -v --config=global{metadata_read_only=1} --nolocking --foreign
- VG Attr Ext #PV #LV #SN VSize VFree VG UUID VProfile
- ceph-563d82c3-59f7-48bb-aaf0-1a8e0b2c90d9 wz--n- 4.00m 1 1 0 9.98g 0 Koh30S-4b0y-dTR0-0924-QvIi-HYYa-mwTi9X
- ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 wz--n- 4.00m 1 1 0 1004.00m 104.00m j7GUeq-d3MD-oWal-voA6-q949-1R03-B87XMF
- hotsos-review1122 wz--n- 4.00m 1 1 0 508.00m 308.00m 9IH4m1-32RL-O9cj-WAaR-65yo-fsv8-jtPiSA
- Reloading config files
- WARNING: File locking is disabled.
- Reloading config files
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [06-lvm-free]
- {
- "stage": "06-lvm-free",
- "disks": {
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)",
- "hotsos-review1122 (308M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M), hotsos-review1122 (308M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved."
- ]
- }
- PASS 06-lvm-free
- + blockdev --getsize64 /dev/sdd
- 536870912
- + lvextend -l +100%FREE /dev/hotsos-review1122/test-lv
- Size of logical volume hotsos-review1122/test-lv changed from 200.00 MiB (50 extents) to 508.00 MiB (127 extents).
- Logical volume hotsos-review1122/test-lv successfully resized.
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [07-lvm-allocated]
- {
- "stage": "07-lvm-allocated",
- "disks": {
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved."
- ]
- }
- PASS 07-lvm-allocated
- + blockdev --getsize64 /dev/sdd
- 536870912
- + vgremove -f hotsos-review1122
- Logical volume "test-lv" successfully removed
- Volume group "hotsos-review1122" successfully removed
- + blockdev --getsize64 /dev/sdd
- 536870912
- + pvremove /dev/sdd
- Labels on physical volume "/dev/sdd" successfully wiped.
- + udevadm settle
- + rmmod scsi_debug
- + /usr/bin/python3 /tmp/hotsos-review-1122-20261021/hotsos/cli.py --storage --format json [08-cleaned-baseline]
- {
- "stage": "08-cleaned-baseline",
- "disks": {
- "unallocated-volume-groups": [
- "ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M)"
- ]
- },
- "StorageWarnings": [
- "The following LVM volume group(s) have significant unallocated free space: ceph-db-c05d0c98-4b50-423b-a7c2-b1ae69bb6216 (104M). Please inspect the volume group layout and extend existing logical volumes or create new logical volumes to utilize the remaining space if intended, or ignore this warning if the free space is intentionally reserved."
- ]
- }
- PASS 08-cleaned-baseline
- ALL LIVE CHECKS PASSED: 00-baseline, 01-bare-disk, 02-empty-gpt, 03-empty-partition, 04-formatted-partial, 05-fully-partitioned, 06-lvm-free, 07-lvm-allocated, 08-cleaned-baseline
- Connection to 10.149.144.41 closed.
Advertisement
Add Comment
Please, Sign In to add comment