Operating System - Linux
1751877 Members
5206 Online
108782 Solutions
New Discussion юеВ

Re: Removing LUNs from filesystem

 

Removing LUNs from filesystem

How do I remove iSCSI luns from the Filesystem? Any help would be appreciated.

Thanks,
Alex
5 REPLIES 5

Re: Removing LUNs from filesystem

Besides removing the mount points from fstab, what other steps would I need to take. I want to reuse the mount points to mount a NFS volumes to.
Ivan Ferreira
Honored Contributor

Re: Removing LUNs from filesystem

>>> Besides removing the mount points from fstab, what other steps would I need to take. I want to reuse the mount points to mount a NFS volumes to.

It depends, after removing from /etc/fstab, umount each file system using:

umount /mount_point

To be able to umount it, you must stop all process accessing that mount point, or you will get "device or resource busy". A reboot is the sudden and easy way.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
westb
Advisor

Re: Removing LUNs from filesystem

after you unmount the filesystem just issue the iscsiadm command with the --logout parameter.

This will remove the device in /dev

Something similar to this...
iscsiadm --mode node --targetname iqn.1984-01.com.something:group-0:222:targetname --portal 192.168.10.2:3260 --logout
skt_skt
Honored Contributor

Re: Removing LUNs from filesystem

what is the linux version? is that FS part of any VG?

Re: Removing LUNs from filesystem

thanks for the help