Δημοσιεύτηκε: 01 Μαρ 2012, 17:46
Τώρα πρόλαβα για λίγο να ασχολήθω, τα αποτελέσματα απο τις εντολές είναι πιο κάτω....
Μπορεί να τα έχω κάνει και σαλάτα!!!!
- Κώδικας: Επιλογή όλων
forest@ubuntu:~$ sudo mdadm --detail /dev/md0
[sudo] password for forest:
/dev/md0:
Version : 0.90
Creation Time : Tue Feb 7 11:35:23 2012
Raid Level : raid1
Array Size : 131456 (128.40 MiB 134.61 MB)
Used Dev Size : 131456 (128.40 MiB 134.61 MB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Thu Mar 1 11:56:16 2012
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
UUID : 64c2f414:7bb5a157:26801ccb:4101dc12
Events : 0.5603
Number Major Minor RaidDevice State
0 8 65 0 active sync /dev/sde1
1 8 17 1 active sync /dev/sdb1
2 8 49 2 active sync /dev/sdd1
3 8 33 3 active sync /dev/sdc1
forest@ubuntu:~$ fdisk -l
forest@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f24d5
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 487352319 243675136 83 Linux
/dev/sda2 487354366 488396799 521217 5 Extended
/dev/sda5 487354368 488396799 521216 82 Linux swap / Solaris
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
16 heads, 63 sectors/track, 969021 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x99531b36
Device Boot Start End Blocks Id System
/dev/sdb1 1 263087 131543+ 83 Linux
/dev/sdb2 263088 526175 131544 82 Linux swap / Solaris
/dev/sdb3 526176 976771055 488122440 89 Unknown
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
16 heads, 63 sectors/track, 969021 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x088d206c
Device Boot Start End Blocks Id System
/dev/sdc1 1 263087 131543+ 83 Linux
/dev/sdc2 263088 526175 131544 82 Linux swap / Solaris
/dev/sdc3 526176 976771055 488122440 89 Unknown
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
16 heads, 63 sectors/track, 969021 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xacd252da
Device Boot Start End Blocks Id System
/dev/sdd1 1 263087 131543+ 83 Linux
/dev/sdd2 263088 526175 131544 82 Linux swap / Solaris
/dev/sdd3 526176 976771055 488122440 89 Unknown
Disk /dev/md0: 134 MB, 134610944 bytes
2 heads, 4 sectors/track, 32864 cylinders, total 262912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1: 999.7 GB, 999674609664 bytes
255 heads, 63 sectors/track, 121536 cylinders, total 1952489472 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 131072 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/md1p1 1 16064 8032 77 Unknown
Partition 1 does not start on physical sector boundary.
/dev/md1p2 16065 1952489471 976236703+ 88 Linux plaintext
Partition 2 does not start on physical sector boundary.
Disk /dev/sde: 500.1 GB, 500107862016 bytes
16 heads, 63 sectors/track, 969021 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xacd252db
Device Boot Start End Blocks Id System
/dev/sde1 1 263087 131543+ 83 Linux
/dev/sde2 263088 526175 131544 82 Linux swap / Solaris
/dev/sde3 526176 976771055 488122440 89 Unknown
forest@ubuntu:~$ sudo mdadm -v --assemble --scan
[sudo] password for forest:
mdadm: looking for devices for /dev/md0
mdadm: cannot open device /dev/sde3: Device or resource busy
mdadm: /dev/sde3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sde2
mdadm: /dev/sde2 has wrong uuid.
mdadm: cannot open device /dev/sde1: Device or resource busy
mdadm: /dev/sde1 has wrong uuid.
mdadm: cannot open device /dev/sde: Device or resource busy
mdadm: /dev/sde has wrong uuid.
mdadm: no recogniseable superblock on /dev/md1p2
mdadm: /dev/md1p2 has wrong uuid.
mdadm: no recogniseable superblock on /dev/md1p1
mdadm: /dev/md1p1 has wrong uuid.
mdadm: no recogniseable superblock on /dev/md1
mdadm: /dev/md1 has wrong uuid.
mdadm: no recogniseable superblock on /dev/md0
mdadm: /dev/md0 has wrong uuid.
mdadm: cannot open device /dev/sdd3: Device or resource busy
mdadm: /dev/sdd3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sdd2
mdadm: /dev/sdd2 has wrong uuid.
mdadm: cannot open device /dev/sdd1: Device or resource busy
mdadm: /dev/sdd1 has wrong uuid.
mdadm: cannot open device /dev/sdd: Device or resource busy
mdadm: /dev/sdd has wrong uuid.
mdadm: cannot open device /dev/sdc3: Device or resource busy
mdadm: /dev/sdc3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sdc2
mdadm: /dev/sdc2 has wrong uuid.
mdadm: cannot open device /dev/sdc1: Device or resource busy
mdadm: /dev/sdc1 has wrong uuid.
mdadm: cannot open device /dev/sdc: Device or resource busy
mdadm: /dev/sdc has wrong uuid.
mdadm: cannot open device /dev/sdb3: Device or resource busy
mdadm: /dev/sdb3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sdb2
mdadm: /dev/sdb2 has wrong uuid.
mdadm: cannot open device /dev/sdb1: Device or resource busy
mdadm: /dev/sdb1 has wrong uuid.
mdadm: cannot open device /dev/sdb: Device or resource busy
mdadm: /dev/sdb has wrong uuid.
mdadm: cannot open device /dev/sda5: Device or resource busy
mdadm: /dev/sda5 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sda2
mdadm: /dev/sda2 has wrong uuid.
mdadm: cannot open device /dev/sda1: Device or resource busy
mdadm: /dev/sda1 has wrong uuid.
mdadm: cannot open device /dev/sda: Device or resource busy
mdadm: /dev/sda has wrong uuid.
mdadm: looking for devices for /dev/md1
mdadm: cannot open device /dev/sde3: Device or resource busy
mdadm: /dev/sde3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sde2
mdadm: /dev/sde2 has wrong uuid.
mdadm: cannot open device /dev/sde1: Device or resource busy
mdadm: /dev/sde1 has wrong uuid.
mdadm: cannot open device /dev/sde: Device or resource busy
mdadm: /dev/sde has wrong uuid.
mdadm: no recogniseable superblock on /dev/md1p2
mdadm: /dev/md1p2 has wrong uuid.
mdadm: no recogniseable superblock on /dev/md1p1
mdadm: /dev/md1p1 has wrong uuid.
mdadm: no recogniseable superblock on /dev/md1
mdadm: /dev/md1 has wrong uuid.
mdadm: no recogniseable superblock on /dev/md0
mdadm: /dev/md0 has wrong uuid.
mdadm: cannot open device /dev/sdd3: Device or resource busy
mdadm: /dev/sdd3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sdd2
mdadm: /dev/sdd2 has wrong uuid.
mdadm: cannot open device /dev/sdd1: Device or resource busy
mdadm: /dev/sdd1 has wrong uuid.
mdadm: cannot open device /dev/sdd: Device or resource busy
mdadm: /dev/sdd has wrong uuid.
mdadm: cannot open device /dev/sdc3: Device or resource busy
mdadm: /dev/sdc3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sdc2
mdadm: /dev/sdc2 has wrong uuid.
mdadm: cannot open device /dev/sdc1: Device or resource busy
mdadm: /dev/sdc1 has wrong uuid.
mdadm: cannot open device /dev/sdc: Device or resource busy
mdadm: /dev/sdc has wrong uuid.
mdadm: cannot open device /dev/sdb3: Device or resource busy
mdadm: /dev/sdb3 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sdb2
mdadm: /dev/sdb2 has wrong uuid.
mdadm: cannot open device /dev/sdb1: Device or resource busy
mdadm: /dev/sdb1 has wrong uuid.
mdadm: cannot open device /dev/sdb: Device or resource busy
mdadm: /dev/sdb has wrong uuid.
mdadm: cannot open device /dev/sda5: Device or resource busy
mdadm: /dev/sda5 has wrong uuid.
mdadm: no recogniseable superblock on /dev/sda2
mdadm: /dev/sda2 has wrong uuid.
mdadm: cannot open device /dev/sda1: Device or resource busy
mdadm: /dev/sda1 has wrong uuid.
mdadm: cannot open device /dev/sda: Device or resource busy
mdadm: /dev/sda has wrong uuid.
forest@ubuntu:~$ sudo mdadm -v --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Tue Feb 7 11:35:23 2012
Raid Level : raid1
Array Size : 131456 (128.40 MiB 134.61 MB)
Used Dev Size : 131456 (128.40 MiB 134.61 MB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Thu Mar 1 13:58:35 2012
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
UUID : 64c2f414:7bb5a157:26801ccb:4101dc12
Events : 0.5603
Number Major Minor RaidDevice State
0 8 65 0 active sync /dev/sde1
1 8 17 1 active sync /dev/sdb1
2 8 49 2 active sync /dev/sdd1
3 8 33 3 active sync /dev/sdc1
forest@ubuntu:~$ sudo mdadm -v --detail /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Wed Feb 29 12:12:29 2012
Raid Level : raid10
Array Size : 976244736 (931.02 GiB 999.67 GB)
Used Dev Size : 488122368 (465.51 GiB 499.84 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Thu Mar 1 16:10:41 2012
State : clean, resyncing
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : near=2
Chunk Size : 64K
Rebuild Status : 98% complete
UUID : c18fd662:b65b9c85:a8be6d65:0cb34fff
Events : 0.170
Number Major Minor RaidDevice State
0 8 19 0 active sync /dev/sdb3
1 8 35 1 active sync /dev/sdc3
2 8 51 2 active sync /dev/sdd3
3 8 67 3 active sync /dev/sde3
forest@ubuntu:~$ sudo mkdir /media/raiddisk
forest@ubuntu:~$ sudo chmod 777 /media/raiddisk
forest@ubuntu:~$ sudo mount -v /dev/md1 /media/raiddisk
mount: you didn't specify a filesystem type for /dev/md1
I will try all types mentioned in /etc/filesystems or /proc/filesystems
Trying ext3
Trying ext2
Trying ext4
Trying fuseblk
mount: you must specify the filesystem type
forest@ubuntu:~$ sudo mount -v xfs /dev/md1 /media/raiddisk
[sudo] password for forest:
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
forest@ubuntu:~$ sudo mount -t xfs /dev/md1 /media/raiddisk
mount: wrong fs type, bad option, bad superblock on /dev/md1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
forest@ubuntu:~$
Μπορεί να τα έχω κάνει και σαλάτα!!!!