1. A method for managing mapping in a network, comprising: programming in advance mapping relationships between a Virtual Storage Area Network (VSAN) and a Virtual Local Area Network (VLAN) of a fabric for each Fiber Channel over Ethernet (FCoE) switch needed by the fabric; obtaining, by a server, mapping relationships between VLANs and VLANs configured in all FCoE switches of the fabric; determining, by the server, that the obtained mapping relationships are inconsistent with the programmed-in-advance mapping relationships and at least one of: automatically updating the mapping relationships between the VLANs and the VLANs configured in the FCoE switches corresponding to the inconsistent mapping relationships, and automatically updating the mapping relationships between the VLANs and the VLANs programmed in advance for the FCoE switches corresponding to the inconsistent mapping relationships, so that the mapping relationships between the VLANs and the VLANs configured in each FCoE switch of the fabric are consistent with the mapping relationships between the VLANs and the VLANs programmed in advance for each FCoE switch of the fabric, wherein the inconsistent mapping relationships comprise a failed-to-be-obtained mapping relationship between the VSAN and the VLAN programmed in advance for one of the FCoE switches.