Volume group Command in LInux

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Volume group Command in LInux
# 1  
Old 10-15-2010
Volume group Command in LInux

Hi experts,

I'm trying to find otu the list of Volume groups and LUNs. I'm not able to use the following commands in Linux.

1. lvdisplay
2. pvdisplay
3. vgdisplay.

Error: Command not found.

Your help is appreciated!

Thanks,
# 2  
Old 10-15-2010
Maybe the file systems are less full-featured here. df tells you all the mounts and devices. Each device can be a different file system type. The innards of logical volumes is file system dependent.

---------- Post updated at 11:42 AM ---------- Previous update was at 11:38 AM ----------

See man mnttab.
This User Gave Thanks to DGPickett For This Post:
# 3  
Old 10-15-2010
I was able to man<command> and it shows the results fine.
# 4  
Old 10-15-2010
My system has a mnttab that tells me the logical volumes are under vxfs

$ pg /etc/mnttab
/dev/vg00/lvol5 / vxfs log 0 1 1276425326

so I would get information on the commands of vxfs to investigate and manage that logical volume, like this from google:

http://eval.veritas.com/downloads/van/fs_quickref.pdf

---------- Post updated at 11:59 AM ---------- Previous update was at 11:53 AM ----------

Maybe your .profile, ,kshrc or the like did not set your environment $PATH to include the dir where these commands are located.

---------- Post updated at 12:01 PM ---------- Previous update was at 11:59 AM ----------

$ which lvdisplay
/etc/lvdisplay
$
This User Gave Thanks to DGPickett For This Post:
# 5  
Old 10-15-2010
Usually you need to be root to use LVM tools (they are located in /usr/sbin).
This User Gave Thanks to verdepollo For This Post:
# 6  
Old 10-15-2010
I didnt the iostat command and got the following results.

I'm assuming that there are many LUNs showing under the device name as listed below. Any clue how to find out that how the file system is layed out of these devices?

Thanks,

Linux 2.6.18-128.1.6.el5 (fsbpodb-d) 10/15/2010

avg-cpu: %user %nice %system %iowait %steal %idle
0.83 0.04 1.01 0.56 0.00 97.55

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 3.94 1.14 168.99 4295342 638507440
sda1 0.00 0.00 0.00 2884 752
sda2 0.47 0.01 11.66 45424 44052176
sda3 1.08 0.63 38.96 2369338 147216360
sda4 0.00 0.00 0.00 10 0
sda5 0.01 0.02 0.17 65902 627800
sda6 0.00 0.01 0.51 44188 1932352
sda7 2.37 0.47 117.69 1766868 444678000
sdb 1.61 7.57 33.60 28602018 126944112
sdc 3.55 37.48 49.60 141615690 187404393
sdd 0.00 0.49 0.92 1856450 3482920
dm-0 3.45 0.31 27.48 1162602 103815400
dm-1 1.44 0.01 11.48 42098 43366304
dm-2 1.19 0.46 9.23 1751250 34890272
dm-3 0.02 0.02 0.17 65402 627800
dm-4 0.07 0.01 0.51 43720 1932352
dm-5 15.03 0.32 120.13 1224514 453874560
dm-6 0.12 0.49 0.92 1854666 3482920
dm-7 0.00 0.02 0.01 89706 20752
dm-8 0.00 0.01 0.03 30242 125104
dm-9 0.00 0.00 0.00 11050 15000
dm-10 0.05 0.24 0.35 919390 1332896
dm-11 0.08 0.63 0.64 2392246 2411279
dm-12 0.00 0.00 0.00 2018 2464
dm-13 0.96 2.33 15.67 8808430 59221616
dm-14 0.08 0.59 1.62 2229287 6139080
dm-15 0.00 0.00 0.00 2490 1472
dm-16 0.34 6.66 1.55 25146936 5850776
dm-17 1.79 24.87 13.12 93971848 49576109
dm-18 1.05 2.12 13.15 7991214 49669587
dm-19 0.15 0.00 1.71 9326 6468211
dm-20 0.16 0.00 1.74 9595 6570047
dm-21 0.40 0.56 3.12 2115250 11805976
dm-22 0.61 1.83 4.81 6922194 18159088
dm-23 0.41 0.37 3.22 1401682 12155864
dm-24 2.77 4.77 20.85 18013450 78766376
dm-25 0.20 0.04 1.60 147658 6056808
# 7  
Old 10-15-2010
try this
Code:
# /usr/sbin/lvm
lvm> lvscan
  ACTIVE            '/dev/VolGroup00/LogVol00' [29.12 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [768.00 MB] inherit
  ...
  ...

Code:
# /usr/sbin/lvdisplay | sed -e '/LV Name\|Block device/!d;s/.*  *\(.*\)/\1/;'|sed -e 'N;s/\(.*\)\n.*:\(.*\)/dm-\2 \1/'
dm-0 /dev/VolGroup00/LogVol00
dm-1 /dev/VolGroup00/LogVol01
...
...

These 2 Users Gave Thanks to ygemici For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. AIX

Volume group delete is not possible

Hello experts, I canīt remove the vg vgnet after Storage removal (hdisk10) AIX 7.1 TL 3 / HOMOLOG > lsvg rootvg datavg ... (3 Replies)
Discussion started by: artur_dietrich
3 Replies

3. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

4. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

5. AIX

Adding a Volume Group to an HACMP Resource Group?

Hi, I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over) Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies

6. HP-UX

Volume group are those LUNs?

In HP-UX, VLM: what volume group, are these LUNs? anyone know ? objecthexuid .........................: 6005-08b4-0001-529c-0005-6000-45d6-0000 objecthexuid .........................: 6005-08b4-0001-529c-0005-6000-45d9-0000 objecthexuid .........................:... (5 Replies)
Discussion started by: aav1307
5 Replies

7. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

8. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

9. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies

10. AIX

Volume Group Size

Hello, Can somebody please help. I'm able to view volume groups by using the command "lsvg", how can I view what space is available to that particular volume group Many Thanks (3 Replies)
Discussion started by: ugxd14
3 Replies
Login or Register to Ask a Question