problem in RAID1 + lvm in ubuntu 8.04...
Lalatendu Das
lalatdas at gmail.com
Mon Dec 8 09:16:11 UTC 2008
I think the output of fdisk -l, df -h, and vgdisplay might help us
make sure we understand what you did....
I would like to jot down series of command to configure this and eventually
other statistical information below it.
As I have already mentioned my hardware details I three disks detected as
/dev/sda(OS is installed here)= 16GB, /dev/sdb(sdb1 = 45GB sdb2=28GB),
dev/sdc(sdc1=45GB, sdc2=27GB)
So intially I created RAID 1 using /dev/sdb1 and /dev/sdc1 as follows
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 missing
Then I added the /dev/sdc1 as mirror to the RAID array as follows
mdadm --manage --add /dev/md0 /dev/sdc1
Then everything went successful and I could able to see /dev/md0 created.
Then configured LVM as follows
I took the RAID array, 2nd partition of 2nd disk 28GB and 2nd partition of
3rd disk(28GB).
pvcreate /dev/md0 /dev/sdb2 /dev/sdc2
Then created volume group as follows
vgcreate UnicornData /dev/md0 /dev/sdb2 /dev/sdc2
Then created logical volumes wih desired names as follows
lvcreate --name home --size 25GB UnicornData
I have created many logical volumes like that. Then to test one of the
logical volume a filesystem ids created one of them as follows
mkfs.ext3 -m 0 -T largefile /dev/UnicornData/home
Then I have mounted the logical volume to use it and added entry in
/etc/fstab to retain the mount operation across reboots.
mkdir /ukp/home
mount /dev/mapper/UnicornData-home /ukp/home
Entry in /etc/fstab is "/dev/mapper/UnicornData-home /ukp/home/ ext3
rw,noatime 0 0"
Now below are the commands that I executed to check for sanity.
/* I have already copied some data from a remote box. And it shown some
error like "no space left on the device. hence the disk is filled to some
extent. But still so much space still available.
df -k /ukp/home
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/UnicornData-home
26209468 963084 25246384 4% /ukp/home
# vgdisplay
--- Volume group ---
VG Name nkalari
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 16.71 GB
PE Size 4.00 MB
Total PE 4278
Alloc PE / Size 4278 / 16.71 GB
Free PE / Size 0 / 0
VG UUID 6PLcxf-1N13-dFzq-cjNe-Xwix-h9B6-AyyuNt
--- Volume group ---
VG Name UnicornData
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 7
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 6
Open LV 1
Max PV 0
Cur PV 3
Act PV 3
VG Size 94.80 GB
PE Size 4.00 MB
Total PE 24270
Alloc PE / Size 11264 / 44.00 GB
Free PE / Size 13006 / 50.80 GB
VG UUID Sm1auF-37v0-tGQA-Evnp-abmc-M4Fs-7AFMB7
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4]
[raid10]
md0 : active raid1 sdb1[0] sdc1[1]
43945664 blocks [2/2] [UU]
unused devices: <none>
#pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name nkalari
PV Size 16.71 GB / not usable 4.10 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 4278
Free PE 0
Allocated PE 4278
PV UUID WKblRV-sivE-bVuK-SFgf-fFM3-4tRa-TJbtjM
--- Physical volume ---
PV Name /dev/md0
VG Name UnicornData
PV Size 41.91 GB / not usable 3.69 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 10728
Free PE 3560
Allocated PE 7168
PV UUID yN6Ckd-s2vT-P6eI-63RT-AHnO-sTxK-VNnmI1
--- Physical volume ---
PV Name /dev/sdb2
VG Name UnicornData
PV Size 26.45 GB / not usable 2.15 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 6771
Free PE 4467
Allocated PE 2304
PV UUID FY5OL0-oRDg-boRJ-hrIV-HKZC-UC3g-3W1A3d
--- Physical volume ---
PV Name /dev/sdc2
VG Name UnicornData
PV Size 26.45 GB / not usable 2.15 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 6771
Free PE 4979
Allocated PE 1792
PV UUID 24pH9l-hr97-id5V-UtjR-m12C-0X1e-lxaIwy
#lvdisplay
--- Logical volume ---
LV Name /dev/nkalari/root
VG Name nkalari
LV UUID K3P1Xy-iBBc-c8bp-mPae-yY7b-ARD1-U0DdTI
LV Write Access read/write
LV Status available
# open 1
LV Size 15.97 GB
Current LE 4088
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:0
--- Logical volume ---
LV Name /dev/nkalari/swap_1
VG Name nkalari
LV UUID d7Vdy6-rhsc-hq5o-W08r-tXwj-geF4-XvozIX
LV Write Access read/write
LV Status available
# open 2
LV Size 760.00 MB
Current LE 190
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:1
--- Logical volume ---
LV Name /dev/UnicornData/Media
VG Name UnicornData
LV UUID cLTqcg-U5sq-WYGI-s7ws-U9nF-za7u-o5CcGC
LV Write Access read/write
LV Status available
# open 0
LV Size 3.00 GB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:2
--- Logical volume ---
LV Name /dev/UnicornData/home
VG Name UnicornData
LV UUID zmb8ge-a4Wa-tBIq-ZDjc-FTT4-bWFp-Dm8D54
LV Write Access read/write
LV Status available
# open 1
LV Size 25.00 GB
Current LE 6400
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:3
--- Logical volume ---
LV Name /dev/UnicornData/drupal
VG Name UnicornData
LV UUID DCZkmu-XisZ-8K3n-d4hP-A2wP-n7g2-FGT6KU
LV Write Access read/write
LV Status available
# open 0
LV Size 3.00 GB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:4
--- Logical volume ---
LV Name /dev/UnicornData/process
VG Name UnicornData
LV UUID eZ0DVW-XLdJ-qS0L-9axQ-a1Aa-880g-c5vhkb
LV Write Access read/write
LV Status available
# open 0
LV Size 3.00 GB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:5
--- Logical volume ---
LV Name /dev/UnicornData/Sourcecode
VG Name UnicornData
LV UUID dMnUXv-qzHL-yiyn-W1Po-jb9T-4G78-Loy5GA
LV Write Access read/write
LV Status available
# open 0
LV Size 6.00 GB
Current LE 1536
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:6
--- Logical volume ---
LV Name /dev/UnicornData/CIPs
VG Name UnicornData
LV UUID 96idXQ-5Ll0-gvnF-xdMc-KQF4-GGHM-EQoloC
LV Write Access read/write
LV Status available
# open 0
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:7
Finally the error I am facing.
touch a
touch: cannot touch `a': No space left on device
Do let me know if you need any more information.
Thanks for replying the previous post.
Thanks
Lalatendu Das
--
View this message in context: http://www.nabble.com/problem-in-RAID1-%2B-lvm-in-ubuntu-8.04...-tp20873574p20890970.html
Sent from the ubuntu-users mailing list archive at Nabble.com.
More information about the ubuntu-users
mailing list