-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christian Nolte schrieb:
> Creating a rescue disk on a system using Fedora Core 6 and lvm2 I
> noticed that getdiskinfo does not create the diskinfo/lvm-*.bsi. They
> are always empty. The problem is that the redirection of the output of
> lvm does not work. See the attached patch for the necessary changes.

The patch was flawed, sorry. Here is a working one (hopefully), at least
it works for me.

- --

Christian Nolte

mailto:[EMAIL PROTECTED]

key : http://www.noltec.org/christian-nolte.asc
or  : www.keyserver.net

      GPG-fingerprint:
      1088 6C2D 1496 0A34 D159 1108 08D8 C0D2 77E1 5BBC
- ----------------------------------------------------------------------
For more than 4 generations the IT Professionals were the guardians
of quality and stability in software. Before the dark times.
Before Microsoft...
- ----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGDNMmCNjA0nfhW7wRAtnlAJ0SJ9FvYwD96rvkbIVNFvnlmUio4gCgokv5
aSHiJ0zrywXTGnw2G1yG7hk=
=qRaT
-----END PGP SIGNATURE-----
--- rescue/linux/cdrom/bacula/getdiskinfo.orig	2007-03-30 10:48:44.000000000 +0200
+++ rescue/linux/cdrom/bacula/getdiskinfo	2007-03-30 10:49:09.000000000 +0200
@@ -64,9 +64,9 @@
     echo "Gathering LVM information"
     dolvm=1
 
-    lvm pvs --noheadings --nosuffix -o pv_name,vg_name > lvm-pv.bsi
-    lvm vgs --noheadings --nosuffix -o vg_name,vg_extent_size --units=k > lvm-vg.bsi
-    lvm lvs --noheadings --nosuffix -o lv_name,vg_name,lv_size --units=k > lvm-lv.bsi
+    lvm pvs --noheadings --nosuffix -o pv_name,vg_name | cat > lvm-pv.bsi
+    lvm vgs --noheadings --nosuffix -o vg_name,vg_extent_size --units=k | cat > lvm-vg.bsi
+    lvm lvs --noheadings --nosuffix -o lv_name,vg_name,lv_size --units=k | cat > lvm-lv.bsi
 fi
 
 echo "Done collecting info."
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to