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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
08-08-2016, 06:23 AM
#61
Moderator
Registered: Aug 2002
Posts: 25,759
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.
08-08-2016, 10:07 AM
#62
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 12:21 PM
#63
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 12:39 PM
#64
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 12:53 PM
#65
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 01:03 PM
#66
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 01:53 PM
#67
Moderator
Registered: Aug 2002
Posts: 25,759
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.
08-08-2016, 01:59 PM
#68
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 02:16 PM
#69
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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]#
08-08-2016, 02:31 PM
#70
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 02:34 PM
#71
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-08-2016, 05:37 PM
#72
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
Any clue or suggestion??? Thanks
08-08-2016, 10:16 PM
#73
Moderator
Registered: Aug 2002
Posts: 25,759
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 .
08-08-2016, 11:16 PM
#74
Member
Registered: Apr 2015
Posts: 217
Original Poster
Rep:
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
08-09-2016, 04:33 AM
#75
Moderator
Registered: Aug 2002
Posts: 25,759
That confirms that sda3 does not contain a volume group. Data recovery will be difficult
All times are GMT -5. The time now is 02:21 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News