Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Do not use this in production
– /dev/sdj
– /dev/dsi • mpathb device (/dev/mapper/mpathb) is a multipath device for: – /dev/sdh – /dev/dsg • mpathc device (/dev/mapper/mpathc) is a multipath device for: – /dev/sdf – /dev/sdd • mpathd device (/dev/mapper/mpathd) is a multipath device for: – /dev/sde – /dev/sdc Do not use this in production without checking appropriate multipath configuration options in the Device Mapper Multipathing session. The default multipath configuration is less than optimal for regular usage. Finally, to access the LUN (or remote iSCSI disk) you will: • If accessing through a single network interface: – access it through /dev/sdX where X is a letter given by the OS • If accessing through multiple network interfaces: – configure multipath and access the device through /dev/mapper/X For everything else, the created devices are block devices and all commands used with local disks should work the same way: • Creating a partition: $ sudo f d i s k / dev /mapper/mpatha Welcome t o f d i s k ( u t i l −l i n u x 2 . 3 4 ) . Changes w i l l remain i n memory only , u n t i l you d e c i d e t o w r i t e them . Be c a r e f u l b e f o r e u s i n g t h e w r i t e command . D ev i ce d o e s not c o n t a i n a r e c o g n i z e d p a r t i t i o n t a b l e . Created a new DOS d i s k l a b e l with d i s k i d e n t i f i e r 0 x92c0322a . Command (m f o r h e l p ) : p Disk / dev /mapper/mpatha : 1 GiB , 1073741824 bytes , 2097152 s e c t o r s U n i t s : s e c t o r s o f 1 * 512 = 512 b y t e s S e c t o r s i z e ( l o g i c a l / p h y s i c a l ) : 512 b y t e s / 512 b y t e s I /O s i z e ( minimum/ o p t i m a l ) : 512 b y t e s / 65536 b y t e s D i s k l a b e l type : dos Disk i d e n t i f i e r : 0 x92c0322a 173 Command (m f o r h e l p ) : n P a r t i t i o n type p primary ( 0 primary , 0 extended , 4 f r e e ) e extended ( c o n t a i n e r f o r l o g i c a l p a r t i t i o n s ) S e l e c t ( d e f a u l t p ) : p P a r t i t i o n number (1 −4 , d e f a u l t 1 ) : F i r s t s e c t o r (2048 −2097151 , d e f a u l t 2 0 4 8 ) : Last s e c t o r , +/− s e c t o r s o r +/− s i z e {K,M,G, T, P} (2048 −2097151 , d e f a u l t 2 0 9 7 1 5 1 ) : Created a new p a r t i t i o n 1 o f type ’ Linux ’ and o f s i z e 1023 MiB . Command (m f o r h e l p ) : w The p a r t i t i o n t a b l e has been a l t e r e d . • Creating a filesystem: $ sudo mkfs . e x t 4 / dev /mapper/mpatha−p a r t 1 mke2fs 1 . 4 5 . 5 (07−Jan −2020) C r e a t i n g f i l e s y s t e m with 261888 4k b l o c k s and 65536 i n o d e s F i l e s y s t e m UUID : cdb70b1e−c47c −47fd −9c4a −03 db6f038988 S u p e r b l o c k backups s t o r e d on b l o c k s : 3 2 7 6 8 , 9 8 3 0 4 , 1 6 3 8 4 0 , 229376 A l l o c a t i n g group t a b l e s : done Writing i n o d e t a b l e s : done C r e a t i n g j o u r n a l ( 4 0 9 6 b l o c k s ) : done Writing s u p e r b l o c k s and f i l e s y s t e m a c c o u n t i n g i n f o r m a t i o n : done • Mounting the block device: $ sudo mount / dev /mapper/mpatha−p a r t 1 /mnt • Accessing the data: $ l s /mnt l o s t+found Make sure to read other important sessions in Ubuntu Server Guide to follow up with concepts explored in this one. Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling