Bug 504043 - when using boot.iso I don't have fsadm
Summary: when using boot.iso I don't have fsadm
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Zdenek Kabelac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-03 22:21 UTC by Matěj Cepl
Modified: 2018-04-11 16:21 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-06-15 06:08:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matěj Cepl 2009-06-03 22:21:01 UTC
Description of problem:
When running rescue mode from http://sunsite.mff.cuni.cz/pub/fedora/development/x86_64/os/images/boot.iso (on KVM virtual machine) I tried to run

lvm lvreduce -L -6G -r -v -t /dev/VolGroup00/LogVol00
...
Executing: fsadm --dry-run --verbose check /dev/VolGroup00/LogVol00

but apparently there is no fsadm on the disk. Which is weird, because there is lvm from the same package lvm2.

Version-Release number of selected component (if applicable):
boot.iso dated 2009-05-31

How reproducible:
100%

Steps to Reproduce:
1.see above
2.
3.
  
Actual results:
no fsadm, have to run resize2fs manually with calculating number of sectors to shrink (asking for screwing it up); FAIL -- the most important reason for me why to run Rescue Mode is to change size of root LV.

Expected results:
just works

Additional info:

Comment 1 Chris Lumens 2009-06-04 15:07:17 UTC
This will be fixed in the next build of anaconda.  Thanks for the bug report.

Comment 2 Matěj Cepl 2009-06-04 15:34:12 UTC
Actually fsadm from F11 doesn't work in busybox (readlink doesn't have -e parameter).

Comment 3 Milan Broz 2009-06-04 15:44:42 UTC
To fix busybox or not to fix busybox (and fix fsadm instead)?
That is the question.

Comment 4 Zdenek Kabelac 2009-06-05 11:57:15 UTC
It looks like we have here couple issues - rescue image seems to only contain  'lvm' binary - so there are no symlinks for commands like lvresize, fsadm - so it looks like lvm has some 'special' installation for rescue image - I'm wondering how are dependencies solved in this case?

Should we list binaries we need for lvm to make it operational?

For now it looks like fsadm, lvresize symlink and blockdev command is missing in the rescue image.

Comment 5 Alasdair Kergon 2009-06-05 12:03:31 UTC
The script should be running 'lvm lvresize' not 'lvresize'.

Comment 6 Alasdair Kergon 2009-06-05 12:05:19 UTC
(fix the script to work the same way as lvm_dump.sh)

Comment 7 Zdenek Kabelac 2009-06-09 15:46:11 UTC
Script was updated with commit https://www.redhat.com/archives/lvm-devel/2009-June/msg00048.html - new boot.iso will be checked when it will be ready.

Comment 8 Denys Vlasenko 2009-06-12 11:20:19 UTC
busybox readlink fix is at

http://busybox.net/downloads/fixes-1.14.1/busybox-1.14.1-readlink.patch

Comment 9 Ivana Varekova 2009-06-15 06:08:49 UTC
thanks Denys - patch backported to 1.14.1-2.fc12.


Note You need to log in before you can comment on or make changes to this bug.