Forum Discussion

senthilsam's avatar
senthilsam
Level 3
13 years ago

vxresize - instead of ufs, I have given vxfs

Dear all, I have the resize the FS in that I made a mistake. The below are the commmands I have executed fstyp /dev/vx/dsk/ua1195dg/duo1290p-oradata-fs ufs vxresize -g ua1195dg -F vxfs -x du...
  • TonyGriffiths's avatar
    13 years ago

    Hi

    Not seen that done before, but it appears to have actually used the UFS grow operation, even though you used the vxfs switch. I ran a trivial similar test and it also appears to have grown the FS. I also ran a truss to look for the the mkfs commands(notice its using ufs paths):

    boo# vxassist -g testdg make tony1 100m
    boo# newfs /dev/vx/rdsk/testdg/tony1
    boo# mount -Fufs /dev/vx/dsk/testdg/tony1 /tony1
    boo# df -k /tony1
    Filesystem            kbytes    used   avail capacity  Mounted on
    /dev/vx/dsk/testdg/tony1
                           95551    1041   84955     2%    /tony1

    boo# truss -failed -o /tmp/truss vxresize -g testdg -Fvxfs -x tony1 +100m
    boo# df -k /tony1
    Filesystem            kbytes    used   avail capacity  Mounted on
    /dev/vx/dsk/testdg/tony1
                          192095    1041  181499     1%    /tony1

    boo# grep mkfs /tmp/truss
    26310/1:          /usr/lib/fs/ufs/mkfs -M "/tony1" "/dev/vx/rdsk/testdg/tony1" "409600" 2>&1
    26312/1:         0.8867 execve("/usr/lib/fs/ufs/mkfs", 0x0003A7B4, 0x0003A7D0)  argc = 5
    26312/1:         argv: /usr/lib/fs/ufs/mkfs -M /tony1 /dev/vx/rdsk/testdg/tony1
    26312/1:         0.8880 resolvepath("/usr/lib/fs/ufs/mkfs", "/usr/lib/fs/ufs/mkfs", 1023) = 20
    26312/1:         0.8881 stat64("/usr/lib/fs/ufs/mkfs", 0xFFBFF8F0)      = 0

    As a precaution you may want to take a backup of the file system