Portál AbcLinuxu, 13. května 2025 19:47
server:~# cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sda2[0] sdb2[1] 312327616 blocks [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 240832 blocks [2/2] [UU] unused devices: none
server:~# fdisk -l Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0003422e Device Boot Start End Blocks Id System /dev/sda1 * 1 30 240943+ fd Linux raid autodetect /dev/sda2 31 38913 312327697+ fd Linux raid autodetect Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0002f147 Device Boot Start End Blocks Id System /dev/sdb1 * 1 30 240943+ fd Linux raid autodetect /dev/sdb2 31 38913 312327697+ fd Linux raid autodetect Disk /dev/md0: 246 MB, 246611968 bytes 2 heads, 4 sectors/track, 60208 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Disk /dev/md0 doesn't contain a valid partition table Disk /dev/md1: 319.8 GB, 319823478784 bytes 2 heads, 4 sectors/track, 78081904 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Disk /dev/md1 doesn't contain a valid partition table Disk /dev/dm-0: 6996 MB, 6996099072 bytes 255 heads, 63 sectors/track, 850 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table Disk /dev/dm-1: 309.9 GB, 309996814336 bytes 255 heads, 63 sectors/track, 37688 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/dm-1 doesn't contain a valid partition table Disk /dev/dm-2: 2826 MB, 2826960896 bytes 255 heads, 63 sectors/track, 343 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/dm-2 doesn't contain a valid partition table
server:~# vgdisplay --- Volume group --- VG Name LVM-sda2-sdb2 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size 297,86 GB PE Size 4,00 MB Total PE 76251 Alloc PE / Size 76251 / 297,86 GB Free PE / Size 0 / 0 VG UUID o0CrBY-gNER-XRDl-OW2n-wLL3-kurA-jAA0px
server:~# lvdisplay --- Logical volume --- LV Name /dev/LVM-sda2-sdb2/root VG Name LVM-sda2-sdb2 LV UUID Xzlzn6-cKxT-PPN0-7gyw-jWqA-sZRJ-kb9SSe LV Write Access read/write LV Status available # open 1 LV Size 6,52 GB Current LE 1668 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Name /dev/LVM-sda2-sdb2/home VG Name LVM-sda2-sdb2 LV UUID 6ymEvq-B3xX-dIj0-13a2-WpDR-0oB6-rJcLRz LV Write Access read/write LV Status available # open 1 LV Size 288,71 GB Current LE 73909 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Name /dev/LVM-sda2-sdb2/swap VG Name LVM-sda2-sdb2 LV UUID nmykvg-jgxP-3343-xIYh-FoGs-rN6G-BC8aZk LV Write Access read/write LV Status available # open 2 LV Size 2,63 GB Current LE 674 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2Za pomoc mockrat dekuju;)
sfdisk -d /dev/sda | sfdisk /dev/sdb mdadm /dev/md0 --add /dev/sdb1 mdadm /dev/md1 --add /dev/sdb2Pouzivam GRUB 1.x a MBR bych mel mit na obouch discich. Mockrat dekuju za pomoc
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.