Operating System - Tru64 Unix
1748336 Members
3967 Online
108762 Solutions
New Discussion юеВ

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 5
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