LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2015, 01:45 PM   #16
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845

^ i remember with cassette tapes sometimes a 60 minute maxell was actually 62:15... and when duplicating a song would get cutoff.
 
Old 01-27-2015, 02:13 PM   #17
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Very true!! I believe once I get this figured out, (lucky we are not down right now, I am just experimenting) I am going to replace all 6 drives (3 in server and 3 in server B) with 320GB drives, and use the same dd image, this will leave me enough space that this wont happen again. plus it will give me some extra if needed.

currently, we are not using anywhere near the 500GB, and probably wont for a long time. I think we are only at maybe 15% of total used.

now I wished I had put /home and /usr on their own partition, but that another thread and story..

I will keep everyone posted on how this goes, thanks to everyone for all your help!!!
 
Old 01-29-2015, 09:09 AM   #18
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
First, let me say that I really appreciate everyone’s help with this, I am trying to learn what’s going on, and there have listed what’s going on and what ‘I think’ is the reason.

The dd seemed to restore the image just fine, there were no errors. So I rebooted and things looked normal (saw the splash screen) then.. (note I had to copy this from the screen so please excuse any typos):

Code:
Waiting for /dev/disk/by-id/scsi-36001ec90d41dbf001b760b72e504ab06-part1   no more events
Checking file systems...
fsck.ext3:  No such file or directory while trying to open /dev/disk/by-id/scsi-36001ec90d41dbf001b760b72e504ab06-part1
[  29.558797] bootsplash: status on console 0 changed on 
blogd: no message logging because /var file system is not accessible

fsck failed for at least one filesystem (not /).
Please repair manually and reboot.
The root file system is already mounted read-write.

Attention: Only control-D will reboot the in this maintenance mode.  shutdown or reboot will not work.

Give root password for maintenance
(or type Control-D to continue)
Now that I recall, when we first installed Suse Linux Enterprise Server on server ’A’ we had an outside company do it, and while I watch what he did, although I did not fully understand, I do remember we did something a “mapper” and “disk by id”.. I am not really sure what those are or what they do..

I am assuming!! It is looking at the actual ID of the drive itself, which would explain the problems as these are different drives. However, it is a RAID 5 configuration through hardware, a PERC 5 card. So I an not sure is it is the actual ID of the drive or the RAID card.

So, I typed the root password and got to a prompt:
Code:
(repair filesystem) #
And went to /dev/disk/by-id just to see what was in there, and this is what I have:
Code:
lrwxrwxrwx 1 root root 10 Jan 29 08:24 dm-name-VG_SYSTEM-ROOT -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan 29 08:24 dm-uuid-LVM-u0uIhjehsBNF4fRddWwLgP6J7mRSAz7cv8fnn6TENSKI8brhQgTiReKhszyQRxXP -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan 29 08:24 lvm2-pvuuid-eDWlDt-s2FO-Pstq-UH1K-0ALb-AUeK-iPFnhW -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan 29 08:24 scsi-1Seagate_BUP_Slim_BL_NA7JBA4M -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan 29 08:24 scsi-1Seagate_BUP_Slim_BL_NA7JBA4M-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Jan 29 08:24 scsi-36001e4f01b782a001c5a5e084d3ac69f -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 29 08:24 scsi-36001e4f01b782a001c5a5e084d3ac69f-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 29 08:24 scsi-36001e4f01b782a001c5a5e084d3ac69f-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 29 08:24 scsi-36001e4f01b782a001c5a5e084d3ac69f-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan 29 08:24 usb-Seagate_BUP_Slim_BL_NA7JBA4M-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan 29 08:24 usb-Seagate_BUP_Slim_BL_NA7JBA4M-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Jan 29 08:24 wwn-0x6001e4f01b782a001c5a5e084d3ac69f -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 29 08:24 wwn-0x6001e4f01b782a001c5a5e084d3ac69f-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 29 08:24 wwn-0x6001e4f01b782a001c5a5e084d3ac69f-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 29 08:24 wwn-0x6001e4f01b782a001c5a5e084d3ac69f-part3 -> ../../sda3
The Seagate (sdb1) is my external hard drive.
Interesting, why do I have 2 sda’s, I assume, one of them is my drives from server ’A’ and the other are my server ‘B’ drives.

And no I remember when we first installed on server ’A’, we had to go to “mapper’ and do something there..

So I went to /dev/mapper and did “ls –l”
Code:
lrwxrwxrwx 1 root root       7 Jan 29 08:24 VG_SYSTEM-ROOT -> ../dm-0
crw-rw---- 1 root root 10, 236 Jan 29 08:24 control
So, I think what is happening is the system is looking for the original ID’s of the drives, and I need to tell it to look at the new ID’s, am I on the right track? How would I do this?
 
Old 01-29-2015, 09:40 AM   #19
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
not really sure but lets look into this:
cat /boot/grub/grub.conf # or is it /boot/grub/grub.cfg
cat /etc/fstab
blkid

my hypothesis is i think the old drives uuid is captured in the image but it no longer exists in the new drive ?

Last edited by schneidz; 01-29-2015 at 09:41 AM.
 
Old 01-29-2015, 09:51 AM   #20
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
yes, that is what I was thinking as well...

Intresting.. there is nothing inside of /boot empty directory

Here is my /etc/fstab

Code:
/dev/disk/by-id/scsi-36001ec90d41dbf001b760b72e504ab06-part2	swap	swap	defaults 0 0 
/dev/VG_SYSTEM/ROOT	/	ext3	acl,user_xattr 1 1 
/dev/disk/by-id/scsi-36001ec90d41dbf001b760b72e504ab06-part1	/boot	ext3	acl,user_xattr 1 2 
proc	/proc	proc	defaults 0 0 
sysfs	/sys	sysfs	noauto 0 0 
debugfs	/sys/kernel/debug	debugfs	noauto 0 0 
usbfs	/proc/bus/usb	usbfs	noauto 0 0 
devpts	/dev/pts	devpts	mode=0620,gid=5 0 0 
192.168.1.7:/DataVolume/Backup	/backup	nfs	rsize=8192,wsize=8192 0 0 
192.168.1.7:/DataVolume/Public	/public	nfs	rsize=8192,wsize=8192 0 0
 
Old 01-29-2015, 09:53 AM   #21
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
what does blkid print out ?
 
Old 01-29-2015, 10:01 AM   #22
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
fyi, my external hard drive is plugged in.

Code:
(repair filesystem) # blkid

/dev/sda1: UUID="2f8e10b6-559f-4a56-9b6a-50b844bbf1c4" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda2: UUID="d7153661-f3a8-49ac-b788-8a5c0c15a333" TYPE="swap" 
/dev/sda3: UUID="eDWlDt-s2FO-Pstq-UH1K-0ALb-AUeK-iPFnhW" TYPE="LVM2_member" 
/dev/mapper/VG_SYSTEM-ROOT: UUID="23ed7fcd-f217-48e9-832f-191b86e8cca2" TYPE="ext3" 
/dev/sdb1: UUID="5487-04C8" TYPE="vfat"
 
Old 01-29-2015, 10:11 AM   #23
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
maybe change 36001ec90d41dbf001b760b72e504ab06 -> 2f8e10b6-559f-4a56-9b6a-50b844bbf1c4 in /etc/fstab (or try d7153661-f3a8-49ac-b788-8a5c0c15a333, eDWlDt-s2FO-Pstq-UH1K-0ALb-AUeK-iPFnhW, 23ed7fcd-f217-48e9-832f-191b86e8cca2 also).
you mite need to fiddle with links in /dev/disk/by-id as well.
 
Old 01-29-2015, 10:14 AM   #24
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
note, I ran blkid on server 'A' assuming I would get different UUID's

here is what I got on server 'A'

Code:
/dev/sda1: UUID="2f8e10b6-559f-4a56-9b6a-50b844bbf1c4" TYPE="ext3" 
/dev/sda2: UUID="d7153661-f3a8-49ac-b788-8a5c0c15a333" TYPE="swap" 
/dev/sda3: UUID="eDWlDt-s2FO-Pstq-UH1K-0ALb-AUeK-iPFnhW" TYPE="LVM2_member" 
/dev/mapper/VG_SYSTEM-ROOT: UUID="23ed7fcd-f217-48e9-832f-191b86e8cca2" TYPE="ext3"
 
Old 01-29-2015, 10:20 AM   #25
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i wouldve assumed they be different too.

what do you have in /etc/fstab and /dev/disk/by-id (is there a /boot directory). i am wondering what disk 36001ec90d41dbf001b760b72e504ab06 relates to ?
 
Old 01-29-2015, 10:26 AM   #26
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,968

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Indeed. The entries in /dev/disk/by-id include the drive serial numbers. You will need to edit /etc/fstab and replace the old by-id/* names with the new ones. You will probably find that your root filesystem is currently mounted read-only. You need to run "mount -o remount,rw /" in order to write out the new /etc/fstab.

FYI, the reason for using /dev/disk/by-id is to avoid the problem of confusing two identically labeled disk partitions/filesystems created when a disk is imaged by dd. If you've used "LABEL=" or "UUID=" to mount a filesystem, you can't control which of the two the system will select for use.
 
Old 01-29-2015, 10:27 AM   #27
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Yes, I believe that is what is happening, Server 'A' drives are still there

Server ‘A’:
Fstab
Code:
/dev/disk/by-id/scsi-36001ec90d41dbf001b760b72e504ab06-part2	swap	swap	defaults 0 0 
/dev/VG_SYSTEM/ROOT	/	ext3	acl,user_xattr 1 1 
/dev/disk/by-id/scsi-36001ec90d41dbf001b760b72e504ab06-part1	/boot	ext3	acl,user_xattr 1 2 
proc	/proc	proc	defaults 0 0 
sysfs	/sys	sysfs	noauto 0 0 
debugfs	/sys/kernel/debug	debugfs	noauto 0 0 
usbfs	/proc/bus/usb	usbfs	noauto 0 0 
devpts	/dev/pts	devpts	mode=0620,gid=5 0 0 
192.168.1.7:/DataVolume/Backup	/backup	nfs	rsize=8192,wsize=8192 0 0 
192.168.1.7:/DataVolume/Public	/public	nfs	rsize=8192,wsize=8192 0 0
By-id
Code:
lrwxrwxrwx 1 root root 10 Jan 11 07:25 dm-name-VG_SYSTEM-ROOT -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan 11 07:25 dm-uuid-LVM-u0uIhjehsBNF4fRddWwLgP6J7mRSAz7cv8fnn6TENSKI8brhQgTiReKhszyQRxXP -> ../../dm-0
lrwxrwxrwx 1 root root  9 Jan 11 07:25 scsi-36001ec90d41dbf001b760b72e504ab06 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 11 07:25 scsi-36001ec90d41dbf001b760b72e504ab06-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 11 07:25 scsi-36001ec90d41dbf001b760b72e504ab06-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 11 07:25 scsi-36001ec90d41dbf001b760b72e504ab06-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan 11 07:25 wwn-0x6001ec90d41dbf001b760b72e504ab06 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 11 07:25 wwn-0x6001ec90d41dbf001b760b72e504ab06-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 11 07:25 wwn-0x6001ec90d41dbf001b760b72e504ab06-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 11 07:25 wwn-0x6001ec90d41dbf001b760b72e504ab06-part3 -> ../../sda3
 
Old 01-29-2015, 10:35 AM   #28
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
its still not obvious to me what needs to be substituted. my experience is with dd'ing images from/to the same disk.

lets see if this guy reports any problems/success:
http://www.linuxquestions.org/questi...17#post5308317
 
Old 01-29-2015, 11:17 AM   #29
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
I had changed my fstab to the id’s that were in /dev/disk/by-id, luckly I have a working server ‘A’ that I can compare against. Still no joy..

I get the same message as in post #18, but with the new ID’s.

This does raise the question, if the system is looking at the drive serial numbers, what happens when one of my drives in my RAID 5 array dies and gets replaced? Will the new serial number cause a problem? Or are the ID’s handled by the PERC 5/I RAID card?
 
Old 01-29-2015, 11:32 AM   #30
mtsoule
LQ Newbie
 
Registered: Aug 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
ok.. just found this, let me try..
http://www.terabyteunlimited.com/kb/article.php?id=389
 
  


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
Sendmail: Relay Messages to Ext. SMTP Server? JmaJeremy Linux - Server 2 02-10-2010 12:59 PM
[IPTABLES] open ext access to web server on GW server kozaki Linux - Networking 3 08-27-2005 06:11 PM


All times are GMT -5. The time now is 08:17 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