вторник, 22 мая 2018 г.

Монтируем диск от NAS Iomega StorCenter ix2-dl


# Defines a logical volume group using the partition and harddrive associated with /dev/sda2.
# Says raid 1, that there are two drives, but its ok if only one drive is given.
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda2 missing
# Display information about volume groups defined on the system. Can find the volume group name and 
# device path as a result.
lvdisplay 
# Make the volume group active
vgchange -ay <volume group name>
mount <path to volume> <directory to mount to>

посмотреть сколько именно можно командой:
root@ws:~# vgdisplay
информацию по созданным логическим томам
root@ws:~# lvdisplay
информацию по физическим томам
root@ws:~# pvdisplay



Удаление созданного md  array


1. Find out your arrays (md0, md1, etc..) using

Code:
sudo fdisk -l
2. Query your arrays to find out what disks are contained using

Code:
sudo mdadm --detail /dev/md0
 (or md1 or whatever)
3. Shut down the array using

Code:
sudo mdadm --stop /dev/md0

Комментариев нет:

Отправить комментарий