Il giorno sab, 01/07/2006 alle 09.03 +0300, Heikki Pesonen ha scritto:
Thanks for learning a new use full command "locate"! I
should have
guessed, that something like that exists. Is there any book or some
kind of index in the Net for all Bash(?) commands? All in Fedora
Core?
Well, locate is not a Bash command.
It's an executable 'command', that you can launch from shell
There are tons of command (ls for example is a command), and also bash
is a command.
I don't know where you can found an exaustive list. But you can use the
man command to know something apropos of an argument.
For example (about locate) you can use the command man -k find.
You obtain a list of man pages in which the description contain the word
file. In this list you can find locate.
Use of man -k (or apropos) with grep is usefull for finding command.
[code]
[root@localhost fossiili]# /usr/sbin/vgdisplay -v
Finding all volume groups
Finding volume group "VolGroup00"
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 148.94 GB
PE Size 32.00 MB
Total PE 4766
Alloc PE / Size 4765 / 148.91 GB
Free PE / Size 1 / 32.00 MB
VG UUID UURgQ9-DOYj-IzSI-y2tu-H9rn-10hP-hN1dTB
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID upL4ui-Ld7j-VUx9-F3In-M5hM-LLhN-Si8Uwd
LV Write Access read/write
LV Status available
# open 1
LV Size 146.97 GB
Current LE 4703
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID 30prYX-StTl-xR4l-gr8p-4D29-2ngD-9HJdNm
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
--- Physical volumes ---
PV Name /dev/hdb2
PV UUID OxdBU7-tT5S-ZL4c-goCu-awWP-fWub-r6KIFk
PV Status allocatable
Total PE / Free PE 4766 / 1
[root@localhost fossiili]#
[/CODE]
Ok,
vgdisplay says that you ave 2 volumes.
One if 1.94 GB and we don't know what filesystem is, and where is
mounted.
The other is 146.97 GB, and we can think is your /
So you can free space in your VG.
Steps are:
1. Reduce File system
2. reduce LV
I suggest you to read well the LVM-howto for first, to know how LVM
works.
After that you have to calc very well the dimension of filesystem and
Volume, because wrong in this calc results in loss of data.
Tell me now if you need help in this step.
Bye
Ambrogio