LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-08-2016, 06:23 AM   #61
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931

You can use the hostnamectl command to change the hostname.

/dev/sda3 is empty i.e. it does not contain any volume groups or logical volumes. It can not be mounted. What do you want to do with it, add it to an existing logical volume or create something new?
 
1 members found this post helpful.
Old 08-08-2016, 10:07 AM   #62
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much. I am able to change the hostname now. I just want to mount my 16TB HDD on '/' or on '/home'. Can I retrieve my data?

Best Regards
Zillur
 
Old 08-08-2016, 12:21 PM   #63
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you. Here are some outputs that help you to suggest something.
Quote:
[root@bioworkstation zillur]# mount | grep sda2
/dev/sda2 on /run/media/zillur/3a8908c7-efa1-4fa4-b4eb-fdf78cc2e6fe type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2)
[root@bioworkstation zillur]# mount | grep sda1
[root@bioworkstation zillur]# mount | grep sda3
[root@bioworkstation zillur]# mount | grep sda
/dev/sda2 on /run/media/zillur/3a8908c7-efa1-4fa4-b4eb-fdf78cc2e6fe type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2)
[root@bioworkstation zillur]# blkid -c /dev/null -o list
device fs_type label mount point UUID
-------------------------------------------------------------------------------------------------------------------------------------------------------------
/dev/sda1 (not mounted)
/dev/sda2 xfs /run/media/zillur/3a8908c7-efa1-4fa4-b4eb-fdf78cc2e6fe 3a8908c7-efa1-4fa4-b4eb-fdf78cc2e6fe
/dev/sda3 LVM2_member (not mounted) T1UlID-qOHi-R7Xj-lNGb-XTHK-QFwK-2q8zPy
/dev/sdb1 xfs /boot af53c012-5a01-4e1d-8b2d-e98e865c8f88
/dev/sdb2 LVM2_member (in use) XckdBU-mmPU-ExEy-1btB-BmLz-z1hB-WpF8G2
/dev/mapper/centos-root xfs / b9c1f9c6-1a2c-48fa-96cf-a1e2be274cd5
/dev/mapper/centos-swap swap <swap> db28770f-1dbc-46b3-a43f-2db888b5e0fc
/dev/mapper/centos-home xfs /home be918068-4d77-48c6-a675-c2daa7a0657e
[root@bioworkstation zillur]#
Thank you very much again.
Best Regards
Zillur
 
Old 08-08-2016, 12:39 PM   #64
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Here is some additional info.
Code:
[root@bioworkstation zillur]# dmsetup info
Name:              centos-home
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      253, 2
Number of targets: 1
UUID: LVM-ybqHGeBUO3NmWvDMAwgqDMmX1jvG6vrKs5n2yytehDXFMbyDBDhPNkLIzcJiX31P

Name:              centos-swap
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        2
Event number:      0
Major, minor:      253, 1
Number of targets: 1
UUID: LVM-ybqHGeBUO3NmWvDMAwgqDMmX1jvG6vrK5onkyttsZgPhaLOmal6so1SUhZreVIQD

Name:              centos-root
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      253, 0
Number of targets: 1
UUID: LVM-ybqHGeBUO3NmWvDMAwgqDMmX1jvG6vrKgVxeQQGMt4P2b2t3KtN5JQDONYej3S3i

[root@bioworkstation zillur]# dmsetup table 
centos-home: 0 120037376 linear 8:18 8390656
centos-swap: 0 8388608 linear 8:18 2048
centos-root: 0 104857600 linear 8:18 128428032
Any suggestions?

Best Regards
Zillur
 
Old 08-08-2016, 12:53 PM   #65
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Here is some other infos:
Quote:
[root@bioworkstation zillur]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 14.6T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 500M 0 part /run/media/zillur/3a8908c7-efa1-4fa4-b4eb-fdf78cc2e6fe
└─sda3 8:3 0 14.6T 0 part
sdb 8:16 0 111.8G 0 disk
├─sdb1 8:17 0 500M 0 part /boot
└─sdb2 8:18 0 111.3G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 4G 0 lvm [SWAP]
└─centos-home 253:2 0 57.2G 0 lvm /home
sr0 11:0 1 1024M 0 rom
I want to mount sda3 on '/' or on '/home'.
Any idea, how can I do this?
I had many data in sda3. Can I retrieve them?

Best Regards
Zillur
 
Old 08-08-2016, 01:03 PM   #66
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Some info about my disks.
Code:
[root@bioworkstation zillur]# sfdisk -l -uM

Disk /dev/sda: 1945332 cylinders, 255 heads, 63 sectors/track
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sda1   *     0+ 2097151  2097152- 2147483647+  ee  GPT
sfdisk: 		start: (c,h,s) expected (0,0,2) found (0,0,1)

/dev/sda2         0      -      0          0    0  Empty
/dev/sda3         0      -      0          0    0  Empty
/dev/sda4         0      -      0          0    0  Empty

Disk /dev/sdb: 14593 cylinders, 255 heads, 63 sectors/track
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sdb1   *     1    500    500     512000   83  Linux
/dev/sdb2       501  114472  113972  116707328   8e  Linux LVM
/dev/sdb3         0      -      0          0    0  Empty
/dev/sdb4         0      -      0          0    0  Empty

Disk /dev/mapper/centos-root: 6527 cylinders, 255 heads, 63 sectors/track

Disk /dev/mapper/centos-swap: 522 cylinders, 255 heads, 63 sectors/track

Disk /dev/mapper/centos-home: 7471 cylinders, 255 heads, 63 sectors/track
More
Code:
root@bioworkstation zillur]# parted -l
Model: LSI MR9361-8i (scsi)
Disk /dev/sda: 16.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  2097kB  1049kB                     bios_grub
 2      2097kB  526MB   524MB   xfs
 3      526MB   16.0TB  16.0TB                     lvm


Model: ATA INTEL SSDSCKJW12 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  525MB  524MB  primary  xfs          boot
 2      525MB   120GB  120GB  primary               lvm


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/centos-home: 61.5GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0.00B  61.5GB  61.5GB  xfs


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/centos-swap: 4295MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system     Flags
 1      0.00B  4295MB  4295MB  linux-swap(v1)


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/centos-root: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0.00B  53.7GB  53.7GB  xfs
 
Old 08-08-2016, 01:53 PM   #67
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
If the picture of the drive you posted back a few is the same above then the partitioning does not match. It appears that sda3 does not contain any volume groups or logical volumes
 
1 members found this post helpful.
Old 08-08-2016, 01:59 PM   #68
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much. How can I resolve this? I want to mount sda3 on '/' or '/home'. I had all the data in that partition. Is there any way?

Best Regards
Zillur
 
Old 08-08-2016, 02:16 PM   #69
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you. Here a little bit more info:
Code:
[root@bioworkstation zillur]# lvmdiskscan 
  /dev/centos/root [      50.00 GiB] 
  /dev/centos/swap [       4.00 GiB] 
  /dev/sda2        [     500.00 MiB] 
  /dev/centos/home [      57.24 GiB] 
  /dev/sda3        [      14.55 TiB] LVM physical volume
  /dev/sdb1        [     500.00 MiB] 
  /dev/sdb2        [     111.30 GiB] LVM physical volume
  3 disks
  2 partitions
  0 LVM physical volume whole disks
  2 LVM physical volumes
[root@bioworkstation zillur]#
 
Old 08-08-2016, 02:31 PM   #70
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Code:
Command (m for help): v
Partition 1 does not start on physical sector boundary.
Remaining 26956791808 unallocated 512-byte sectors
Code:
[root@bioworkstation zillur]# lvscan 
  ACTIVE            '/dev/centos/swap' [4.00 GiB] inherit
  ACTIVE            '/dev/centos/home' [57.24 GiB] inherit
  ACTIVE            '/dev/centos/root' [50.00 GiB] inherit
 
Old 08-08-2016, 02:34 PM   #71
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Code:
[root@bioworkstation zillur]# parted /dev/sda print
Model: LSI MR9361-8i (scsi)
Disk /dev/sda: 16.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  2097kB  1049kB                     bios_grub
 2      2097kB  526MB   524MB   xfs
 3      526MB   16.0TB  16.0TB                     lvm
 
Old 08-08-2016, 05:37 PM   #72
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Any clue or suggestion??? Thanks
 
Old 08-08-2016, 10:16 PM   #73
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Looks like we need the info from the output of the command vgs -v. An old installation would have the same Volume group and logical volume names which causes conflicts.

Last edited by michaelk; 08-08-2016 at 10:18 PM.
 
Old 08-08-2016, 11:16 PM   #74
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much for your reply.
Code:
[root@bioworkstation zillur]# vgs -v
    Using volume group(s) on command line.
  VG     Attr   Ext   #PV #LV #SN VSize   VFree  VG UUID                                VProfile
  centos wz--n- 4.00m   1   3   0 111.30g 60.00m ybqHGe-BUO3-NmWv-DMAw-gqDM-mX1j-vG6vrK
Best Regards
Zillur
 
Old 08-09-2016, 04:33 AM   #75
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
That confirms that sda3 does not contain a volume group. Data recovery will be difficult
 
  


Reply



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
Failing to boot up due to failing to acces the GRUB spenot09 Linux - Software 7 10-19-2015 10:56 AM
Jessie boot cd failing to boot on a Poweredge R905 Jasambo Debian 5 06-15-2015 04:38 PM
Boot Problem in Grub (Chainloader failing? /boot messed up?) gjemmott Linux - Desktop 2 03-15-2010 10:26 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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
Open Source Consulting | Domain Registration