This topic describes how to expand the storage for an instance of Data Science Workshop (DSW) 1.0. By default, the system provides 5 GB of storage for each DSW instance. If the storage space is exhausted or the file size is larger than 5 GB, you must expand the storage of the instance.
Step 1: Create a NAS file system
For more information about how to create a NAS file system, see Manage file systems. DSW 1.0 supports only Capacity and Performance NAS file systems. Therefore, you must choose the General Purpose instance family when you purchase NAS file systems. The NAS file system that you want to create and the DSW instance to which you want to mount the NAS file system must be deployed in the same region. For example, if you want to use a DSW instance in the China (Beijing) region, you must deploy the NAS file system in the China (Beijing) region.
Step 2: Mount a NAS file system
- Mount a NAS file system to a DSW instance when you create the DSW instance.
When you set the parameters of the DSW instance, select Storage Settings, and enter the ID of the NAS file system in the NAS File System ID field. For more information, see Manage instances.
- If you want to mount a NAS file system to a created DSW instance, you must modify
the configurations of the instance.
You must stop the instance before you modify its configurations. When you modify the DSW instance, select Storage Settings, and enter the ID of the file system in the NAS File System ID field. For more information, see Manage instances.
Step 3: Use the mounted NAS file system
- On the Notebook Models page, click Launch DSW in the Actions column.
- On the Data Science Workshop page, choose to create a Terminal file.
- Run the
dfcommand to view the path of the mounted NAS file system.
Callout Description ① The path of the mounted NAS file system. ② The path of the default NAS file system (5 GB).
- Optional:If you want to use DSW 1.0 to upload files to the mounted NAS file system, you can
create a symbolic link pointing to /nas in the /home/admin/jupyter directory.
sh-4.2$ cd /home/admin/jupyter/ sh-4.2$ ls dddd.txt graph.fnn.ipynb nihao.ipynb Sequential.ipynb Demo nihao2.ipynb number.fnn.ipynb image.png sh-4.2$ ln -s /nas/ mynas sh-4.2$ ls dddd.txt graph.fnn.ipynb nihao2.ipynb number.fnn.ipynb image.png Demo mynas nihao.ipynb Sequential.ipynb