LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2012, 11:55 AM   #1
ali_azarnoosh
LQ Newbie
 
Registered: Jul 2003
Posts: 18

Rep: Reputation: 0
Question gpt partition disappears after restarting


Hi,

I add 4 samsung 1 TB hard disk drive to one volume raid0 in Intel Rapid Storage Technology Option Rom program at boot time; then start the system with Gparted live USB (gparted-live-0.11.0-7).

Gparted find the volume at /dev/mapper/isw_dbiefegjia_Volume0 and can create partitions with "msdos" disk label; but it is not possible to create partition under "gpt" disk label. The reported error from gparted is:

Quote:
"no such device or adress while trying to determine filesystem size"
I try to do it with parted, following the instruction "Linux Creating a Partition Size Larger Than 2TB".

There was no error; I can set the disk label to "gpt" and create partition larger than 2TB and mount it. But after restarting the partition disappears.

There is no /dev/mapper/isw_dbiefegjia_Volume0p1 file after restarting.

any idea?

Hardware:
M.B: Asus P8Z68-v
H.D.D: 4x Samsung HD105SI
CPU: i7 2600k
RAM: 2x4Gig Corsair 1600

Thanks
Ali Azarnoosh
 
Old 01-16-2012, 03:02 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,823
Blog Entries: 21

Rep: Reputation: 118Reputation: 118
Please tell us what distribution you are using for this. Also, please post the output of the command "cat /proc/partitions" done from a terminal window. And do you have the command "gdisk" available (installable package in Ubuntu)?
 
Old 01-18-2012, 01:02 AM   #3
ali_azarnoosh
LQ Newbie
 
Registered: Jul 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you for your reply

I tried to install Fedora 14 and CentOS 6 both; but I could not make a partition larger than 2TB during installation setup. then I chose Gparted live program to make partitions first. it includes gdisk program. my output from gdisk:

Code:
user@dhcppc1:~$ sudo gdisk /dev/mapper/isw_baecfabgii_Volume0 
sudo: unable to resolve host dhcppc1
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/mapper/isw_baecfabgii_Volume0: 7814081536 sectors, 3.6 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 89685974-DCF4-49AF-9BC0-7027A4B133FA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 7814081502
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      7814081502   3.6 TiB     8300  Linux filesystem

and output from cat /proc/partitions :

Code:
user@dhcppc1:~$ cat /proc/partitions 
major minor  #blocks  name

   8        0  976762584 sda
   8       32  976762584 sdc
   8       48  976762584 sdd
   8       16  976762584 sdb
 254        0 3907040768 dm-0
   8       64    8028159 sde
   8       65    8028128 sde1
   7        0     100148 loop0

sda, sdb, sdc and sde are the RAID hard disks; sde is USB with one partition sde1; but I dont know where is the 3.6 TB partition listed in gdisk output.
 
Old 01-18-2012, 02:59 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,823
Blog Entries: 21

Rep: Reputation: 118Reputation: 118
I assume what you showed above is during the first time creating the partition. You say if you reboot, the partition goes away and is not present. I would like to see what "cat /proc/partitions" shows at that time.

Does device file "/dev/dm-0" exist? If so, can you read it? Try "gdisk -l /dev/dm-0".

It is strange that the original devices /dev/sda through /dev/sdd still show up as devices in "/proc/partitions". Can you access this?

I am only familiar with RAID from a couple add-on RAID cards. Both of these are hardware solutions, but what I used didn't come out as complicated at all. For example, by making one big array from all the drives attached, I would get it as /dev/sda and partitioning it looked normal. That's because the RAID hardware created the appearance of a new drive that the driver added to the SCSI devices.

I'm guessing there is a special driver for this Intel Rapid Storage Technology. Apparently it does things quite differently. Can you get the full "dmesg" output in some way, and post it in this thread (in a code box)?

However, I suspect I will not have an answer with this, since it appears to be a special "device" and its driver doing odd things. We'll need someone who has experience with this hardware feature.
 
Old 01-18-2012, 10:19 AM   #5
ali_azarnoosh
LQ Newbie
 
Registered: Jul 2003
Posts: 18

Original Poster
Rep: Reputation: 0
The outputs I showed are after restarting the system. I think the file /dev/md-0 is the same as /dev/mapper/isw_baecfabgii_Volume0.

I don't have any pci RAID card. I'm using RAID option in motherboard BIOS; I tried windows7 and CentOS6 with this RAID option and msdos disk label partitions. everything was fine for the disk except 2TB size limitation.

sda through sdd device are present but I cant access them.

I will send more details in the next time.
 
Old 01-18-2012, 11:13 AM   #6
ali_azarnoosh
LQ Newbie
 
Registered: Jul 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Unhappy

Output from gdisk -l /dev/dm-0 command:

Code:
  
user@dhcppc1:~$ sudo gdisk -l /dev/dm-0
 sudo: unable to resolve host dhcppc1 GPT fdisk (gdisk) version 0.8.1
  Partition table scan:   
                                    MBR: protective
                                     BSD: not present
                                    APM: not present 
                                    GPT: present 
 Found valid GPT with protective MBR;
 using GPT. Disk /dev/dm-0: 7814081536 sectors, 3.6 TiB
 Logical sector size: 512 bytes Disk identifier (GUID): 89685974-DCF4-49AF-9BC0-7027A4B133FA
 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 7814081502
 Partitions will be aligned on 2048-sector boundaries Total free space is 2014 sectors (1007.0 KiB) 
 Number  Start (sector)    End (sector)  Size       Code  Name
    2048      7814081502   3.6 TiB     8300  Linux filesystem 
user@dhcppc1:~$

and parted output for original devices:

Code:
  user@dhcppc1:~$ sudo parted /dev/sda p
 sudo: unable to resolve host dhcppc1
 Error: /dev/sda: unrecognised disk label
                                    
 user@dhcppc1:~$ sudo parted /dev/sdb p
 sudo: unable to resolve host dhcppc1
 Error: /dev/sdb: unrecognised disk label  

  
                                 
user@dhcppc1:~$ sudo parted /dev/sdc p
 sudo: unable to resolve host dhcppc1
 Error: Invalid argument during seek for read on /dev/sdc
                  Retry/Ignore/Cancel? c 
                                                      

user@dhcppc1:~$ sudo parted /dev/sdd p 
sudo: unable to resolve host dhcppc1 
Error: /dev/sdd: unrecognised disk label
                                   
user@dhcppc1:~$

The device sdc seemd be different from the others. But I dont know why!

I have already found that correcting the disk label for sda through sdd in OS, deletes the RAID volume created in BIOS at boot time.
 
Old 01-18-2012, 05:54 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,823
Blog Entries: 21

Rep: Reputation: 118Reputation: 118
One of the chips on the motherboard is performing the RAID function, or is interacting with the device driver to perform the RAID function in the driver.

It looks like /dev/dm-0 has a partition table on it with a single 3.6TB partition starting at sector 2048 (a reasonable choice for alignment).

/dev/sdc is acting different perhaps because some latent data on its first sector appears to be a partition table. It might actually be the sector where the partition table for the array is stored. If that is the case, that partition table will be referencing a 3.6TB location (end of partition) on a 0.9TB drive, which will have a seek failure.

Why the individual drives are showing up is unknown. It could be that the driver is faking this through software RAID. This can still be used as-is, but if it were my machine, I'd be trying to re-arrange some things (in particular I prefer to keep OS partitions/drives away from /data and /home partitions so these things can be moved around more flexibly).
 
Old 01-19-2012, 04:38 AM   #8
ali_azarnoosh
LQ Newbie
 
Registered: Jul 2003
Posts: 18

Original Poster
Rep: Reputation: 0
I'm going to install OS on another SSD disk and use the RAID volume as /home directory. But I dont know how can I make a partition on the RAID volume. Intel Z68 motherboard chipset is the hardware RAID support in the system.

May be gpt is not supported in the kernel I used?
 
Old 01-19-2012, 10:11 AM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,823
Blog Entries: 21

Rep: Reputation: 118Reputation: 118
Output from gdisk shows the partition exists. Some of the output is missing (column 1 should show something like "/dev/dm-0p1"). Since nothing more shows in /proc/partitions, then either the kernel does not support GPT (this can be checked with the "dmesg" output) or this RAID device is not a partitionable device. I have not done software RAID so I do not know how it behaves. But since software RAID is made FROM partitions, it is plausible to believe partitions cannot be made from that. If that is the case, then you would use the whole /dev/dm-0 for the filesystem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Delete GPT Partition sjreilly Linux - General 2 04-20-2013 11:24 AM
Problem booting on GPT partition. zuku Debian 3 01-20-2012 09:31 AM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM
Partition codes for GPT Skaperen Linux - General 4 03-10-2011 06:52 PM
Which distro(s) work with GPT partition table? ozegoods Linux - General 5 12-13-2010 06:57 PM


All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration