#bdf /test1

bdf: /test1: I/O error

VxVM Example: Increasing Volume and File System Sizes

In the following sessions, the VxFS file system size is 66040 Kbytes, created on a 65-Mbyte (66560 Kbyte) VxVM volume (520 Kbytes is used for the EMD). The user increases the size of the VxVM volume to 112 Mbytes and wants to increase the corresponding file system size.

Correct

The user increases the VxVM volume size to 112 Mbytes (114688 Kbytes). When calculating the number of Kbytes available for the file system, the user reserves 1 Mbyte for the EVFS EMD: (112 –1) * 1024 = 113664 Kbytes. The existing file system size is 66040 Kbytes, so the user increases the file system size by 47624 Kbytes (113664 – 66040 = 47624).

#vxprint -g rootdg vol05

TY

NAME

ASSOC

KSTATE

LENGTH

PLOFFS

STATE

TUTIL0

PUTIL0

v

vol05

fsgen

ENABLED

66560

-

ACTIVE

-

-

pl

vol05-01

vol05

ENABLED

66560

-

ACTIVE

-

-

sd

c3t0d0-01

vol05-01

ENABLED

66560

0

-

-

-

#bdf /test5

Filesystem

kbytes

used

avail

%used Mounted on

/dev/evfs/vx/dsk/rootdgelvol05

 

 

 

 

66040

1133

60858

2% /test5

#umount /test5

#vxassist -g rootdg growto vol05 112m

#vxprint -g rootdg vol05

TY

NAME

ASSOC

KSTATE

LENGTH

PLOFFS

STATE

TUTIL0

PUTIL0

v

vol05

fsgen

ENABLED

114688

-

ACTIVE

-

-

pl

vol05-01

vol05

ENABLED

114688

-

ACTIVE

-

-

sd

c3t0d0-01

vol05-01

ENABLED

114688

0

-

-

-

#extendfs -F vxfs -s 47624 /dev/evfs/vx/dsk/rootdg/vol05

#mount -F vxfs /dev/evfs/vx/dsk/rootdg/evol05 /test5

#bdf /test5

Filesystem

kbytes

used

avail

%used Mounted on

/dev/evfs/vx/dsk/rootdg/evol05

 

 

 

 

113664

1141

105850

1% /test5

Incorrect

When calculating the number of Kbytes available for the file system, the user does not reserve space for the EVFS EMD. The VxVM is 112 Mbytes = 114688 Kbytes. The user attempts to increase the current file system size, 66040 Kbytes, by 48648 Kbytes to use all available space on the VxVM for the file system (114688 – 66040 = 48648).

#extendfs -F vxfs -s 48648 /dev/evfs/vg01/rlvol5

#vxfs extendfs: New size (114688 blocks) beyond device capacity (114168 blocks).

VxVM Example: Reducing Volume and File System Sizes

In the following sessions, the VxVM volume is 112 Mbytes and the file system size is 113664 Kbytes. The administrator wants to decrease the size of the VxVM volume to 64 Mbytes.

Correct

When calculating the number of Kbytes available for file system on a 64-Mbtye VxVM volume, the user reserves 1 Mbyte for the EMD: 64 – 1 Mbytes = 63 * 1024 = 64512 Kbytes for the file system. The user reduces the size of the file system to 64512 Kbytes, then reduces the size of the VxVM volume to 64 Mbytes.

#fsadm -F vxfs -b 64512 /test5

vxfs fsadm: /dev/evfs/vx/rdsk/rootdg/evol05 is currently 114040 sectors - size will be reduced

# vxassist -g rootdg -f shrinkto vol05 64m

Resizing EVFS Volumes and File Systems 99

Page 99
Image 99
HP UX Encrypted Volume and Filesystem (EVFS) manual VxVM Example Increasing Volume and File System Sizes