View previous topic :: View next topic |
Author |
Message |
houqp n00b
Joined: 22 Feb 2011 Posts: 28 Location: China
|
Posted: Sat Apr 02, 2011 12:17 pm Post subject: Strange disk related warnings, used lvm |
|
|
Hi All,
I have four disks and use lvm to make a logical home partition. I followed every thing I can see in the related documents but still see two strange warning.
The first one is produced when I run fdisk -l (The error message is in the last line) :
Code: |
Laptop-of-HouQP ~ # fdisk -l
Disk /dev/sda: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 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: 0xfb6174d8
Device Boot Start End Blocks Id System
/dev/sda1 63 2120579 1060258+ 83 Linux
/dev/sda2 2120580 65047184 31463302+ 83 Linux
/dev/sda3 65047185 81835109 8393962+ 82 Linux swap / Solaris
/dev/sda4 81835110 125033894 21599392+ 8e Linux LVM
Disk /dev/sdb: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 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: 0x0001a81c
Device Boot Start End Blocks Id System
/dev/sdb1 63 125033894 62516916 8e Linux LVM
Disk /dev/sdc: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 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: 0x000c022d
Device Boot Start End Blocks Id System
/dev/sdc1 63 125033894 62516916 8e Linux LVM
Disk /dev/sdd: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 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: 0x000da1ee
Device Boot Start End Blocks Id System
/dev/sdd1 63 125033894 62516916 8e Linux LVM
Disk /dev/dm-0: 214.1 GB, 214106636288 bytes
255 heads, 63 sectors/track, 26030 cylinders, total 418177024 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/dm-0 doesn't contain a valid partition table |
The second strange warning is given when I shut down my gentoo or deactivate the lvm volume:
Code: | Laptop-of-HouQP ~ # lvchange -a n houqp_vg
Node /dev/mapper/houqp_vg-lv_home was not removed by udev. Falling back to direct node removal.
The link /dev/houqp_vg/lv_home should have been removed by udev but it is still present. Falling back to direct link removal. |
I have asked google but cannot get a promising answer. Some say that the latter warning can be ignored.
I used to get these warning and just ignored them. Things went on well for 3 months until yesterday. The lvm meta data on one of my disk lost and the root partition disappeared completely. So I have to spent a whole day to compile the crazy X window and KDE again. I am wondering whether these warnings have something to do with my broken lvm or I can just ignore them ?
Thanks,
Houqp |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54795 Location: 56N 3W
|
Posted: Sat Apr 02, 2011 12:31 pm Post subject: |
|
|
houqp,
Your LVM setup is almost the same as raid0. If you lose one drive the entire LVM volume is gone. Four spindles in raid 0 is very fragile.
Its more normal to donate the four partitions to a raid5 set then use LVM on top of the raid5. Providing only one drive dies, everything still works. Of course, you only get 3/4 of the usful space and its a little slower.
The fdisk message is normal. You will not have any partitions on /dev/dm-0. That's your LVM volume.
I'm pretty sure the udev message is harmless too as my laptop generates similar messages at both startup and shutdown. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
houqp n00b
Joined: 22 Feb 2011 Posts: 28 Location: China
|
Posted: Sat Apr 02, 2011 1:26 pm Post subject: |
|
|
Thanks NeddySeagoon!
I feel comfortable with the warnings now.
Since I only get 250GB in total, 64GB lost is too much for me. I may set up a raid5 after I get new disks. Thanks for your advice anyway. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|