linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] [Patch] lvchange better error reporting
@ 2000-04-15 18:35 bert hubert
  2000-04-15 23:38 ` Christopher Briggs
  2000-04-19 19:50 ` Heinz Mauelshagen
  0 siblings, 2 replies; 4+ messages in thread
From: bert hubert @ 2000-04-15 18:35 UTC (permalink / raw)
  To: mauelsha, linux-lvm

Heinz, people,

It annoyed me that lvchange sometimes reported that volume group "(null)"
was invalid. This patch fixes this behaviour. Please apply.

diff -u -r 0.8final.orig/tools/lvchange.c 0.8final/tools/lvchange.c
--- 0.8final.orig/tools/lvchange.c	Tue Feb 22 03:09:33 2000
+++ 0.8final/tools/lvchange.c	Sat Apr 15 20:32:34 2000
@@ -255,9 +255,15 @@
       /* does VG exist? */
       if ( opt_v > 0) printf ( "%s -- checking volume group existence\n", cmd);
       if ( lvm_tab_vg_check_exist ( vg_name, NULL) != TRUE) {
-         fprintf ( stderr, "%s -- can't change logical volume: volume group "
-                           "\"%s\" doesn't exist\n\n", cmd, vg_name);
-         return LVM_ELVCHANGE_VG_CHECK_EXIST;
+        
+         if(vg_name)
+            fprintf ( stderr, "%s -- can't change logical volume: volume group "
+                 "\"%s\" doesn't exist\n\n", cmd, vg_name);
+         else
+            fprintf ( stderr, "%s -- can't change logical volume: need to specify "
+                              "volume group\n\n", cmd);
+                              
+         return LVM_ELVCHANGE_VG_CHECK_EXIST;
       }
 
       if ( opt_v > 0) printf ( "%s -- checking for active volume "

-- 
                       |              http://www.rent-a-nerd.nl
                       |                     - U N I X -
                       |          Inspice et cautus eris - D11T'95

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] [Patch] lvchange better error reporting
  2000-04-15 23:38 ` Christopher Briggs
@ 2000-04-15 22:56   ` bert hubert
  0 siblings, 0 replies; 4+ messages in thread
From: bert hubert @ 2000-04-15 22:56 UTC (permalink / raw)
  To: Christopher Briggs; +Cc: mauelsha, linux-lvm

On Sat, Apr 15, 2000 at 07:38:24PM -0400, Christopher Briggs wrote:

> I've been watching the thread for about a week+ now, and am determined to go
> with LVM, especially being so HPcentric and loving LVM for that platform.

LVM is cool indeed.

> What rev kernel would be best considering LVM and what is the best way to
> get there(pointing me to a FAQ/www be more than appropriate.

I'm not sure. Kernel 2.3.99pre6-3 is not ready for mission critical work,
and the 2.2 revisions of the LVM 0.8final kernel patches aren't available
yet.

> Also, Heinz - What are you using to develop your GUI frontend?(just curious)

I think you mean me by this. I am using Glade, libglade and GTK+. On a side
note, I'm still making good progress with the lvm-manager. It is almost
useable.

Currenly you can

	create volume groups
	move PEs from physical volumes
	move Physical Volumes from/to Volume Groups (with drag-and-drop even!)
	change active state
	remove volume groups
	create/remove logical volumes

Regards,

bert hubert. 

-- 
                       |              http://www.rent-a-nerd.nl
                       |                     - U N I X -
                       |          Inspice et cautus eris - D11T'95

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [linux-lvm] [Patch] lvchange better error reporting
  2000-04-15 18:35 [linux-lvm] [Patch] lvchange better error reporting bert hubert
@ 2000-04-15 23:38 ` Christopher Briggs
  2000-04-15 22:56   ` bert hubert
  2000-04-19 19:50 ` Heinz Mauelshagen
  1 sibling, 1 reply; 4+ messages in thread
From: Christopher Briggs @ 2000-04-15 23:38 UTC (permalink / raw)
  To: bert hubert, mauelsha, linux-lvm

Quick question for Hubert "or" the general dist. list..

I've been watching the thread for about a week+ now, and am determined to go
with LVM, especially being so HPcentric and loving LVM for that platform.

With that in mind, I have a decision to make, which is(I think) switch to a
kernel other than Redhat's default 6.0/6.1 kernel(2.2.5).

What rev kernel would be best considering LVM and what is the best way to
get there(pointing me to a FAQ/www be more than appropriate.

Also, Heinz - What are you using to develop your GUI frontend?(just curious)

Thanks all,

Christopher.



-----Original Message-----
From: owner-linux-lvm@msede.com [mailto:owner-linux-lvm@msede.com]On
Behalf Of bert hubert
Sent: Saturday, April 15, 2000 2:35 PM
To: mauelsha@ez-darmstadt.telekom.de; linux-lvm@msede.com
Subject: [linux-lvm] [Patch] lvchange better error reporting


Heinz, people,

It annoyed me that lvchange sometimes reported that volume group "(null)"
was invalid. This patch fixes this behaviour. Please apply.

diff -u -r 0.8final.orig/tools/lvchange.c 0.8final/tools/lvchange.c
--- 0.8final.orig/tools/lvchange.c	Tue Feb 22 03:09:33 2000
+++ 0.8final/tools/lvchange.c	Sat Apr 15 20:32:34 2000
@@ -255,9 +255,15 @@
       /* does VG exist? */
       if ( opt_v > 0) printf ( "%s -- checking volume group existence\n",
cmd);
       if ( lvm_tab_vg_check_exist ( vg_name, NULL) != TRUE) {
-         fprintf ( stderr, "%s -- can't change logical volume: volume group
"
-                           "\"%s\" doesn't exist\n\n", cmd, vg_name);
-         return LVM_ELVCHANGE_VG_CHECK_EXIST;
+
+         if(vg_name)
+            fprintf ( stderr, "%s -- can't change logical volume: volume
group "
+                 "\"%s\" doesn't exist\n\n", cmd, vg_name);
+         else
+            fprintf ( stderr, "%s -- can't change logical volume: need to
specify "
+                              "volume group\n\n", cmd);
+
+         return LVM_ELVCHANGE_VG_CHECK_EXIST;
       }

       if ( opt_v > 0) printf ( "%s -- checking for active volume "

--
                       |              http://www.rent-a-nerd.nl
                       |                     - U N I X -
                       |          Inspice et cautus eris - D11T'95

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] [Patch] lvchange better error reporting
  2000-04-15 18:35 [linux-lvm] [Patch] lvchange better error reporting bert hubert
  2000-04-15 23:38 ` Christopher Briggs
@ 2000-04-19 19:50 ` Heinz Mauelshagen
  1 sibling, 0 replies; 4+ messages in thread
From: Heinz Mauelshagen @ 2000-04-19 19:50 UTC (permalink / raw)
  To: bert hubert; +Cc: mge, linux-lvm


Applied.

Regards,
Heinz

> Heinz, people,
> 
> It annoyed me that lvchange sometimes reported that volume group "(null)"
> was invalid. This patch fixes this behaviour. Please apply.
> 
> diff -u -r 0.8final.orig/tools/lvchange.c 0.8final/tools/lvchange.c
> --- 0.8final.orig/tools/lvchange.c	Tue Feb 22 03:09:33 2000
> +++ 0.8final/tools/lvchange.c	Sat Apr 15 20:32:34 2000
> @@ -255,9 +255,15 @@
>        /* does VG exist? */
>        if ( opt_v > 0) printf ( "%s -- checking volume group existence\n", cmd);
>        if ( lvm_tab_vg_check_exist ( vg_name, NULL) != TRUE) {
> -         fprintf ( stderr, "%s -- can't change logical volume: volume group "
> -                           "\"%s\" doesn't exist\n\n", cmd, vg_name);
> -         return LVM_ELVCHANGE_VG_CHECK_EXIST;
> +        
> +         if(vg_name)
> +            fprintf ( stderr, "%s -- can't change logical volume: volume group "
> +                 "\"%s\" doesn't exist\n\n", cmd, vg_name);
> +         else
> +            fprintf ( stderr, "%s -- can't change logical volume: need to specify "
> +                              "volume group\n\n", cmd);
> +                              
> +         return LVM_ELVCHANGE_VG_CHECK_EXIST;
>        }
>  
>        if ( opt_v > 0) printf ( "%s -- checking for active volume "
> 
> -- 
>                        |              http://www.rent-a-nerd.nl
>                        |                     - U N I X -
>                        |          Inspice et cautus eris - D11T'95
> 


-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement TS                              T-Nova
                                                 Entwicklungszentrum Darmstadt
Heinz Mauelshagen                                Otto-Roehm-Strasse 71c
Senior Systems Engineer                          Postfach 10 05 41
                                                 64205 Darmstadt
mge@EZ-Darmstadt.Telekom.de                      Germany
                                                 +49 6151 886-425
                                                          FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-04-19 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-15 18:35 [linux-lvm] [Patch] lvchange better error reporting bert hubert
2000-04-15 23:38 ` Christopher Briggs
2000-04-15 22:56   ` bert hubert
2000-04-19 19:50 ` Heinz Mauelshagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).