All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] indistinguishable column names ( BA Start Start Start Start )
@ 2023-08-19 15:20 Roland
  2023-08-19 16:05 ` Roland
  0 siblings, 1 reply; 6+ messages in thread
From: Roland @ 2023-08-19 15:20 UTC (permalink / raw)
  To: LVM general discussion and development

hello,

does somebody know how we can have native (i.e. non translated) column 
field names in first line of output of pvs ?

in its current implementation, output is hard to read , difficult to 
distinguish and also not scriptable/parseable, as whitespace is used for 
field separator and there are fields which also contain whitespace 
themselves,and there also seems no way to add separators in between 
(like with printf) for separation/formatting

# pvs --units s -o+pv_ba_start,seg_start,seg_start_pe,pvseg_start
   PV         VG        Fmt  Attr PSize        PFree BA Start Start    
Start Start
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S       0S 
2097152S     1     0
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S       0S 
2097152S     1     1
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S 0S       0S     0  5309
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S 0S       0S     0  5587
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S 0S       0S     0  5588

i mean like this:

# pvs --units s -o+pv_ba_start,seg_start,seg_start_pe,pvseg_start
   PV         VG        Fmt  Attr PSize        PFree pv_ba_start 
seg_start seg_start_pe pvseg_start
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S          0S 
2097152S            1           0
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S          0S 
2097152S            1           1
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S 0S        0S        
     0        5309
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S 0S        0S        
     0        5587
   /dev/sdb   VGrecycle lvm2 a--  11720982528S    0S 0S        
0S            0        5588

furthermore, it's a little bit weird that some columns being printed by 
default when using -o, is there an easier way to remove those besides 
explictly removing them one by one with several -o options ? 
"-o-opt1,-opt2,..." doesn't work

# pvs --units s -o+pv_ba_start,seg_start,pvseg_start,seg_start_pe 
-o-vg_name -o-pv_name -o-pv_fmt -o-attr -o -pv_size -o -pv_free
   BA Start Start    Start Start
         0S 2097152S     0     1
         0S 2097152S     1     1
         0S       0S  5309     0
         0S       0S  5587     0
         0S       0S  5588     0

roland

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

end of thread, other threads:[~2023-08-23  6:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-19 15:20 [linux-lvm] indistinguishable column names ( BA Start Start Start Start ) Roland
2023-08-19 16:05 ` Roland
2023-08-21 16:00   ` Marian Csontos
2023-08-22  9:01     ` Roland
2023-08-21 16:17   ` David Teigland
2023-08-21 23:45     ` Roland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.