1825775 Members
1930 Online
109687 Solutions
New Discussion

vxvm question

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

vxvm question

Hello,

I asked a vxvm question but it was removed, can someone explain why as 11i uses vxvm?

Thanks
hello
12 REPLIES 12
Geoff Wild
Honored Contributor

Re: vxvm question

What was your question?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
lawrenzo_1
Super Advisor

Re: vxvm question

Hello,

We have solaris / hpux / iex. This question is regarding vxvm on solaris and hpux.

I want to increase the size of /var:

# vxprint -g rootdg -t var

V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE

v var - ENABLED ACTIVE 2097414 ROUND - gen

I have read in the user guide that volumes under rootdg cannot be extened unless you decapsualise the rootdg.

However when I run a df -k the following is outputted:

Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/rootvol 492872 105776 337809 24% /
/dev/vx/dsk/usr 2053605 770765 1221232 39% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/vx/dsk/var 1016122 905293 49862 95% /var
swap 6150200 24 6150176 1% /var/run

can you confirm that /var is under rootdg?

many many thanks!!
hello
Geoff Wild
Honored Contributor

Re: vxvm question

Looks like it to me...

vxprint -ht

If var is displayed, then it is part of rootdg...

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
lawrenzo_1
Super Advisor

Re: vxvm question

Disk group: rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO

dg rootdg default default 0 1077182731.1025.stnm916a

dm rootdisk c1t0d0s2 sliced 2888 71124291 -
dm rootmirror c1t1d0s2 sliced 2888 71121402 -

v opt - ENABLED ACTIVE 3073896 ROUND - gen
pl opt-01 opt ENABLED ACTIVE 3073896 CONCAT - RW
sd rootdisk-04 opt-01 rootdisk 7340948 3073896 0 c1t0d0 ENA
pl opt-02 opt ENABLED ACTIVE 3073896 CONCAT - RW
sd rootmirror-01 opt-02 rootmirror 0 3073896 0 c1t1d0 ENA

v rootvol - ENABLED ACTIVE 1048707 ROUND - root
pl rootvol-01 rootvol ENABLED ACTIVE 1048707 CONCAT - RW
sd rootdisk-B0 rootvol-01 rootdisk 71124290 1 0 c1t0d0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 1048706 1 c1t0d0 ENA
pl rootvol-02 rootvol ENABLED ACTIVE 1048707 CONCAT - RW
sd rootmirror-02 rootvol-02 rootmirror 3073896 1048707 0 c1t1d0 ENA

v swapvol - ENABLED ACTIVE 4194828 ROUND - swap
pl swapvol-01 swapvol ENABLED ACTIVE 4194828 CONCAT - RW
sd rootdisk-01 swapvol-01 rootdisk 1048706 4194828 0 c1t0d0 ENA
pl swapvol-02 swapvol ENABLED ACTIVE 4194828 CONCAT - RW
sd rootmirror-03 swapvol-02 rootmirror 4122603 4194828 0 c1t1d0 ENA

v usr - ENABLED ACTIVE 4194828 ROUND - gen
pl usr-01 usr ENABLED ACTIVE 4194828 CONCAT - RW
sd rootdisk-03 usr-01 rootdisk 10414844 4194828 0 c1t0d0 ENA
pl usr-02 usr ENABLED ACTIVE 4194828 CONCAT - RW
sd rootmirror-04 usr-02 rootmirror 8317431 4194828 0 c1t1d0 ENA

v var - ENABLED ACTIVE 2097414 ROUND - gen
pl var-01 var ENABLED ACTIVE 2097414 CONCAT - RW
sd rootdisk-05 var-01 rootdisk 5243534 2097414 0 c1t0d0 ENA
pl var-02 var ENABLED ACTIVE 2097414 CONCAT - RW
sd rootmirror-05 var-02 rootmirror 12512259 2097414 0 c1t1d0 ENA
hello
lawrenzo_1
Super Advisor

Re: vxvm question

can you tell me the output from the vxprint command if I can increase /var as I have read info that if it is a gen type then it is ok?

Thanks
hello
Geoff Wild
Honored Contributor
Solution

Re: vxvm question

If you have Online JFS, then you should be able to with the vxresize or vxassist command...

vxassist maxgrow volume-name

That shows how much the volume can be grown by...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
lawrenzo_1
Super Advisor

Re: vxvm question

Thanks Geoff.
hello
malvin drakley
Esteemed Contributor

Re: vxvm question

Hi Lawrenzo,
one way to do this is to reboot into single user mode, i.e. interact with boot and type hpux -is.

then you can type "vgchange -a y /dev/vg00"

/var is normally lvol8 by default but in case you have changed it to something else check first.
then type "lvextend -L 2048 /dev/vg00/lvol8"
and this will say increase var to 2gb in size.

then type "extendfs -F vxfs /dev/vg00/rlvol8"

after this you can then type "init 3" to bring your system up to multi-user mode. I have done this on my L2000 twice in the last week in order to update /var and /usr in order to put a quality pack on and it worked well for me

hope this helps

malvin
Not me Chief, I'm Radar
Ted Buis
Honored Contributor

Re: vxvm question

If you have OnLineJFS you should also be able to do it from 'sam'.
Mom 6
Zinky
Honored Contributor

Re: vxvm question

If you've Full VxFS (aka OnlineJFS - essentially a Veritas prodict as well) - then the exact syntax for sizing a VOLUME with a Filesystem on it is:

/etc/vx/bin/vxresize -g rootdg var +2g


Am not sure though if such works with encapsulated disks and volumes but it is worth a try... Let us know.
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Spike Burkhardt
Frequent Advisor

Re: vxvm question

Lawrenzo,

I don't have any significant vxvm experience on HPUX, but on Solaris Veritas said in the past not to do this since the underlining partitions on an excapsulated root couldn't be changed. I don't know if this is true or not any longer since we don't have /var as it's own filesystem. In fact with the larger disks these days, we only have a / file system with /opt, /usr, /var included. I'm a big proponent of this kind of structure. OK, I'll get off my soapbox now :-)
Hope this helps.

spike

Hey, I've got three teenage boys!
lawrenzo_1
Super Advisor

Re: vxvm question

we have removed some binary files which were being used by cisco to another file system.
hello