Im hlding a DAS (d4-320 terramaster) connected to my proxmox server, Im trying to do the umount over the disks but i cant. Im trying to build a shutdown routine in case im facing a power outage.
hope someone can lend me a hand with this:
this is the lsblk output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 2G 0 part
└─sda2 8:2 0 3.6T 0 part
sdb 8:16 0 3.6T 0 disk
├─sdb1 8:17 0 2G 0 part
└─sdb2 8:18 0 3.6T 0 part
sdc 8:32 0 3.6T 0 disk
├─sdc1 8:33 0 2G 0 part
└─sdc2 8:34 0 3.6T 0 part
sdd 8:48 0 3.6T 0 disk
├─sdd1 8:49 0 2G 0 part
└─sdd2 8:50 0 3.6T 0 part
currently the only way that ive been able to do this is like this:
eject sd{a,b,c,d}
echo 1 > $(realpath /sys/block/sd{a,b,c,d}/../../../../remove.
So im not sure if thats the correct way, or If I need to umount the disk
sample:
some ideas?
hope someone can lend me a hand with this:
this is the lsblk output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 2G 0 part
└─sda2 8:2 0 3.6T 0 part
sdb 8:16 0 3.6T 0 disk
├─sdb1 8:17 0 2G 0 part
└─sdb2 8:18 0 3.6T 0 part
sdc 8:32 0 3.6T 0 disk
├─sdc1 8:33 0 2G 0 part
└─sdc2 8:34 0 3.6T 0 part
sdd 8:48 0 3.6T 0 disk
├─sdd1 8:49 0 2G 0 part
└─sdd2 8:50 0 3.6T 0 part
currently the only way that ive been able to do this is like this:
eject sd{a,b,c,d}
echo 1 > $(realpath /sys/block/sd{a,b,c,d}/../../../../remove.
So im not sure if thats the correct way, or If I need to umount the disk
sample:
umount /dev/sda
umount: /dev/sda: not mounted
some ideas?