Roger Searle wrote, On 10/22/2011 09:39 AM:
> Device Boot Start End Blocks Id System
> /dev/sda1 * 30159 30401 1951897+ 82 Linux swap / Solaris
> /dev/sda4 1 30158 242244073 5 Extended
> /dev/sda5 1 25294 203173992 83 Linux
> /dev/sda6 25295 30158 39070048+ 83 Linux
...
I have to admit I haven't seen a simple partition table like that for ages.
Why did you put swap first on the disk?
By contrast, here's my desktop, which is still FC13 based.
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 4098047 2048000 fd Linux raid
autodetect
/dev/sda2 4098048 490233855 243067904 fd Linux raid
autodetect
which leads to:
[~]$ cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sda2[0] sdb2[1]
243066748 blocks super 1.1 [2/2] [UU]
bitmap: 1/2 pages [4KB], 65536KB chunk
md0 : active raid1 sda1[0] sdb1[1]
2047988 blocks super 1.0 [2/2] [UU]
So /boot is a raid1, the machine could use either to boot. When the OS
is up, both bits are synched.
[~]$ sudo pvdisplay
--- Physical volume ---
PV Name /dev/md5
VG Name vg_0
PV Size 231.81 GiB / not usable 25.87 MiB
Allocatable yes (but full)
PE Size 32.00 MiB
Total PE 7417
Free PE 4260
Allocated PE 3157
PV UUID m5RtvB-3BQj-P7Rg-I5qA-BRH0-nARY-xzYuh3
md5 is a raid1 also, which is a physical space for LVM
[~]$ sudo lvdisplay
--- Logical volume ---
LV Name /dev/vg_0/root
VG Name vg_0
LV UUID XrjNoQ-ycDQ-Npph-SKAS-Bs52-tWli-SCIOy2
LV Write Access read/write
LV Status available
# open 1
LV Size 97.66 GiB
Current LE 3125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg_0/swap
VG Name vg_0
LV UUID g06aAs-2N6H-d1CW-fr1X-6DSI-FSmh-kJmc03
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GiB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
Inside the PV there are two LVs and some spare space, so I can expand
either partiiton or make a new one as I see fit.
So here's the mount table
[cfalconer@ttt07 ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_0-root
100791728 15221400 80450328 16% /
/dev/md0 2015812 129332 1784084 7% /boot
junk:/rsync/iso 1465058560 1274893824 190164736 88% /mnt/iso
//bruce/shared 262244212 207756388 54487824 80% /mnt/shared
/dev/sdc1 7955256 5679460 2275796 72% /media/Camshot
I've done similar for a mythbox for a coworker.... sda 160 GB + sdb 1TB
md0 first 500 MB of each disk raid1 for /boot
md5 Rest of sda plus 159 GB from middle of sdb as a PV for LVM
/mythdata 700GB as sdb3
Any questions?
--
Craig Falconer
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users