1847906 Members
3178 Online
104021 Solutions
New Discussion

Re: vgdisplay

 
SOLVED
Go to solution
Chen_7
Advisor

vgdisplay

Hi. How can I check to see if root disk is mirrored or not and the sizes of the disk and mirror?
12 REPLIES 12
Rick Garland
Honored Contributor
Solution

Re: vgdisplay

There are a couple of commands.

The "lvlnboot -v" can help
Will display the swap, dump, boot, root areas. Should be 2 disks shown.

Doing "lvdisplay -v /dev/vg00/lvolX"
You should see extents being used on 2 disks.

Do you have MirrorUX installed?
swlist -l bundle | grep -i mirror

What about the setboot command? Do you have an alternate boot disk defined?

etc...
Peter Godron
Honored Contributor

Re: vgdisplay

Chen,
use SAM

Regards
Henk Geurts
Esteemed Contributor

Re: vgdisplay

hi chen

vgdisplay -v vg00
should show 2 disks.
all lv's should have 2 PV's if mirrored.

regards.
Robert-Jan Goossens
Honored Contributor

Re: vgdisplay

Hi,

# lvlnboot -v

# pvdisplay /dev/dsk/cxtydz

PE Size (Mbytes) X Total PE

Robert-Jan
Chen_7
Advisor

Re: vgdisplay

Hi.

Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg00/lvol3 524288 56855 438234 11% 3554 116858 3% /


# pvdisplay /dev/dsk/c0t0d0
--- Physical volumes ---
PV Name /dev/dsk/c0t0d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 10
PE Size (Mbytes) 4
Total PE 4340
Free PE 989
Allocated PE 3351
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On


Root filesystem size is 524mb as shown in bdf. PE SIZE * Total PE = 17GB. I used pvdisplay /dev/dsk/c1t0d0 (the mirror). Sme thing. So, is the root 17GB in size here? Then what does bdf show? Thanks.
Robert-Jan Goossens
Honored Contributor

Re: vgdisplay

No bdf is showing root filesystem /dev/vg00/lvol3 524 MB , complete disk is 18GB with about 4 GB free space.

Robert-Jan
Stephen Keane
Honored Contributor

Re: vgdisplay

bdf is showing you how much space the root filesystem '/' is occupying. There is more than one logical volume and more than one fileystem on the physical volume /dev/dsk/c0t0d0 which is 17Gbytes.

If you do an lvdisplay for /dev/vg00/lvol3

# lvdisplay /dev/vg00/lvol3

And look at the 'Mirror copies' line it should be non-zero if the logical volume is being mirrored.

Chen_7
Advisor

Re: vgdisplay

Hi. I am a bit confused.

# lvdisplay /dev/vg00/lvol3
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 512
Current LE 128
Allocated PE 256
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default


So, I think the root system is 500 MB. Complete disk is 18GB. Can I make root and its mirror 9GB here? Is it possible? What;s the method?
Stephen Keane
Honored Contributor

Re: vgdisplay

The root fileystem '/' mounted on /dev/vg00/lvol3 IS mirrored (there is one mirror copy). It is 512 Mbytes in size.

If you run lvdisplay -v on /dev/vg00/lvol3

# lvdisplay -v /dev/vg00/lvol3

You will see which physical volumes it is written on. (Under the logical extents section).

Chen_7
Advisor

Re: vgdisplay

How can I increase root size to 9 gb? How do I know if it's possible?
Robert-Jan Goossens
Honored Contributor

Re: vgdisplay

HPUX uses seperate filesystems for /(root), /stand(kernel), /var, /usr, /opt and /tmp.

If you mirror filesystems you will need to mirror them to an other disk.

# vgdisplay -v vg00

why would you need to have /(root filesystem 9GB ?
MarkSyder
Honored Contributor

Re: vgdisplay

When you refer to increasing root to 9 Gb, I take it you mean the / filesystem.

If you really need to do this, you would need to restore from ignite, but I think most of us here would advise against it. Think carefully about what you want to put in that 9 Gb. You can almost certainly find a more appropriate filesystem for it.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing