This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
acelab:nfs_configuration [2018/07/27 19:14] smasoka created |
acelab:nfs_configuration [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | On the Host servers [nfs01 and nfs02] | + | **On the Host servers [nfs01 and nfs02]** |
| Device Mapper Multipathing Devices (DMMP) | Device Mapper Multipathing Devices (DMMP) | ||
| - | * Scan for virtual disks | + | |
| - | * Display the multipath device topology | + | - Scan for virtual disks \\ |
| - | * Create a partition on a multipath device node | + | - Display the multipath device topology |
| - | * Add a partition to Device Mapper(DM) | + | - Create a partition on a multipath device node \\ |
| - | * Crate a file systems on a Device Mapper partition | + | - Add a partition to Device Mapper(DM) |
| - | * Mount a Device mapper partition | + | - Crate a file systems on a Device Mapper partition |
| + | - Mount a Device mapper partition | ||
| 1. Install all packages that are needed | 1. Install all packages that are needed | ||
| + | < | ||
| [root@nfs02 ~]# yum install device-mapper device-mapper-devel device-mapper-multipath kpartx | [root@nfs02 ~]# yum install device-mapper device-mapper-devel device-mapper-multipath kpartx | ||
| [root@nfs02 ~]# yum install sg3_utils sg3_utils-devel | [root@nfs02 ~]# yum install sg3_utils sg3_utils-devel | ||
| + | </ | ||
| 2. Start multipath service | 2. Start multipath service | ||
| + | < | ||
| [root@nfs02 ~]# service multipathd start | [root@nfs02 ~]# service multipathd start | ||
| Starting multipathd daemon: | Starting multipathd daemon: | ||
| [root@nfs02 ~]# chkconfig multipathd on | [root@nfs02 ~]# chkconfig multipathd on | ||
| [root@nfs02 ~]# | [root@nfs02 ~]# | ||
| + | </ | ||
| 3. Scan for devices and partitions | 3. Scan for devices and partitions | ||
| + | < | ||
| [root@nfs02 ~]# rescan-scsi-bus.sh | [root@nfs02 ~]# rescan-scsi-bus.sh | ||
| Scanning SCSI subsystem for new devices | Scanning SCSI subsystem for new devices | ||
| Line 93: | Line 99: | ||
| 0 device(s) removed. | 0 device(s) removed. | ||
| [root@nfs02 ~]# | [root@nfs02 ~]# | ||
| + | </ | ||
| 4. Display device mappings | 4. Display device mappings | ||
| + | < | ||
| [root@nfs02 ~]# multipath -ll | [root@nfs02 ~]# multipath -ll | ||
| mpathe (3600a098000b6278f00000240599ffeea) dm-3 DELL,MD34xx | mpathe (3600a098000b6278f00000240599ffeea) dm-3 DELL,MD34xx | ||
| Line 122: | Line 129: | ||
| `-+- policy=' | `-+- policy=' | ||
| `- 11:0:1:1 sdg 8:96 active ready running | `- 11:0:1:1 sdg 8:96 active ready running | ||
| + | </ | ||
| 5. Grab the image of nfs02and reboot nfs01 just to check if all is well. | 5. Grab the image of nfs02and reboot nfs01 just to check if all is well. | ||
| + | < | ||
| [root@nfs01 ~]# multipath -ll | [root@nfs01 ~]# multipath -ll | ||
| mpathe (3600a098000b6278f00000240599ffeea) dm-3 DELL,MD34xx | mpathe (3600a098000b6278f00000240599ffeea) dm-3 DELL,MD34xx | ||
| Line 151: | Line 159: | ||
| `- 11:0:1:1 sdg 8:96 active ready running | `- 11:0:1:1 sdg 8:96 active ready running | ||
| [root@nfs01 ~]# | [root@nfs01 ~]# | ||
| + | </ | ||
| 6. Storage Array Virtual Disks - Using Dell Storage Manager | 6. Storage Array Virtual Disks - Using Dell Storage Manager | ||
| + | < | ||
| Disk / | Disk / | ||
| Disk / | Disk / | ||
| Disk / | Disk / | ||
| Disk / | Disk / | ||
| + | </ | ||
| + | |||
| 7. Install " | 7. Install " | ||
| + | < | ||
| [root@nfs01 ~]# yum install parted parted-devel | [root@nfs01 ~]# yum install parted parted-devel | ||
| + | </ | ||
| 8. Create partitions | 8. Create partitions | ||
| + | < | ||
| [root@nfs01 ~]# parted / | [root@nfs01 ~]# parted / | ||
| GNU Parted 2.1 | GNU Parted 2.1 | ||
| Line 181: | Line 196: | ||
| [root@nfs01 ~]# | [root@nfs01 ~]# | ||
| + | </ | ||
| + | |||
| 9. Create a XFS File system from the partition | 9. Create a XFS File system from the partition | ||
| + | < | ||
| [root@nfs01 ~]# mkfs.xfs -L APPS / | [root@nfs01 ~]# mkfs.xfs -L APPS / | ||
| meta-data=/ | meta-data=/ | ||
| Line 193: | Line 211: | ||
| realtime =none | realtime =none | ||
| [root@nfs01 ~]# | [root@nfs01 ~]# | ||
| + | </ | ||
| 10. Crate partitions and file system for all virtual disks [PBS_SHARED, | 10. Crate partitions and file system for all virtual disks [PBS_SHARED, | ||
| + | |||
| 11. Mount on /etc/fstab using LABELS - this is just for testing | 11. Mount on /etc/fstab using LABELS - this is just for testing | ||
| + | < | ||
| [root@nfs01 ~]# cat /etc/fstab |grep LABEL | [root@nfs01 ~]# cat /etc/fstab |grep LABEL | ||
| LABEL=APPS | LABEL=APPS | ||
| Line 217: | Line 238: | ||
| / | / | ||
| [root@nfs01 ~]# | [root@nfs01 ~]# | ||
| + | </ | ||
| 12. Add mount points to fsmounts on device nfs01 using bright | 12. Add mount points to fsmounts on device nfs01 using bright | ||
| + | < | ||
| [bright1-> | [bright1-> | ||
| [bright1-> | [bright1-> | ||
| Line 253: | Line 276: | ||
| / | / | ||
| [bright1-> | [bright1-> | ||
| + | </ | ||
| 13. The above step does the following (as soon as you commit | 13. The above step does the following (as soon as you commit | ||
| + | < | ||
| [root@nfs01 ~]# df -h|grep path | [root@nfs01 ~]# df -h|grep path | ||
| / | / | ||
| Line 266: | Line 291: | ||
| / | / | ||
| [root@nfs01 ~]# | [root@nfs01 ~]# | ||
| + | </ | ||
| 14. Set up nfsexports through bright | 14. Set up nfsexports through bright | ||
| + | < | ||
| [bright1-> | [bright1-> | ||
| [bright1-> | [bright1-> | ||
| Line 299: | Line 326: | ||
| [root@nfs01 ~]# | [root@nfs01 ~]# | ||
| + | </ | ||
| 15. Mount the fsmounts point [on all node categories] | 15. Mount the fsmounts point [on all node categories] | ||
| + | < | ||
| [bright1-> | [bright1-> | ||
| [bright1-> | [bright1-> | ||
| Line 308: | Line 335: | ||
| [bright1-> | [bright1-> | ||
| [bright1-> | [bright1-> | ||
| + | </ | ||