How to Change IP Address of NFS Storage on XenServer

How to Change IP Address of NFS Storage on XenServer

book

Article ID: CTX557707

calendar_today

Updated On:

Description

This article is designed to explain how to change ip address of NFS storage on XenServer.


Instructions

Disclaimer:  information displayed in screenshots are Citrix test server data.
  • Get currently used NFS SR/pbd uuid and mount point
[root@CH82-30 ~]# xe sr-list name-label=NFS\ virtual\ disk\ storage
uuid ( RO)                : 40bde6d8-65da-d388-5fd9-725e6007cf40
          name-label ( RW): NFS virtual disk storage
    name-description ( RW): NFS SR [192.168.172.2:/mnt/LabStaging/nfs]
                host ( RO): <shared>
                type ( RO): nfs
        content-type ( RO):
[root@CH82-30 ~]# xe pbd-list sr-uuid=40bde6d8-65da-d388-5fd9-725e6007cf40
uuid ( RO)                  : b752adf9-7516-5f46-db73-040842221544
             host-uuid ( RO): e4e9d9f3-7d61-4554-bf53-665661843f04
               sr-uuid ( RO): 40bde6d8-65da-d388-5fd9-725e6007cf40
         device-config (MRO): serverpath: /mnt/LabStaging/nfs; server: 192.168.172.2; options:
    currently-attached ( RO): true
  • Destroy existing pbd
[root@CH82-30 ~]# xe pbd-unplug uuid=b752adf9-7516-5f46-db73-040842221544
[root@CH82-30 ~]# xe pbd-destroy uuid=b752adf9-7516-5f46-db73-040842221544
  • Create new pbd based on new NFS IP and new mount point, but SR uuid still use previous old one
[root@CH82-30 ~]# xe pbd-create device-config:server=192.168.172.99 device-config:serverpath=/mnt/LabStaging/test sr-uuid=40bde6d8-65da-d388-5fd9-725e6007cf40 host-uuid=e4e9d9f3-7d61-4554-bf53-665661843f04
2d2a2755-28cb-851d-999f-4453728cec1c
[root@CH82-30 ~]# xe pbd-plug uuid=2d2a2755-28cb-851d-999f-4453728cec1c
[root@CH82-30 ~]# xe pbd-list sr-uuid=40bde6d8-65da-d388-5fd9-725e6007cf40 params=all
uuid ( RO)                  : 2d2a2755-28cb-851d-999f-4453728cec1c
     host ( RO) [DEPRECATED]: e4e9d9f3-7d61-4554-bf53-665661843f04
             host-uuid ( RO): e4e9d9f3-7d61-4554-bf53-665661843f04
       host-name-label ( RO): CH82-30
               sr-uuid ( RO): 40bde6d8-65da-d388-5fd9-725e6007cf40
         sr-name-label ( RO): NFS virtual disk storage
         device-config (MRO): serverpath: /mnt/LabStaging/test; server: 192.168.172.99
    currently-attached ( RO): true
          other-config (MRW): storage_driver_domain: OpaqueRef:129a5d3d-7e50-40ed-bd7f-229bf44504e2