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
10 More Discussions You Might Find Interesting
1. HP-UX
In HP-UX 11.00
How can i check if there are disks mirrored (2 Replies)
Discussion started by: cgege
2 Replies
2. AIX
How do I know, which all disks are mirrored? any command?
Bala (7 Replies)
Discussion started by: balaji_prk
7 Replies
3. Shell Programming and Scripting
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
4. HP-UX
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
5. Solaris
# 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
6. UNIX for Dummies Questions & Answers
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
7. Shell Programming and Scripting
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
8. AIX
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
9. AIX
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
10. Shell Programming and Scripting
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
LEARN ABOUT SUSE
vgreduce
VGREDUCE(8) System Manager's Manual VGREDUCE(8)
NAME
vgreduce - reduce a volume group
SYNOPSIS
vgreduce [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [Physi-
calVolumePath...]
DESCRIPTION
vgreduce allows you to remove one or more unused physical volumes from a volume group.
OPTIONS
See lvm for common options.
-a, --all
Removes all empty physical volumes if none are given on command line.
--removemissing
Removes all missing physical volumes from the volume group, if there are no logical volumes allocated on those. This resumes normal
operation of the volume group (new logical volumes may again be created, changed and so on).
If this is not possible (there are logical volumes referencing the missing physical volumes) and you cannot or do not want to remove
them manually, you can run this option with --force to have vgreduce remove any partial LVs.
Any logical volumes and dependent snapshots that were partly on the missing disks get removed completely. This includes those parts
that lie on disks that are still present.
If your logical volumes spanned several disks including the ones that are lost, you might want to try to salvage data first by acti-
vating your logical volumes with --partial as described in lvm (8).
SEE ALSO
lvm(8), vgextend(8)
Sistina Software UK LVM TOOLS 2.02.67(2) (2010-06-04) VGREDUCE(8)