1833653 Members
3722 Online
110062 Solutions
New Discussion

umounting missing disks

 
SOLVED
Go to solution
Michael Brennan_5
New Member

umounting missing disks

We reciently migrated one of our servers storage from a XP256 to an EMC DMX200. The migration was completed sucessfully.

After the migration we kept everything mounted,for example the new file systems were /u01 and the old ones were /u01_old. Not telling the system admistrators (me for this particular system) the data center manager pulled the XP256 from the datacenter.

So now on several systems we have filesystems mounted that don't actually point to anything. I can't do a umount, bdf or ls -alt.

How do I get rid of these mounts, remove the entries in the /etc/mnttab?
2 REPLIES 2
Alzhy
Honored Contributor

Re: umounting missing disks

If you are running VxFS 3.5 (JFS 3.5) - either the online version or not, then you should be able to forcibly unmount the filesystems (/sbin/fs/vxfs3.5/vxumount -o force /mntpnt). Then simply remove /etc/fstab entries and wait for an opportune time to reboot so you can clean the VG's (if you aer using LVM) or the DG's if not..

However, if you do not have VxFS 3.5, then no way you can unmount those stale filesystems... you will need to do a forced shutdown and reboot (you will probably need to do a CTRL |) on its way down...

Good luck...
Hakuna Matata.
Todd McDaniel_1
Honored Contributor
Solution

Re: umounting missing disks

If you are quick on the command line or can write a quick script:

rm /etc/mnttab
umount /file/system


It will give you 4-5 seconds before it tries to remount it.

Then mv /etc/lvmtab and vgscan to get them out of the system.

And rmsf from the /dev/dsk and /dev/rdsk
Unix, the other white meat.