aki0000 / k8s-myplayground

0 stars 0 forks source link

Instruction NFS server for PV #15

Closed aki0000 closed 3 years ago

aki0000 commented 3 years ago

Install nfs-kernel-server into debian (ras pi 3 modelB) apt -y install nfs-kernel-server

aki0000 commented 3 years ago

mount external ssd

#verify disk
sudo fdisk -l
# make partition
sudo fdisk /dev/sda
# verify disk info that configured just few min ago
Command (m for help): p

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Disk model: PX-256S2C
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbaa28e45

# create file system
sudo mkfs.ext4 /dev/sda1
# Create directory for the mount
sudo mkdir /mnt/data
# Mount
sudo mount -t ext4 /dev/sda1 /mnt/data
# Change privilege for the mount
sudo chmod 777 /mnt/data
aki0000 commented 3 years ago

facing error after perform format

Writing superblocks and filesystem accounting information: mkfs.ext4: Input/output error while writing out and closing file system

aki0000 commented 3 years ago

Could be mounted . but im not sure the reson why..... https://qiita.com/ats030/items/65c5585c5c701841525e

aki0000 commented 3 years ago

need to configure NFS.... http://kt-hiro.hatenablog.com/entry/20120218/1329549900

aki0000 commented 3 years ago

apt-get install nfs-common mount -t nfs 192.168.100.109:/mnt/nfs /mnt/data -o hard,intr

aki0000 commented 3 years ago

ras01, ras02, ras03 done