Sponsored Content
Operating Systems AIX read lv mountpoint information directly from disk Post 302596294 by funksen on Tuesday 7th of February 2012 05:42:00 AM
Old 02-07-2012
thank you vbe,

gives me this output:

Code:
#  lqueryvg -Atp hdisk0                                                                                                                                                                                                                      
Max LVs:        256                                                                                                                                                                                                                          
PP Size:        25
Free PPs:       328
LV count:       15
PV count:       2
Total VGDAs:    3
Conc Allowed:   0
MAX PPs per PV  1016
MAX PVs:        32
Quorum (disk):  1
Quorum (dd):    0
Auto Varyon ?:  1
Conc Autovaryo  0
Varied on Conc  0
Logical:        00509d1a00004c00000000ff77af1bba.1   hd5 1  
                00509d1a00004c00000000ff77af1bba.2   hd6 1  
                00509d1a00004c00000000ff77af1bba.3   hd8 1  
                00509d1a00004c00000000ff77af1bba.4   hd4 1  
                00509d1a00004c00000000ff77af1bba.5   hd2 1  
                00509d1a00004c00000000ff77af1bba.6   hd9var 1  
                00509d1a00004c00000000ff77af1bba.7   hd3 1  
                00509d1a00004c00000000ff77af1bba.8   hd1 1  
                00509d1a00004c00000000ff77af1bba.9   hd10opt 1  
                00509d1a00004c00000000ff77af1bba.11  loglv00 1  
                00509d1a00004c00000000ff77af1bba.13  lv00 1  
                00509d1a00004c00000000ff77af1bba.14  fslv01 1  
                00509d1a00004c00000000ff77af1bba.15  lv01 1  
                00509d1a00004c00000000ff77af1bba.16  paging00 1  
                00509d1a00004c00000000ff77af1bba.18  itmlv 1  
Physical:       00509d1a173b5e36                2   0  
                00509d1af9c6ea43                1   0  
Total PPs:      1084
LTG size:       128
HOT SPARE:      0
AUTO SYNC:      0
VG PERMISSION:  0
SNAPSHOT VG:    0
IS_PRIMARY VG:  0
PSNFSTPP:       4352
VARYON MODE:    0
VG Type:        0
Max PPs:        32512


but unfortunately the fs is not displayed

the background why I need this command:
sometimes we have problems, that migrated vgs from one aix to another contain the wrong filesystem mountpoint, because someone just changed the mountpoint in /etc/filesystems
Code:
chfs -m /newmountpoint filesystem

changes the mountpoint in the vgda as well

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

I found it, my mistake this information resides in the logical volume control block, and not in the vgda


Code:
root@ldapclient:/usr/sbin# getlvcb -AT sysadmlv
         AIX LVCB
         intrapolicy = m 
         copies = 1 
         interpolicy = m 
         lvid = 00c33cbe00004c000000010cb4a74a88.11 
         lvname = sysadmlv 
         label = /sysadm 
         machine id = xxxxxx
         number lps = 65 
         relocatable = y 
         strict = y 
         stripe width = 0 
         stripe size in exponent = 0 
         type = jfs2 
         upperbound = 32 
         fs = vfs=jfs2:log=/dev/hd8:mount=true:options=rw:account=false 
         time created  = Thu Jun 19 11:28:45 2008
         time modified = Wed Jul  8 14:10:28 2009


Last edited by funksen; 02-07-2012 at 07:04 AM..
 

10 More Discussions You Might Find Interesting

1. AIX

hard disk information in AIX

Hi, Other than df -k, is there any command that will tell me all physical hard drives installed on the system as well as the size of each one? I'm using AIX 5.1 Thanks, (3 Replies)
Discussion started by: quickfirststep
3 Replies

2. Shell Programming and Scripting

Getting disk information from multiple servers

Hey guyz hw u all doing. I need some help regarding "df -m".I have to check 10 servers thrice a day and have to make a text file.The only problem is I have to log into those 10 servers * 3 =30 times every time .Is there any way ,we can write a script that will automatically run on all... (5 Replies)
Discussion started by: coolkid
5 Replies

3. Solaris

Command to List Hard Disk Information

I have a SparcStation5 that is making sounds that make me think the disk drive(s) may be on the verge of quiting. What is the command to list the disk types and sizes? I'm thinking I can possibly pick up another drive or two and compy the exisiting drives while they are still working. (1 Reply)
Discussion started by: muletrainman
1 Replies

4. Homework & Coursework Questions

Using USERNAME variable for getting disk quota information

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. I am trying to write a script where my professor will log in and the script will give him his quota info with the LOGNAME variables, etc. 2. standard I'm not exactly... (0 Replies)
Discussion started by: cchapma1
0 Replies

5. Red Hat

Finding disk information

Hi, I would like to know how to find out whether hard disk is local or mapped from storage, on my server both hard disk are there, Please guide me. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. Programming

How to read BGP session information with C

Friends, I want to read BGP session information with C ( in FreeBSD ). The program will almost work like a sniffer. My FreeBSD box (which is not a BGP speaker) will look at BGP session information (after catching and parsing it) and take a decision based on the information it sees. :wall: ... (1 Reply)
Discussion started by: asadfx
1 Replies

7. Red Hat

Information About Solid State Disk in Linux

Hello, I have few HDD and SSD installed in my RHEL 5 server. I want to know which disk are SDD and which are HDD. What command should I use? Thanks (3 Replies)
Discussion started by: fahdmirza
3 Replies

8. Shell Programming and Scripting

Send information about disk occupation periodically by email

Hi, I want to make a shell script that gives me the information about the disk occupation by sending me an email once in a month for example. With this command df|tr -s " "|cut -d" " -f 1,5 I can see the occupation but I dont know how to make the machine to send me the email with this... (7 Replies)
Discussion started by: Adam Brave
7 Replies

9. Shell Programming and Scripting

Use of prtdiag to give information of sectors,cylinders,track of each disk

Hi All, i am trying to get sectors,cylinders,track..etc information of all present disks out of solaris machine using prtvtoc command . Output of ptrvtoc command is as below : bash-3.2# prtvtoc /dev/dsk/c1t0d0s0 * /dev/dsk/c1t0d0s0 partition map * * Dimensions: * 512 bytes/sector... (2 Replies)
Discussion started by: omkar.jadhav
2 Replies

10. UNIX for Advanced & Expert Users

Inconsistent disk information.

On one of the Unix server B.11.31. a disk that has been provisioned from the VMAX, but according to the diskinfo its show coming from clarion. sudo /opt/emc/SYMCLI/bin/symvg sho /dev/vg_<name> Volume Group Name : /dev/vg_<name> Volume Group Type : HP-UX LVM Volume Group State ... (0 Replies)
Discussion started by: kpatel786
0 Replies
All times are GMT -4. The time now is 09:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy