Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

how to delete a veritas filesystem

Created: 16 May 2013 • Updated: 16 May 2013 | 2 comments
This issue has been solved. See solution.

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
Operating Systems:

Comments 2 CommentsJump to latest comment

mikebounds's picture

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

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION