How to list mirrored elements? (pv, vg, lv)


 
Thread Tools Search this Thread
Operating Systems AIX How to list mirrored elements? (pv, vg, lv)
# 1  
Old 11-28-2006
Question How to list mirrored elements? (pv, vg, lv)

Hello,

How can I list mirrored elements, such as PV, VG or LV? (and others if applicable). On AIX 4.3.3 and 5.3.0.
I tried the commands:
  • lscfg|grep hd
  • lspv
  • lsvg
  • lsvg -l (of each vg)
  • lslv (and some options)
But could not find what am I looking for. I saw a "number of copies", but I am not sure it means what I am looking for.

Thanks for your help
Yann
# 2  
Old 11-28-2006
lslv -m LVName maybe??

could you copy the output here?

tnx

x
# 3  
Old 11-29-2006
First run the command lspv | grep vgname. This will give you the pvs in the vg. then run the command lsvg -l vgname and look at the LPs and PPs. If it is mirrored the PPs will be double the LPs. That is the easiest method.
# 4  
Old 11-29-2006
Hi,

Thank you both, now I can see mirrored LVs.

More information :
root> lslv -m lv01 |head
lv01:/data
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0111 hdisk2 0300 hdisk8
0002 0112 hdisk2 0110 hdisk9
0003 0113 hdisk2 0111 hdisk4
0004 0114 hdisk2 0292 hdisk3
0005 0115 hdisk2 0292 hdisk5
0006 0116 hdisk2 0301 hdisk8
0007 0117 hdisk2 0111 hdisk9
0008 0118 hdisk2 0112 hdisk4

(there are 900 lines of these).

So I can see this lv is mirrored, thanks!

It works for the lspv command too:
> lspv -M hdisk1|head
hdisk1:1 hd5:1:1
hdisk1:2-15
hdisk1:16 bpslv:186:1
hdisk1:17 bpslv:187:1
hdisk1:18 bpslv:188:1
hdisk1:19 bpslv:189:1
hdisk1:20 bpslv:190:1
hdisk1:21 bpslv:191:1
hdisk1:22 bpslv:192:1
hdisk1:23 bpslv:193:1

> lspv -M hdisk0|head
hdisk0:1 hd5:1:2
hdisk0:2-37
hdisk0:38 bpslv:186:2
hdisk0:39 bpslv:187:2
hdisk0:40 bpslv:188:2
hdisk0:41 bpslv:189:2
hdisk0:42 bpslv:190:2
hdisk0:43 bpslv:191:2
hdisk0:44 bpslv:192:2
hdisk0:45 bpslv:193:2


The last column is the "Copynum" (Mirror number), which indicates I guess that here hdisk0 and hdisk1 are mirrored.

However, the command lsvg does not seem to have such a way to see mirrored VGs. That's strange, because in the man of syncvg, it says "The syncvg command can be used with logical volumes, physical volumes, or volume groups (...)".

So now it seems I can get (painfully) most of the information I am looking for.

However, I am wondering if there is a graphical tool to "see" in a more user friendly way all the information linked to hd, pv, vg, lv, etc.
I googled for such a tool, but I probably did no put the correct keywords to find it.
Even if I do like command line, sometimes it is good to have a graphical way to present information.

Thanks
Yann
# 5  
Old 11-29-2006
Probably you need the Web Based System Manager...
I searched the way it handles the mirroring, but that's still something that isn't really well depicted there... But there are A LOT of other features..

things you need:
- http server on your aix box
- wsm_remote bundle installed

if all that is ok --> you go on your remote box to the website: http://aix_box/remote_client.html

there you can download the setup of the Remote Client for windows or Unix.

It's a really handy tool.

grtz
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Number of elements, average value, min & max from a list of numbers using awk

Hi all, I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk. Any ideas? Thanks! (5 Replies)
Discussion started by: black_fender
5 Replies

2. AIX

How to extend mirrored VG?

Hi all, I need to extend a lv, but unfortunately I do not have enough space on my mirrored Volume group. I've planned to add 2 more disks to this vg (for mirroring) But ... what's the next steps to extend my lv using these 2 disks with a valid mirroring ? 1. extendvg myvg disk1 disk2... (3 Replies)
Discussion started by: unclefab
3 Replies

3. AIX

rootvg mirrored

I want to increase the size of /tmp by 1GB I know that the command is chfs -a size=+1G /tmp But the rootvg is mirrored and when I do a lsvg -p rootvg, I could see 2 disks. Will there be any impact if I increase the size of /tmp when the rootvg is mirrored ? Please advise. (1 Reply)
Discussion started by: newtoaixos
1 Replies

4. Shell Programming and Scripting

Get number of elements in a list

Hi all I would like to know the number of elements in a list. $list=`ls xyz*` I want to get the number of files xyz* in the folder. Anybody please help!!! (5 Replies)
Discussion started by: VidyaVenugopal
5 Replies

5. UNIX for Dummies Questions & Answers

make ls retrive ordered list of elements

Hello friends!! I have a question regarding the use of ls in unix. I have a folder with files: t1.txt t2.txt t3.txt t4.txt ... t10.txt When I make an ls I always get: t10.txt t1.txt t2.txt t3.txt .. t9.txt (2 Replies)
Discussion started by: SaktiPhoenix
2 Replies

6. Solaris

Are my disks mirrored ?

# metastat d1: Mirror Submirror 0: d11 State: Okay Submirror 1: d12 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 14582208 blocks (7.0 GB) d11: Submirror of d1 State: Okay Size: 14582208 blocks... (2 Replies)
Discussion started by: Exposure
2 Replies

7. HP-UX

MirrorDisk UX: Should DUMP Be Mirrored?

Follwing up on what I was working on yesterday, I noticed that at this thread, someone was suggesting that you WOULDN'T want to mirror DUMP. When I boot with my current secondary disk (because I didn't mirror DUMP) I get an error indicating that DUMP isn't there. Why wouldn't I want to mirror... (1 Reply)
Discussion started by: deckard
1 Replies

8. Shell Programming and Scripting

Number of elements in Word list

Hello everyone, can anyone let me know if there is a way to get the count of elements in a word list that I use for a for loop in the way: for single_result in $results ; do ....... I know I can increment a counter in my for loop, but would there be a way to know the total number of elements in... (4 Replies)
Discussion started by: gio001
4 Replies

9. AIX

Mirrored disk.....

How do I know, which all disks are mirrored? any command? Bala (7 Replies)
Discussion started by: balaji_prk
7 Replies

10. HP-UX

Number of Disk Mirrored in HP-UX

In HP-UX 11.00 How can i check if there are disks mirrored (2 Replies)
Discussion started by: cgege
2 Replies
Login or Register to Ask a Question