Forum Discussion

kamalbhuttoo's avatar
12 years ago

how to delete a veritas filesystem

Hi, 

I have just created a veritas filesystem /dblog. 

 

# df -Ig
Filesystem    GB blocks      Used      Free %Used Mounted on
/dev/hd4           0.25      0.19      0.06   75% /
/dev/hd2           3.00      2.01      0.99   68% /usr
/dev/hd9var        3.00      0.31      2.69   11% /var
/dev/hd3           0.12      0.01      0.12    5% /tmp
/dev/hd1           0.12      0.00      0.12    1% /home
/dev/hd11admin      0.12      0.00      0.12    1% /admin
/proc                 -         -         -    -  /proc
/dev/hd10opt      10.00      4.79      5.21   48% /opt
/dev/livedump      0.25      0.00      0.25    1% /var/adm/ras/livedump
/dev/odm           0.00      0.00      0.00   -1% /dev/odm
/dev/vx/dsk/dbs-dg/oraclevol     14.65      0.94     13.71    7% /oracle
/dev/vx/dsk/dbs-dg/exportvol     48.83      3.13     45.70    7% /export
/dev/vx/dsk/dbs-dg/dbweb      4.88      0.32      4.56    7% /dbweb
/dev/vx/dsk/dbs-dg/dblogvol     48.83      3.13     45.70    7% /dblog
 
I want to delete this file system because the size is much bigger than the requirement. 
Anyone can help please.
 
Thanks in advance

 

  • You could shrink the filesystem using vxresize, but as it looks empty, then better to delete filesystem, so you need to delete volume:

    umount /dblog
    vxassist -g dbs-dg remove volume dblogvol

     

    Then you can recreate:
     

     

    vxassist -g dbs-dg make dblogvol 30g (30g for example)
    mkfs -Fvxfs /dev/vx/rdsk/dbs-dg/dblogvol
    mount /dev/vx/dsk/dbs-dg/dblogvol /dblog

     

     

    Mike

  • You could shrink the filesystem using vxresize, but as it looks empty, then better to delete filesystem, so you need to delete volume:

    umount /dblog
    vxassist -g dbs-dg remove volume dblogvol

     

    Then you can recreate:
     

     

    vxassist -g dbs-dg make dblogvol 30g (30g for example)
    mkfs -Fvxfs /dev/vx/rdsk/dbs-dg/dblogvol
    mount /dev/vx/dsk/dbs-dg/dblogvol /dblog

     

     

    Mike