Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

veritas volume manager question

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
below is the output from vxprint -Aht for my rootdg:-

vxprint -Aht
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 1107170155.1025.lonadm2

dm rootdisk c1t0d0s2 sliced 10175 143339136 -
dm rootmir c1t5d0s2 sliced 10175 143339136 -

v opt - ENABLED ACTIVE 8191680 ROUND - fsgen
pl opt-01 opt ENABLED ACTIVE 8191680 CONCAT - RW
sd rootdisk-03 opt-01 rootdisk 104426112 8191680 0 c1t0d0 ENA
pl opt-02 opt ENABLED ACTIVE 8191680 CONCAT - RW
sd rootmir-01 opt-02 rootmir 0 8191680 0 c1t5d0 ENA

v rootvol - ENABLED ACTIVE 14337984 ROUND - root
pl rootvol-01 rootvol ENABLED ACTIVE 14337984 CONCAT - RW
sd rootdisk-02 rootvol-01 rootdisk 129001152 14337984 0 c1t0d0 ENA
pl rootvol-02 rootvol ENABLED ACTIVE 14337984 CONCAT - RW
sd rootmir-02 rootvol-02 rootmir 8191680 14337984 0 c1t5d0 ENA

v swapvol - ENABLED ACTIVE 6329472 ROUND - swap
pl swapvol-01 swapvol ENABLED ACTIVE 6329472 CONCAT - RW
sd rootdisk-01 swapvol-01 rootdisk 10176 6329472 0 c1t0d0 ENA
pl swapvol-02 swapvol ENABLED ACTIVE 6329472 CONCAT - RW
sd rootmir-03 swapvol-02 rootmir 22529664 6329472 0 c1t5d0 ENA

v usr - ENABLED ACTIVE 8191680 ROUND - fsgen
pl usr-01 usr ENABLED ACTIVE 8191680 CONCAT - RW
sd rootdisk-05 usr-01 rootdisk 120809472 8191680 0 c1t0d0 ENA
pl usr-02 usr ENABLED ACTIVE 8191680 CONCAT - RW
sd rootmir-04 usr-02 rootmir 28859136 8191680 0 c1t5d0 ENA

v var - ENABLED ACTIVE 8191680 ROUND - fsgen
pl var-01 var ENABLED ACTIVE 8191680 CONCAT - RW
sd rootdisk-04 var-01 rootdisk 112617792 8191680 0 c1t0d0 ENA
pl var-02 var ENABLED ACTIVE 8191680 CONCAT - RW
sd rootmir-05 var-02 rootmir 37050816 8191680 0 c1t5d0 ENA

So when I run the following command how come its picking up two ROOTDISK entries when I believe there should be just the one?

vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
rootdg rootdisk c1t0d0s2 c1t0d0 0 10176 -
rootdg rootdisk c1t0d0s2 c1t0d0 6339648 98086464 -
rootdg rootmir c1t5d0s2 c1t5d0 45242496 98096640 -
 
There are two 'chunks' of free space on your root disk. Each chunk is listed separately.

Annihilannic.
 
cheers for the quick reply!

what I was thinking about doing was increasing the size of the usr volume and from the vxdg output for rootdisk I believe I have 46GB of free disk space. So I tried the following syntax to increase the size:-

/etc/vx/bin/vxresize -F ufs -g rootdg usr 14000m rootdisk

I put rootdisk at the end as I did not want to end up using rootmir as this is for the mirror of rootdisk. This ran for about 10 mins before failing with the following error message:-

vxvm:vxresize: ERROR: Problem running mkfs command for volume usr, in diskgroup rootdg failed to disable logging

So to be able to do this do I need to remove the mirror for volume usr before I run the vxresize command?
 
You should NOT resize any filesystems on your root disk unless you're 100% sure you know what you're doing. The only circumstances where you can do so safely are if there is free space immediately after the slice you wish to increase (i.e. contiguous) otherwise if you ever have to boot your system without Volume Manager (e.g. disaster recovery, or during a Volume Manager upgrade) it will not boot because the filesystem will be split up into multiple chunks on the disk.

If you do decide you want to go ahead anyway and can rearrange stuff so that the free space is immediately after the /usr partition, make sure you update the partition tables on the disks to reflect the new locations using the vxmksdpart utility.

I'm not sure about the error related to logging... is the /usr/ filesystem mounted with or without the logging option (check mount -v)?

Annihilannic.
 
By the way, you do not need to specify rootdisk at the end of the command. Volume Manager already knows that the usr volume is mirrored between rootdisk and rootmir, so when you ask it to increase it will use space on both of them.

Annihilannic.
 
I just checked mount -v and yes i have logging enabled!

after reading your reply I have decided not too increase the space on the /usr!

cheers for the quick responses!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top