- *** Do this on UGB (NSF) ***
- 0. stop samba and NFS
- 1. rsync data to uga (nsb)
- root@nsf:~$ rsync -avh --progress --delete /export/ug/ root@nsb:/export/ugb/
- 2. umount /export/ug umount /export/ug1
- 3. recreate vdisks
- x) PATH=$PATH:/opt/dell/srvadmin/bin
- a) check controller's disks
- omreport storage pdisk controller=0 | grep -E '^(ID|Status|Capacity|Sector Size|Bus|Power|Media)'
- b) delete old vdisk
- omreport storage vdisk controller=0 | grep -E '^(ID|Name)'
- omconfig storage vdisk action=deletevdisk controller=0 vdisk=six
- b) create disks
- omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:6 writepolicy=fwb name=disk06
- root@nsf:/$ omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:2 writepolicy=fwb name=disk01
- Command successful!
- root@nsf:/$ omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:3 writepolicy=fwb name=disk02
- Command successful!
- root@nsf:/$ omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:4 writepolicy=fwb name=disk03
- Command successful!
- root@nsf:/$ omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:5 writepolicy=fwb name=disk04
- Command successful!
- root@nsf:/$ omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:6 writepolicy=fwb name=disk05
- Command successful!
- root@nsf:/$ omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:1:7 writepolicy=fwb name=disk06
- Command successful!
- fdisk each disk,
- u
- 2048 start
- sdc sdd
- sde sdf
- sdg sdh
- 4. create zfs pool. 3x mirrors
- zpool create -f ugb mirror /dev/disk/by-id... ... mirror ... ... mirror ... ...
- `zpool status` should look like:
- uga ONLINE 0 0 0
- mirror-0 ONLINE 0 0 0
- scsi-36848f690ec946a001f4604200a61a9c4-part1 ONLINE 0 0 0
- scsi-36848f690ec946a001f46042f0b49a2bb-part1 ONLINE 0 0 0
- mirror-1 ONLINE 0 0 0
- scsi-36848f690ec946a001f4604460ca4d664-part1 ONLINE 0 0 0
- scsi-36848f690ec946a001f46043c0c144593-part1 ONLINE 0 0 0
- mirror-2 ONLINE 0 0 0
- scsi-36848f690ec946a001f4604520d5ff888-part1 ONLINE 0 0 0
- scsi-36848f690ec946a001f46045c0df837ce-part1 ONLINE 0 0 0
- 5. create the pool with the compress option
- zfs create -o compress=lz4 ugb/ugb
- zfs set mountpoint=/export ugb
- zfs set compression=lz4 ugb
- zfs set exec=off ugb
- 5. zfs import from uga(nsb) to ugb(nfs)
- uga (nsb)# zfs snapshot -r uga/ugb@transfer
- uga (nsb)# zfs send -R uga/ugb@transfer | ssh ugb (nsf) "zfs recv -vFd ugb"
- rename ugb/ugb to ugb/ug
- enable sharenfs, otherwise nested mounts don't work (WTF?)
- zfs set sharenfs=on ugb
- 6. Ensure zfs gets mounted properly on reboot