Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vg(1) [debian man page]

VG(1)																	     VG(1)

NAME
vg - Edit an entry found by the cg script SYNOPSIS
vg [ -l ] number DESCRIPTION
vg is the companion script to cg(1) which fires off an editor to edit an entry found by cg(1). This script is run only with one argument which just be an integer within rage of the output of cg(1), as seen on the far left column. (Such as "vg 0".) Running it with the -l option edits using the log from the last search. COMMAND-LINE OPTIONS -l Edits from the last search rather than from this terminal FILES
${HOME}/.cglast Log file of the last search. ${HOME}/.cgvgrc Per-user configuration file (if the defaults are not desireable). SEE ALSO
cg(1), perl(1), cscope(1) AUTHOR
vg was written by Joshua Uziel <uzi@uzix.org>. 13 Mar 2002 VG(1)

Check Out this Related Man Page

CG(1)																	     CG(1)

NAME
cg - Recursively grep for a pattern and store it. SYNOPSIS
cg [ -l ] | [ [ -i ] pattern [ files ] ] DESCRIPTION
cg does a search though text files (usually source code) recursively for a pattern, storing matches and displaying the output in a human- readable fashion. It is intended to give some of the functionaly of AT&T's cscope(1) tool, with the advantages of simplicity and not being language-specific. The script will colorize output if configured as such. It is typically run with a Perl regular expression to search for. The search can be made case insensitive by using the -i option. A list of files may also be specified with an additional argument after the pattern. Put the files pattern in quotes to make it be matched by Perl rather than by the shell. Running the script with no arguments will recall the results of the previous search. After the search, entries found can be edited using the vg(1) script. The -l option shows the last log made. SOME EXAMPLES
cg - alone recalls the previous search results. cg -i pattern - search the default list of files for all files matching the pattern (and case-insensitively). cg pattern '*.c' - search recursively for pattern in all *.c files. This automatically converts '*' to '.*' and '.' to '.' for you and does a Perl pattern match on all files in the tree. cg pattern *.c - search through the shell-expanded list of *.c files, so not done recursively (in other words, only the files your shell pass to the script as arguments). cg -l - show the last log made. COMMAND-LINE OPTIONS -i Do a case-insensitive search. -l Show the last log made. -p Toggle the default pager option. cg has a bulit-in pager function, which can be enabled or disabled by default (in .cgvgrc). If the default is enabled, this option disables the pager; if the default is disabled, this option enables it. -P Force the built-in pager to be disabled. FILES
${HOME}/.cglast Log file of the last search. ${HOME}/.cgvgrc Per-user configuration file (if the defaults are not desireable). ${HOME}/.cgvg/* Log files in $HOSTNAME.shell_pid form with the log of the last search. SEE ALSO
vg(1), perl(1), find(1), grep(1), cscope(1) AUTHOR
cg was written by Joshua Uziel <uzi@uzix.org>. 13 Mar 2002 CG(1)
Man Page

15 More Discussions You Might Find Interesting

1. AIX

mirror rootvg

Hello I have a question I have a box with Aix 5.3 with rootvg on mirror. I deleted a filesystem and I create a new one to install some software but when I type lsvg -l rootvg all my filesystems has mirror unless the new one. My question is I can mirror this fs only ??? or I have to... (9 Replies)
Discussion started by: lo-lp-kl
9 Replies

2. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

3. AIX

syncvg

Hello I have a box with aix 5.3 if I type lsvg -l rootvg all my filesystems are sync except one rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 32 64 ... (16 Replies)
Discussion started by: lo-lp-kl
16 Replies

4. AIX

FastT600 - Cannot varyonvg on one server, but can varyonvg other server.

Good evening, Thanks a lot for your help, we appreciate it a bunch. Heres basically a summary of what we have (sorry Im adding some extra history as well): We have 2 Ibm Servers (Hag and Aki) that are running AIX Version 5. Each connect to a SAN device via 2 separate fiber paths. Hag seems to... (9 Replies)
Discussion started by: aix-olympics
9 Replies

5. Shell Programming and Scripting

Find avg using awk

Hi, i need some help plz... The file data.txt contains: code of student,surname and name,code of lesson,grade of lesson.The number of lessons of each student is not the same. 25,Jackson Steve,12,4,34,2,65,2 29,Jordan Mary,13,6,23,8,56,4,34,2 04,Leven Kate,14,6,15,6,26,4 34,Owen... (10 Replies)
Discussion started by: Steve_09
10 Replies

6. AIX

choosing correct VG for Filesystem extend

Hi Gurus, I have Aix 5.3 server and would like to extend the following filesystem. Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/lv_mecdr 120.00 12.04 90% 560973 14% /home/mecdrBut there's only 16G for the VG, may be i can expand it... (11 Replies)
Discussion started by: thepurple
11 Replies

7. Shell Programming and Scripting

VG calculation in GB

for i in `lsvg` do echo "VG Name:" $i echo "Total VG Size:" lsvg $i |grep "TOTAL PPs:" |awk '{print $7}' | cut -c2- echo "Free VG Size:" lsvg $i |grep "FREE PPs:" | awk '{print $7}' | cut -c2- done The PP Sizes are in MB. I like to have the sizes in GB. Also, I like to have the... (14 Replies)
Discussion started by: Daniel Gate
14 Replies

8. HP-UX

VG and LV problem

Hi all, I have a client who has an RX4640 using 11iV2, he said the server has problems. I checked and I couldn't activate the VGs. I am somehow new to HP-UX and I don't want to do something that would mess everything up. I am not sure if that is what is really happening, but from what I... (20 Replies)
Discussion started by: MazenH
20 Replies

9. AIX

Using restorevgfiles to restore entire directory from rootvg problems

I am trying to restore a specific directory and all sub-directories therein using a rootvg tape. I am using the following command to make the backup: mksysb -m -i -v /dev/rmt0 However, I am getting the following result: tctl status rmt0 Available 04-08-00-0,0 LVD SCSI 4mm Tape Drive... (10 Replies)
Discussion started by: herot
10 Replies

10. Emergency UNIX and Linux Support

Rootvg in read only state

I have Oracle Linux 5.7. It was hanged, so I rebooted it and now it came into maintenance mode and asking for root password. After password, it is at (Repair filesystem) 10 # I am not sure, where to go from here. All file-systems are in vg. Non-root is coming from EMC storage and root is from... (15 Replies)
Discussion started by: solaris_1977
15 Replies

11. AIX

Upgrading rootvg disks on the fly.

I'm looking for a way to upgrade disks containing my rootvg volume group on the fly without a reboot. Currently, rootvg contains 2x74gb drives in RAID 10. What I want to do is swap them out one-by-one with 146gb drives then expand the volume group. I've done this with a test system before, and... (12 Replies)
Discussion started by: acascianelli
12 Replies

12. AIX

Mirrorvg to different multiple disks

Hi All, I have a vg that consists of 2 physical disks (PV), To migrate the vg into these 2 new disks (presented from different SAN Storage), I use the mirrorvg command, but I am not sure the command I use is correct. hdisk1 appvg hdisk2 appvg hdisk3 none hdisk4 none ... (11 Replies)
Discussion started by: ckwan
11 Replies

13. AIX

Unable to extend volume group(VG)

Would some help me on this below I am trying to extend file system on AIX and however unable to extend the file system. 0516-306 extendvg: Unable to find physical volume 20 in the Device Configuration Database. 0516-321 extendvg: Physical volume u01-lv is not configured. 0516-792... (15 Replies)
Discussion started by: murali969
15 Replies

14. AIX

Unable to rmlvcopy on jfs2log rootvg

Good day folks, I am unable to remove lv copy from jfs2log lv as I need to replace broken disk on a mirrored rootvg, is there a way that I can fix this? bash-4.2# lsvg -p rootvg rootvg: PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION hdisk1 ... (10 Replies)
Discussion started by: jaapar
10 Replies

15. AIX

AIX extend VG error

Hi, I have encountered the issue of extending VG: Here is my command / > extendvg vg1 hdisk39 0516-1162 extendvg: Warning, The Physical Partition Size of 128 requires the creation of 8192 partitions for hdisk39. The limitation for volume group tsm_stg is 3048 physical... (10 Replies)
Discussion started by: Phat
10 Replies