Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete a disk

leyearn
Regular Advisor

how to delete a disk

platform: AS8200 os:digital Unix4.0D
I created a fileSystem
#mkfdmn /dev/rz11c data_domain
#mkfset data_domain data_fset
#mount data_domain#data_fset /data
but now I want to remove the rz11 disk
what I should Do before or after removing the rz11 disk ?
thanks
5 REPLIES
Venkatesh BL
Honored Contributor

Re: how to delete a disk

I am not sure if 'addvol' (requires license) was available on 4.0. If it is, you could use it to add a new volume (disk) to the domain and then remove this disk using 'rmvol'.

If not, you could create an identical domain using a new disk, create filesets, mount it and then copy the files over to the new domain and then remove the old domain using 'rmfdmn' command.
leyearn
Regular Advisor

Re: how to delete a disk

can i do as following:
#rmfset -f data_domain data_fset
#rmfdmn -f data_domian

?

Ivan Ferreira
Honored Contributor

Re: how to delete a disk

To remove the disk, you must run:

fuser -k /data (To stop the process using the filesystem)

umount /data

rmfset -f data_domain data_fset
rmfdmn -f data_domain

Then remove the block and character device special files.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Venkatesh BL
Honored Contributor

Re: how to delete a disk

rmfdmn should take care of removing all the filesets within the domain.
Michael Schulte zur Sur
Honored Contributor

Re: how to delete a disk

Hi,

what do you want to do with the disk?
Reuse in the machine for some other domain or replace it with a different disk?

greetings,

Michael