Disco de montagem do problema

1
[root@localhost ~]# fdisk -l

Disk /dev/xvdb: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00050ec0

    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/xvdb2              64      261084  2096638976   8e  Linux LVM

Disk /dev/xvda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000effaf

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/xvda2              64         653     4729856   8e  Linux LVM
Partition 2 does not end on cylinder boundary.

Disk /dev/mapper/VolGroup-lv_swap: 16.8 GB, 16844324864 bytes
255 heads, 63 sectors/track, 2047 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup00-lv_root: 4303 MB, 4303355904 bytes
255 heads, 63 sectors/track, 523 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup00-lv_swap: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 2076.4 GB, 2076423749632 bytes
255 heads, 63 sectors/track, 252444 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@localhost ~]#

Drives Montados

[root@localhost ~]# df
Filesystem           1K-blocks   Used Available Use% Mounted on
/dev/mapper/VolGroup00-lv_root
                       4005360 780156   3015080  21% /
tmpfs                  1475396      0   1475396   0% /dev/shm
/dev/xvda1              487652  52811    409241  12% /boot
[root@localhost ~]#

Captura de tela das unidades conectadas ao XenServer

Comopossoconectaressediscorígidode2TBa/mnt/?Eupenseiquemount-text2/dev/xvdb/mntiriafuncionar,mastudoqueeutentofalha

/etc/fstab

##/etc/fstab#CreatedbyanacondaonSunAug2319:29:262015##Accessiblefilesystems,byreference,aremaintainedunder'/dev/disk'#Seemanpagesfstab(5),findfs(8),mount(8)and/orblkid(8)formoreinfo#/dev/mapper/VolGroup00-lv_root/ext4defaults11UUID=b9b08863-9a52-432a-b904-61a3144ce709/bootext4defaults12/dev/mapper/VolGroup-lv_swapswapswapdefaults00/dev/mapper/VolGroup00-lv_swapswapswapdefaults00tmpfs/dev/shmtmpfsdefaults00devpts/dev/ptsdevptsgid=5,mode=62000sysfs/syssysfsdefaults00proc/procprocdefaults00

Drivesmontados

[root@localhost~]#mount/dev/mapper/VolGroup00-lv_rooton/typeext4(rw)procon/proctypeproc(rw)sysfson/systypesysfs(rw)devptson/dev/ptstypedevpts(rw,gid=5,mode=620)tmpfson/dev/shmtypetmpfs(rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/xvda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

uuid

[root@localhost ~]# ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx. 1 root root 10 Aug 23 21:37 31de66c0-cd8f-4f75-9bf6-7194dc43dafd -> ../../dm-4
lrwxrwxrwx. 1 root root 10 Aug 23 21:37 35a57414-2271-4db2-9f9a-09cf36c19044 -> ../../dm-0
lrwxrwxrwx. 1 root root 11 Aug 23 21:37 5a99aec9-7270-44ce-9df7-32ff4d70a75b -> ../../xvdb1
lrwxrwxrwx. 1 root root 10 Aug 23 21:37 986339d2-abd7-453f-8422-e8c1acb9368a -> ../../dm-2
lrwxrwxrwx. 1 root root 11 Aug 23 21:37 b9b08863-9a52-432a-b904-61a3144ce709 -> ../../xvda1
lrwxrwxrwx. 1 root root 10 Aug 23 21:37 c065a889-055d-44f2-bae4-0ac73d86d493 -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Aug 23 21:37 e85cb70e-6403-4b06-a481-a1512140a491 -> ../../dm-3
    
por Teddy291 24.08.2015 / 03:46

1 resposta

1

Seu comando está tentando montar o dispositivo, em vez da partição.

Em vez de mount -t ext2 /dev/xvdb /mnt , tente usar:

mount -t ext4 /dev/xvdb2 /mnt

Se você gostaria de montar automaticamente esta partição na inicialização, você também precisará adicionar a partição ao seu arquivo fstab.

Você precisa conhecer o UUID do seu disco, que você pode encontrar com ls -l /dev/disk/by-uuid/ , e depois procurar sua unidade de 2 TB. Este parece ser o 5a99aec9-7270-44ce-9df7-32ff4d70a75b para o seu disco.

Em seguida, você precisará editar /etc/fstab e adicionar a seguinte linha:

UUID=5a99aec9-7270-44ce-9df7-32ff4d70a75b /mnt ext4 defaults 1 2

Existe um guia completo para o Ubuntu aqui: link

    
por 24.08.2015 / 03:55